-
Notifications
You must be signed in to change notification settings - Fork 12
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
ValueError: too many values to unpack (expected 3) #10
Comments
Hi, many thanks for your attention to our work! Line 87 in 94ed426
It will change the original dict to 'img, labels, crops', you can refer to https://github.com/Luffy03/VoCo/blob/main/utils/data_utils.py. |
Thanks for your quick reply! |
It is weird. Would you please provide your 'data_utils.py' file? |
And do you have problems with the 10k pre-training? |
Thanks for the suggestions. I have tried to use get_loader instead of get_loader_1k and the issue did not appear. I think it is due to the difference of train_transforms in two functions. But anyway, I think it is fixed. |
Great to hear that! |
Dear author,
thanks for sharing the source code of your brilliant paper! When I was trying to run through the pre-training code with 1.6K CT volumes, I met a bug in the line:
img, labels, crops = batch
with ValueError: too many values to unpack (expected 3)
After that, I dig into the "batch" and found it is comprised of dictionaries with keys "image", "foreground_start_coord", "foreground_end_coord". Are these three corresponding to the "img, labels, crops" in your code? Please point out if I made a mistake.
Thank you so much in advance!
The text was updated successfully, but these errors were encountered: