Pytorch-UNet icon indicating copy to clipboard operation
Pytorch-UNet copied to clipboard

about the predict.py

Open ASguoyue opened this issue 2 years ago • 6 comments

when i run the predict.py , it has some mistakes: Traceback (most recent call last): File "/home/atr2/Code/Pytorch-UNet-master/predict.py", line 101, in img = Image.open(filename) File "/home/atr2/anaconda3/envs/PyTorch/lib/python3.7/site-packages/PIL/Image.py", line 2904, in open fp = builtins.open(filename, "rb") IsADirectoryError: [Errno 21] Is a directory: '.'

I only change the data root, image

How can i deal with it, thanks.

ASguoyue avatar Apr 07 '22 14:04 ASguoyue

I think it only works with imgs as input?

pleaseRedo avatar Apr 11 '22 08:04 pleaseRedo

How to test a whole folder of images?

LINFF1023 avatar Aug 03 '22 07:08 LINFF1023

How to test a whole folder of images?

just drag files into cmd

zlf179 avatar Aug 03 '22 19:08 zlf179

How to test a whole folder of images?

just drag files into cmd

好像不行,,,

LINFF1023 avatar Aug 04 '22 03:08 LINFF1023

How to test a whole folder of images?

Have you solved it, please? Now that I have trained the model, where should I adjust the path of my test set in "predict.py" if I want to predict my test set?

ZhaoQs999 avatar Feb 22 '23 08:02 ZhaoQs999

用glob呗

leo1328 avatar Feb 26 '23 10:02 leo1328