Open srinathjayaraman opened 2 years ago
@srinathjayaraman The original author, Annus has assigned model_input_size to stride. So, in data_loader/data_loader.py, assign stride=model_input_size
before bands and it should work fine.
Thank you!!
@srinathjayaraman The original author, Annus has assigned model_input_size to stride.
Where did you notice this @th145?
@srinathjayaraman In his repo! :P Old code is his code.
In
data_loaders.py
, line 72, an instance ofBaseInferenceDataset
is created.BaseInferenceDataset
is defined inbase_dataset.py
. It has the following arguments:But when class
BaseInferenceDataset
is called on line 72 ofdata_loaders.py
, thestride
argument is not passed, causing the program to fail. Not sure what value of stride should be passed, but this is clearly an issue that has to be corrected. I've pasted a screenshot from PyCharm showing this error.A very similar typo is present later on in the same
data_loaders.py
file. Line 52 creates an instance ofBaseTrainDataset
, which is also defined inbase_dataset.py
. It has the following arguments:But when class
BaseTrainDataset
is called indata_loaders.py
, themode=train
argument is not passed (should be mentioned on line 54), which will also cause the program to fail. But on line 59,mode=test
is clearly specified under theelse
condition. This of course means that the missingmode=train
argument is just a typo. Should be quite an easy fix. .