Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom.py: error: the following arguments are required: <command>, --weights #5

Open
sauravpantha opened this issue Dec 7, 2020 · 4 comments

Comments

@sauravpantha
Copy link

Hello Soumya,

I have been trying to run your MaskRCNN code for an object detection project and have been running into this error. I believe that the script is not able to download the coco weights but am not sure how to fix it.

Thanks,
Saurav

@soumyaiitkgp
Copy link
Owner

Hi, Saurav I will be needing your error message.

@sauravpantha
Copy link
Author

sauravpantha commented Dec 7, 2020

Hi Soumya,

Thank you for responding. This is the error message which pops up when I run the script using command line.

custom.py: error: the following arguments are required: , --weights

I think the script is not able to download coco weights (weights.h5 is in the location) but I don't seem to be able to figure it out. I think its the same problem someone else posted on your medium blog but that solution doesn't work for me.

@soumyaiitkgp
Copy link
Owner

Hi, Saurav. If you think that script is not able to download/detect the weights then please download them manually to the parent folder. And then check again.

@sadhoss
Copy link

sadhoss commented Jul 14, 2021

Potential cause of this error might be that you have used the tutorial here. In this tutorial the command to run training is as follows: python custom.py train — dataset=D:/../CustomMask_RCNN/samples/custom/dataset — weights=coco. The long dash <->, is suppose to be two dashes <-->.

Use python custom.py train --dataset=D:/../CustomMask_RCNN/samples/custom/dataset --weights=coco to run training.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants