Closed jinhonglu closed 3 years ago
Hi! thanks for your contribution!, great first issue!
Could it be that in one of your training or validation step/epoch_end you return a None value?
Could it be that in one of your training or validation step/epoch_end you return a None value?
I don't think so. It is because it did not happen on my Mac and I had run multiple times on the server, all of them have this error.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@jinhonglu Is there any further information you could provide? Sorry for the late request, but I would need a full code example to check if this is still an issue. Your code sample looks fine, so I cannot guess what the problem might be unless I can reproduce it. Again, sorry for the late response.
side note... you never reset your model weights. So, it's not doing true cross validation. Instead it's keeping the same weights from all previous folds.
@williamFalcon Thanks for pointing out.
@awaelchli That is basically the full code for that. I switched to the original pytorch usage for my project, it did not raise me this error and so there was no other more information that I could provide right now.
🐛 Bug
I tried to run k-fold cross-validation, this gives me a tqdm 'NoneType' object is not iterable on a Linux-based server, but not on a Macbook. I try to keep the packages in both sides to be same, but it still has the same error in the Linux-based server
Code sample
Trackback
Expected behavior
It should save the model afterwards
Environment
Additional context
I tried lightning 0.8.5 and tqdm 4.47 as well. All fails.