yolact icon indicating copy to clipboard operation
yolact copied to clipboard

Where to get weights?

Open dexter2406 opened this issue 4 years ago • 9 comments
trafficstars

Hi, thanks for your work. But where could I got the weights file, e.g. saved_model_0.19968511 ? I don't find link in your description.

Thanks for your time!

dexter2406 avatar Jun 05 '21 10:06 dexter2406

Currently, I'm not providing pre-trained checkpoints. Will add coco pre-trained checkpoints in future.

anshkumar avatar Jun 06 '21 16:06 anshkumar

any updates on it? At least can you tell how to train the model & generate the weights.

Ankur-singh avatar Apr 13 '23 23:04 Ankur-singh

@Ankur-singh For training you have to just change the path in train.sh file. And for creating tfrecord you have to use create_coco_tfrecord.sh file.

anshkumar avatar Apr 14 '23 05:04 anshkumar

I think, one will have to download the coco dataset and unzip it before creating tfrecords. Because, I cannot find the code to download the dataset. Please correct me if am wrong or if I am missing something.

Ankur-singh avatar Apr 17 '23 21:04 Ankur-singh

Yes, you have to download the dataset.

anshkumar avatar Apr 18 '23 09:04 anshkumar

@Ankur-singh Were you able to train the model? I am getting the below error while running train.sh with the required parameters

tensorflow.python.framework.errors_impl.InvalidArgumentError: buffer_size must be greater than zero.

shashank-sharma333 avatar Apr 22 '23 01:04 shashank-sharma333

@shashank-sharma333 yes I was able to train the model. I had to make quite a few changes to make it work. But in the process, I never came across this error. 😅

Ankur-singh avatar Apr 24 '23 21:04 Ankur-singh

Thank you @Ankur-singh for your comment. Which environment you are using for the training model? Also, Can you list down the changes you made? It would be helpful.

shashank-sharma333 avatar Apr 24 '23 21:04 shashank-sharma333

I have a 3060Ti, so I followed GPU installation instruction from the readme file. Its pretty straight forward. Just make sure your compile the protobufs. Just run this from the root directory of the project

protoc protos/*.proto --python_out=.

Regarding the changes, TBH, I don't remember all of them. It was a couple of weeks ago. One was regarding SGD optimizer, the API has changed, so you should use legacy version. And there were quite a few data type issue, you should be able to fix them with basic type casting. Hope this helps.

Ankur-singh avatar Apr 25 '23 00:04 Ankur-singh