Open mmliu202210 opened 4 months ago
I hope you could be satisfied with my answer
It seems like the dimention index 1 is out of bounds, because cannot identify errors: index 1 is out of bounds for axis 0 with size 1
during loss.backward()
. I suggest you check the shapes of input image, input label, each loss, images used for calculating loss, lables used for calculating loss. You could print their shapes one by one, and check the sentence which used index 1 in axis 0
meanwhile.
Thank you very much for your answer! Have you encountered this problem? How do I fix this?
Traceback (most recent call last):
File "train_semisupervised_CNN_Transformer_PLCL.py", line 559, in
You also, I would like to ask about the label in the data folder, the paper describes that only 20 labels are needed, why do you need to enter 150 labels, and what should be in the skeleton folder? Looking forward to hearing from you!