Skip to content

Process Error #1

@furkan-izgi

Description

@furkan-izgi

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 😄.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions