-
Notifications
You must be signed in to change notification settings - Fork 1
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
AssertionError #1
Comments
Thanks for the interest in OXnet. I can't find the screenshot anywhere. Would you please try again? |
I have updated it, sorry for that. Please see the first box |
In the current version of OXnet, we are sampling two types of data in one batch: labeled data and unlabeled data. Hence, you can see the usage of a two-stream batch sampler. The reported error is caused by Line 532 in 2c99bb5
|
Thanks for your reply, I have prepared my own train (labeled) dataset with coco-liked format, but where the unlabeled data I should include. I am confused about it. |
You can create two COCO-style json files for labeled data and unlabeled data and merge these two in one single json file. Say you have N labeled data, and M unlabeled data, then the beginning N data in the merged file should be labeled ones and the followed M data are the unlabeled ones. Set N and N+M to be Lines 121 to 125 in 2c99bb5
Note you can give empty or negative values to the annotations for the unlabeled data, these would not be included in the training. Thanks for pointing this out. I will clarify the instruction. |
Very appreciate your clear demonstration and could you show an example of the json file or structure? I think it is easy for users to understand it. |
A COCO-style json file would be a dictionary with the structure like follows:
|
Thank you a lot, I will try it later |
Hi, when I was training, the Cls Cons loss and Reg Cons loss were always 0. They were calculated by soft focal loss. Does it means I add a incorrect unlabeled dataset? |
You may need to pre-train a RetinaNet and use the weights to initialize the teacher model so that the teacher model could generate meaningful pseudo labels to be used in the soft focal loss. |
Cool. Thank you. |
Hello,
I got an error when I tried to train the model. I have attached a link in the box. Do you have any idea about it?
Thank you.
link: https://drive.google.com/file/d/14cI1BLo7FZQ8IhGBuGoUzsXJtEEtlp65/view?usp=sharing
Best wishes,
Qing
The text was updated successfully, but these errors were encountered: