DIAGNijmegen / pathology-hooknet

MIT License
51 stars 10 forks source link

Structure of 'data' file #5

Closed AyaAq closed 3 years ago

AyaAq commented 3 years ago

I am trying to run the training for the model with all the default values, but I am getting this error: ValueError: Input 0 of layer conv2d is incompatible with the layer: : expected min_ndim=4, found ndim=2. Full shape received: [None, 284]. I am suspecting the problem might be that the batchgenerator is not reading in the files properly. What is the file structure the model training script assumes?

Thanks, Aya

martvanrijthoven commented 3 years ago

Hi Aya,

Sorry for the inconvenience. I have fixed this error now and train.py should work again. You should now set both the input_shape for the target and the context branch as a list of list (please see the change in the train_parameters.yml file)

martvanrijthoven commented 3 years ago

Extra Note: The batch generator does not read any files, it generates random values, just for illustration purposes. You have to create your own batch generator, for now. I hope I can publically release the batch generator that I have used in the paper, soon.