Dataset in downloaded model

Hi,
I have trained my first u-net and the results are quite impressive.
I have downloaded the trained model and I’m trying to get it running on my PC.
I always get the error message below and I obviously do some thing wrong with my test dataset … but what?
I have tried to use exactely the same dataset I used for the training but I got the same error message. I have tried a lot of CVS variation but … could not succed.
Can anyone help me to configure my dataset … and the config to use downloaded trained model ?
Thks a lot
Phil

_Using TensorFlow backend.
outputs will be stored at './output/'

aborting due to exception… Please check input file format!
Traceback (most recent call last):
** File “test.py”, line 231, in test_model**
** os.path.dirname(input_file), test_raw, data_mapping)**
** File “test.py”, line 81, in process_test_input**
** img = scipy.misc.imread(base_dir + “/” + test_raw[col_name][0])**
AttributeError: module ‘scipy.misc’ has no attribute ‘imread’"

Hi this error is might be because of missing lib.
You need to install Pillow (formerly PIL).

Regards
Rajat

HI,
Thank you very much Rajat,
I just installed pillow but I have a new error message … I tried many different combinations of test.csv files and subfolders … without success ! :cold_sweat:
sorry to be so dense!
Here is my new error message:

C:\tests_dls\camille1>python test.py test.csv
Using TensorFlow backend.
outputs will be stored at ‘./output/’

aborting due to exception… Please check input file format!
Traceback (most recent call last):
_ File “test.py”, line 231, in test_model_
_ os.path.dirname(input_file), test_raw, data_mapping)_
_ File “test.py”, line 81, in process_test_input_
_ img = scipy.misc.imread(base_dir + “/” + test_raw[col_name][0])_
_ File “C:\Users\maison\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\lib\utils.py”, line 101, in newfunc_
_ return func(*args, **kwds)_
_ File “C:\Users\maison\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\misc\pilutil.py”, line 164, in imread_
_ im = Image.open(name)_
_ File “C:\Users\maison\AppData\Local\Programs\Python\Python36\lib\site-packages\PIL\Image.py”, line 2652, in open_
_ fp = builtins.open(filename, “rb”)_
FileNotFoundError: [Errno 2] No such file or directory: ‘/./input/0001.png’

Thanks to DLS (and thanks to you), I was able to create and train my first neural network and … I would be so happy to be able to deploy it!

Thks
Best regards

Phil
PS. to be sure to use the correct data format, I used my training dataset to create this first test dataset

Hi this error is because of the incorrect input file.
As I can see your input file name is “/./input/0001.png”
Try removing “/” from the starting.

Regards
Rajat