stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: FileNotFoundError: [Errno 2] No such file or directory: '/content/GFPGAN/results/restored_imgs'

Open Easietorun03 opened this issue 1 year ago • 0 comments

Checklist

  • [ ] The issue exists after disabling all extensions
  • [ ] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [x] The issue exists in the current version of the webui
  • [ ] The issue has not been reported before recently
  • [ ] The issue has been reported before but has not been fixed yet

What happened?

This error has been happening to me for months when I use GFP-GAN from Google Colab, this time I use this model to improve videos, and every time I use GFP-GAN I get this error:

Traceback (most recent call last): File "/content/GFPGAN/inference_gfpgan.py", line 7, in from basicsr.utils import imwrite File "/usr/local/lib/python3.10/dist-packages/basicsr/init.py", line 4, in from .data import * File "/usr/local/lib/python3.10/dist-packages/basicsr/data/init.py", line 22, in _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames] File "/usr/local/lib/python3.10/dist-packages/basicsr/data/init.py", line 22, in _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames] File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/usr/local/lib/python3.10/dist-packages/basicsr/data/realesrgan_dataset.py", line 11, in from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels File "/usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py", line 8, in from torchvision.transforms.functional_tensor import rgb_to_grayscale ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

FileNotFoundError Traceback (most recent call last) in <cell line: 61>() 59 fps = 30 60 ---> 61 create_video_from_frames(frames_folder, output_path, fps) 62 63 get_ipython().system('rm -r /content/GFPGAN/results')

in create_video_from_frames(frames_folder, output_path, fps) 36 def create_video_from_frames(frames_folder, output_path, fps): 37 ---> 38 image_files = sorted([f for f in os.listdir(frames_folder) if f.endswith(".jpg")], key=ordenar_por_numero) 39 40 image_path = os.path.join(frames_folder, image_files[0])

FileNotFoundError: [Errno 2] No such file or directory: '/content/GFPGAN/results/restored_imgs'

I need help to solve this problem, I don't know what to do to fix it.

Link: https://colab.research.google.com/drive/1Z6RINOM-wTmXcWuHatgPpJ5nVg39bZkr?usp=sharing#scrollTo=6jiX3Kw6FJ4p

Steps to reproduce the problem

  1. Mount Google Drive
  2. Install GFP-GAN
  3. Start the process of improvement

What should have happened?

Problems in the library, when installing the model, it does not install the result folder along with the restored_imgs folder and three other folders.

What browsers do you use to access the UI ?

No response

Sysinfo

Google Colab

Console logs

Nothing

Additional information

No response

Easietorun03 avatar Jul 05 '24 18:07 Easietorun03