nshaud / DeepNetsForEO

Deep networks for Earth Observation
Other
476 stars 170 forks source link

error during model training #47

Closed ZouhairBALLOUCH closed 3 years ago

ZouhairBALLOUCH commented 3 years ago

Hello Sir, Please I would like to change the ISPRS Postdam dataset by another one but I always receive this error in the training Concerning the error, please refer to the attached screenshot Thank you in advance for your help Best regards screenshot

nshaud commented 3 years ago

Please include the full stack trace. I assume this is occurring when computing the accuracy in the test function? It would indicate that you don't have the same number of pixels in the images and the ground truth.

Since you changed the dataset, can you check that the images and ground truth masks have the same size?

ZouhairBALLOUCH commented 3 years ago

ok I will check the size , Thank you very much

ZouhairBALLOUCH commented 3 years ago

I solved the size problem but I get this error screen

nshaud commented 3 years ago

Did you change the test() function? It should return either 3 values (if all=True or one).

ZouhairBALLOUCH commented 3 years ago

Hello Sir , I have not changed anything in the test() function
3

nshaud commented 3 years ago

In the third line from the end, you commented the last value of the tuple. This is why there are not enough values to unpack. Closing this issue since this is not related to the notebook.

ZouhairBALLOUCH commented 3 years ago

Thank you very much