Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about the predict.py #355

Open
ASguoyue opened this issue Apr 7, 2022 · 6 comments
Open

about the predict.py #355

ASguoyue opened this issue Apr 7, 2022 · 6 comments

Comments

@ASguoyue
Copy link

ASguoyue commented Apr 7, 2022

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.

@pleaseRedo
Copy link
Contributor

I think it only works with imgs as input?

@LINFF1023
Copy link

How to test a whole folder of images?

@zlf179
Copy link

zlf179 commented Aug 3, 2022

How to test a whole folder of images?

just drag files into cmd

@LINFF1023
Copy link

How to test a whole folder of images?

just drag files into cmd

好像不行,,,

@ZhaoQs999
Copy link

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?

@leo1328
Copy link

leo1328 commented Feb 26, 2023

用glob呗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants