Open michaelbornholdt opened 3 years ago
@Arkkienkeli @jccaicedo
So this error occurs when your config is not in sync with the index file. More precisely: My Split column in the index file had values of 'Test' and 'Training'
My config however had the line:
training_values": ["Train"]
This leads to an empty dataframe being handed to this line: https://github.com/cytomining/DeepProfiler/blob/master/deepprofiler/dataset/image_dataset.py#L73
This specific error would need to be changed to an assert error which warns the user of this mismatch.
This is an example of bad error messages. I think we should maybe open a thread to gather these mistakes and and some point maybe build better error logs. Your call @jccaicedo
I have managed to either corrupt my location files or my index.csv in such a way that this error appears. Unfortunately it is quite unhelpful since one does not know which files are missing or where the problem lies.
Ideally, DP would check if location files exist and include the missing file or values in the error message.