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
Training with new database #12
Comments
Thanks. I will make this part clearer, with examples. python issegm/voc.py --gpus 0,1,2,3 --split train --data-root ${New_database} --output output --model ${New_database}_rna-a1_cls${Number_of_classes} --batch-images 16 --crop-size 500 --origin-size 2048 --scale-rate-range 0.7,1.3 --weights models/ilsvrc-cls_rna-a1_cls1000_ep-0001.params --lr-type fixed --base-lr 0.0016 --to-epoch 140 --kvstore local --prefetch-threads 4 --prefetcher thread --backward-do-mirror Changing --crop-size and/or --origin-size as you like is supposed to be OK.
|
@itijyou Thank you for the reply. May I ask more question? 1. dataset definition?There is a part like , line number 250 in voc.py I think I need to define something here for a new dataset. I dont know what I have to do. 2. A format of labelA format of label is different for each dataset. So what format is allowed? (e.g. (wxh and intensity=label) or (wxhxc intensity =[label, label, label]) Thank you! |
elif dataset == 'pascal-context':
num_classes = model_specs.get('classes', 60)
valid_labels = range(num_classes)
#
max_shape = np.array((500, 500))
|
Thank you, I can train it now. Could you please tell me how I can check an accuracy on a validation set for each epoch? MXNet is totally new to me, so that I am sorry to ask you many questions. Thanks. |
Specify the `eval_data' parameter when calling mod.fit For MXNet related questions, it'd be better to ask at the MXNet project. |
I appreciate and thank you for the answers. Since I resolved this issue, I close this issue. |
hello,i follow this command to train the model on the pascal voc dataset, but when I test the model after training ,the prediction is all black. do you know how to deal with it?? |
Hi,
I want to train the pre-trained model with other databases.
I just want to train a model with below script.
python issegm/voc.py --gpus 0,1,2,3 --split train --data-root ${New_database} --output output --model ${New_database}_rna-a1_cls19 --batch-images 16 --crop-size 500 --origin-size 2048 --scale-rate-range 0.7,1.3 --weights models/ilsvrc-cls_rna-a1_cls1000_ep-0001.params --lr-type fixed --base-lr 0.0016 --to-epoch 140 --kvstore local --prefetch-threads 4 --prefetcher thread --backward-do-mirror
What parts of codes do I have to modify? It is not easy to understand whole codes.
And, Do I have to use the same sizes of crop and origin (-crop-size 500 --origin-size 2048) in order to use pretrained weight?
Could you please explain it for me?
Thanks.
The text was updated successfully, but these errors were encountered: