Custom_MaskRCNN
Custom_MaskRCNN copied to clipboard
custom.py: error: the following arguments are required: <command>, --weights
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
Hi, Saurav I will be needing your error message.
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:
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.
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.
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.