RaymondLZhou / deepDeband

Official repository of the Deep Image Debanding conference paper. This research project was done with Dr. Shahrukh Athar, Zhongling Wang, and Prof. Zhou Wang, and the work is published in ICIP 2022.
MIT License
15 stars 4 forks source link

Error at running: FileNotFoundError: [Errno 2] No such file or directory #7

Open kikobr opened 9 months ago

kikobr commented 9 months ago

Hi there! I followed the steps to install the requirements and download the model. When I try to run it, it gives me an error:

python3 deepDeband.py --version f sh: 1: python: not found sh: 1: python: not found Traceback (most recent call last): File "/home/kiko/Downloads/DeepDeband/deepDeband/src/deepDeband.py", line 18, in <module> deband.deband_images(image_sizes, args['version'], args['gpu_ids']) File "/home/kiko/Downloads/DeepDeband/deepDeband/src/deband.py", line 7, in deband_images deband_full.deband_images(image_sizes, gpu_ids) File "/home/kiko/Downloads/DeepDeband/deepDeband/src/deband_full.py", line 35, in deband_images for file in os.listdir('temp/deepDeband-f/debanded/deepDeband-f/test_latest/images'): FileNotFoundError: [Errno 2] No such file or directory: 'temp/deepDeband-f/debanded/deepDeband-f/test_latest/images'

I guess it's supposed to create this temporary folder, but when I check temp/deepDeband-f/debanded, it's empty. What am I missing?

RaymondLZhou commented 9 months ago

I believe the issue is from sh: 1: python: not found, since the code runs a shell command using python. If python3 is what's defined instead, you can edit line 14 of deband_full.py to use python3 instead. Otherwise I think you should also be able to set up an alias or something to define python as a valid command.