Coder Social home page Coder Social logo

saba99 / superresolution_animation_video Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 61.11 MB

Super Resolution for Cartoon Video

License: Other

Python 100.00%
super-resolution video-processing video-super-resolution video-enhancement animation-video

superresolution_animation_video's People

Contributors

saba99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lovegotobe

superresolution_animation_video's Issues

Process Error

Hi, when I tried your repo, I faced a problem:

C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\torchvision\transforms\functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be removed in 0.17. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
warnings.warn(
Traceback (most recent call last):
File "C:\Users\xxx\Desktop\AnimeSR\scripts\inference_animesr_video.py", line 377, in
main()
File "C:\Users\xxx\Desktop\AnimeSR\scripts\inference_animesr_video.py", line 370, in main
run(args)
File "C:\Users\xxx\Desktop\AnimeSR\scripts\inference_animesr_video.py", line 293, in run
pool = ctx.Pool(num_process)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\multiprocessing\context.py", line 119, in Pool
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 205, in init
raise ValueError("Number of processes must be at least 1")
ValueError: Number of processes must be at least 1

I used python scripts/inference_animesr_video.py -i inputs/a.mp4 -n AnimeSR_v2 -s 4 --expname animesr_v2 --num_process_per_gpu 3 --suffix 1gpu3process this command.

Edit:
When I changed the num_gpus value to 1, program started bu after a few seconds I face this error:

**C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\torchvision\transforms\functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be removed in 0.17. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
warnings.warn(
inference: 0%| | 0/2 [00:00<?, ?sub_video/s]C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\torchvision\transforms\functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be removed in 0.17. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
warnings.warn(
C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\torchvision\transforms\functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be removed in 0.17. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
warnings.warn(
ffmpeg -f concat -safe 0 -i results\animesr_v2\videos\a/vidlist.txt -c:v copy -af aresample=async=1000 results\animesr_v2\videos\a\a_1gpu2process.mp4 -y
Traceback (most recent call last):
File "C:\Users\xxx\Desktop\AnimeSR\scripts\inference_animesr_video.py", line 377, in
main()
File "C:\Users\xxx\Desktop\AnimeSR\scripts\inference_animesr_video.py", line 370, in main
run(args)
File "C:\Users\xxx\Desktop\AnimeSR\scripts\inference_animesr_video.py", line 326, in run
subprocess.call(cmd)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 345, in call
with Popen(*popenargs, kwargs) as p:
File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
inference: 0%| | 0/2 [00:03<?, ?sub_video/s]

I apply all instructions step by step and I have not face any problem in the instructions part. My laptop's specifications are AMD Ryzen 4800H, AMD Radeon 5500M, 16GB Ram. I think the problem which I faced because of Ryzen. Thanks for the answer ๐Ÿ˜„.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.