xinntao / Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
BSD 3-Clause "New" or "Revised" License
28.59k stars 3.59k forks source link

error of processing all videos in upload folder #232

Closed GeorvityLabs closed 2 years ago

GeorvityLabs commented 2 years ago

when running !python inference_realesrgan_video.py --input upload -n RealESRGANv2-animevideo-xsx2 -s 4 -v -a --half --suffix outx2 I'm getting :

Traceback (most recent call last):
  File "inference_realesrgan_video.py", line 199, in <module>
    main()
  File "inference_realesrgan_video.py", line 108, in main
    if mimetypes.guess_type(args.input)[0].startswith('video'):  # is a video file
AttributeError: 'NoneType' object has no attribute 'startswith'

I'm unable to run the inference on the videos inside the upload folder one after the other.

Hope someone can help fix this issue.

GeorvityLabs commented 2 years ago

I want to run inference on all files in a folder , not one file at a time manually.

GeorvityLabs commented 2 years ago

@xinntao hope you can have a look at this. I'm using the anime video colab notebook.

kodxana commented 2 years ago

@GeorvityLabs Script is made to input one video file. Video gets extracted into frames then upscaled and finally rendered back to video. Also if you run it on colab you might run out of storage space when upscaling multiple videos.