-
Notifications
You must be signed in to change notification settings - Fork 86
IndexError: list index out of range #32
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
Comments
No worries at all, this helps us with stress testing, so thank you! 😄 This could be due to the resampling. Could you try the following: data_preprocessing:
{
# 'normalize',
'normalize_nonZero', # this performs z-score normalization only on non-zero pixels
} |
I will also recommend to keep the configuration as light as possible for the toy examples (basically, let the defaults ride). Essentially, the configs in the testing module should be your starting point. 😄 🚀 |
Will do :)
|
Can you try pulling from my branch now and re-try? |
Sorry for replying so late! Was busy the last few days. |
You can try to reproduce the error from my fork: https://github.com/Karol-G/GaNDLF/tree/refactor You should be able to reproduce the error with the following command: When debugging, I noticed that the model output is of size [1,2,1] which cannot be converted to a scalar with .item(). There is a comment there that "this probably needs customization for classification (majority voting or median, perhaps?)", so I guess that is probably the solution 😄 |
Yes! It is working now 😁 Thanks! |
Hi again,
sorry for opening so many issues >.<
When I try to train on the toy dataset in testing/data.zip I get the error
IndexError: list index out of range
. This might originate fromnormalize_nonZero
indata_preprocessing
. I am using the newest pull from gandalf-refactor and am using Linux.The train.csv and the toy data:
https://cloud-ext.igd.fraunhofer.de/s/8kCtZzcFRX96Xt8
Full error log:
This is the model.yaml:
Best
Karol
The text was updated successfully, but these errors were encountered: