Closed ChunmengLiu1 closed 7 months ago
I got the same error of weight tensor after changing the yaml to adapt my own dataset. Did you solve this error?
I solved it now. I think this error is caused by the wrong number of classes.
We should set it by this python train_net.py --eval-only --config-file <CONFIG_FILE> --num-gpus <NUM_GPU> OUTPUT_DIR <OUTPUT_PATH> MODEL.WEIGHTS <TRAINED_MODEL_PATH> MODEL.SAN.NUM_CLASSES [NUM_OF_CLASS]
which is mentioned in another issue how to train on our own dataset.
@Irennnne is right. You can specify the number of training classes for the loss computing.
I solved it now. I think this error is caused by the wrong number of classes. We should set it by this
python train_net.py --eval-only --config-file <CONFIG_FILE> --num-gpus <NUM_GPU> OUTPUT_DIR <OUTPUT_PATH> MODEL.WEIGHTS <TRAINED_MODEL_PATH> MODEL.SAN.NUM_CLASSES [NUM_OF_CLASS]
which is mentioned in another issue how to train on our own dataset.
Hi, thank you for sharing. But I have problems about how to find these params, like MODEL.WEIGHTS and MODEL.SAN.NUM_CLASSES. Can you give me some advice? Thank you so much!
@Irennnne is right. You can specify the number of training classes for the loss computing.
Thank you fro your reply. How about the another two issues? Do you have some insight? thank you!
Thank you for your patience! Got it!
Hi! thank you for your good work.
I want to train and test on the PASCAL VOC 2012 datasets. where should I change? /config/base-coco-stuff-164k-171.yaml? To change the original 'coco_2017_train_stuff_sem_seg' to 'voc_sem_seg_train' on the DATASETS:TRAIN: position?
and after I changed the yaml file like above, I still met the problems as follows:
It looks like the code problem not the environment problem. Do you have any advice?
3.How do you get the 'datasets/VOC2012/annotations_detectron2/train' datasets? ti's 10582 images for PASCAL VOC 2012 train set here?
Thank you!