junyanz / pytorch-CycleGAN-and-pix2pix

Image-to-Image Translation in PyTorch
Other
23.09k stars 6.32k forks source link

Using evaluate.py on Cityscapes #1475

Closed Woodyet closed 2 years ago

Woodyet commented 2 years ago

Hello.

What kind of folder structure does /pytorch-CycleGAN-and-pix2pix/scripts/eval_cityscapes/evaluate.py expect?

I get the following output. Screenshot 2022-09-01 005934 evaluation_results.txt

I know this is a problem picking up the pngs to process as the flag for --save_output_images 1 was set but yet the folder is empty and the results file is also empty

Can you please provide some clarification, or if someone has managed to get this evaluation script to run let me know the folder layout of your images.

Thanks.

Woodyet commented 2 years ago

Found solution in repo instructions

HuXiaokai12138 commented 1 year ago

repo instructions

I would like to know, how did you solve it, I have the same problem on my side and look forward to your reply.

Woodyet commented 1 year ago

honestly I have no idea what teh solution was...

I have found this script that I used to organise the files for evaluation

Sorry i can't help more

Woodyet commented 1 year ago

actually I think Evaluating Labels2Photos on Cityscapes was the solution

Images stored under --result_dir should contain your model predictions on the Cityscapes validation split, and have the original Cityscapes naming convention (e.g., frankfurt_000001_038418_leftImg8bit.png). The script will output a text file under --output_dir containing the metric.

HuXiaokai12138 commented 1 year ago

honestly I have no idea what teh solution was...

I have found this script that I used to organise the files for evaluation

Sorry i can't help more

Thank you very much for your reply