Got it

Error message: "ValueError: The checkpoint file does not exist."

Created: Sep 26, 2021 08:50:50Latest reply: Oct 10, 2021 13:10:23 551 6 0 0 0
  HiCoins as reward: 0 (problem unresolved)

I am trying to implement FastRCNN using Mindspore, I am using the code from the offciel gitee as a reference: 'https://gitee.com/mindspore/mindspore/tree/r1.3/model_zoo/official/cv/faster_rcnn'


knowint that I am using Mindspore 1.3 

and VOC dataset. 


When I run the train.py code the following error pop up: 


Traceback (most recent call last):
  File "C:/Users/Yaman/PycharmProjects/MindSpore_1.3/train_New.py", line 114, in <module>
    param_dict = load_checkpoint(load_path)
  File "C:\Users\Yaman\AppData\Local\Programs\Python\Python37\lib\site-packages\mindspore\train\serialization.py", line 401, in load_checkpoint
    ckpt_file_name, filter_prefix = _check_checkpoint_param(ckpt_file_name, filter_prefix)
  File "C:\Users\Yaman\AppData\Local\Programs\Python\Python37\lib\site-packages\mindspore\train\serialization.py", line 478, in _check_checkpoint_param
    raise ValueError("The checkpoint file does not exist.")
    ValueError: The checkpoint file does not exist.


This is the line of code causing the error:


load_path = config.pre_trained
if load_path != "":
    param_dict = load_checkpoint(load_path)


And this is what I have in Config: 


pre_trained: "/cache/train/fasterrcnn/faster_rcnn-12_7393.ckpt"


Why I cant find the above file, do I have to creat the checkpoint file (faster_rcnn-12_7393) or I have to download from somewhere? 


Thank you in advance,, 

Featured Answers

Recommended answer

zt23
Created Sep 27, 2021 07:37:07

https://gitee.com/mindspore/models/tree/master/official/cv/faster_rcnn, please refer to the description in readme

fasterrcnn readme

you can download it at https://download.mindspore.cn/model_zoo/r1.3/temp/resnet50_ascend_v130_imagenet2012_official_cv_bs256_top1acc76.97__top5acc_93.44/ 

View more
  • x
  • convention:

user_4397771
user_4397771 Created Oct 3, 2021 07:53:30 (0) (0)
 
All Answers
Hello, dear!
It's nice to meet you in the community.
We're working on your problem. Please be patient.
View more
  • x
  • convention:

Hi user_4314759,
Please wait. The engineer will reply to you later.
View more
  • x
  • convention:

https://gitee.com/mindspore/models/tree/master/official/cv/faster_rcnn, please refer to the description in readme

fasterrcnn readme

you can download it at https://download.mindspore.cn/model_zoo/r1.3/temp/resnet50_ascend_v130_imagenet2012_official_cv_bs256_top1acc76.97__top5acc_93.44/ 

View more
  • x
  • convention:

user_4397771
user_4397771 Created Oct 3, 2021 07:53:30 (0) (0)
 
Good
View more
  • x
  • convention:

COOL
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.