Closed WindBlowMyAss closed 1 year ago
Sorry bro, you provided so little information that I can't quite figure out what's wrong. Have you made any changes to the code? Because the original code can run normally. FYI, the shape of pred in my code is [16, 10], where 16 is the batch size, 10 is the length, I do not know why yours is [16, 20]? When the event_class.shape not equal to [16], for example, the event_class.shape is [2], the shape of pred is also [2, 10], so the shapes are equal.
Sorry bro, you provided so little information that I can't quite figure out what's wrong. Have you made any changes to the code? Because the original code can run normally. FYI, the shape of pred in my code is [16, 10], where 16 is the batch size, 10 is the length, I do not know why yours is [16, 20]? When the event_class.shape not equal to [16], for example, the event_class.shape is [2], the shape of pred is also [2, 10], so the shapes are equal.
Thanks a lot for your repliement! I carefully examine the whole data and don't make any changes to your code, but the error still occurs when the shape of 'event_class' and 'pred' changes to [] and [20] suddenly.
Sorry, I can not figure out why this error is happened in your project. I just rerun my weakly_train.py code and it seems OK.
Hey bro, I found that issue when I try to recurrent your result in weakly training settings.To be specific, it's a data error when event_class.shape not equal to [16] in weakly_main.py, which the shape of pred is[16, 20]. What should I do to fix this? Thanks a lot.