Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck at: Reading video frames from start... #13

Open
anderoavv opened this issue Jun 18, 2023 · 2 comments
Open

Stuck at: Reading video frames from start... #13

anderoavv opened this issue Jun 18, 2023 · 2 comments

Comments

@anderoavv
Copy link

anderoavv commented Jun 18, 2023

Hey!

Any idea why the demo video&audio files just get stuck(just installed and wanted to test demo out)? It's been like this for 10minutes.
Screenshot 2023-06-18 at 08 46 59

Edit:
Ok finally it moved. I have to see what I can do on Azure:
Using cpu for inference.
(80, 561)
Length of mel chunks: 206
0%| | 0/2 [00:00<?, ?it/s]Reading video frames from start...
Loading segmentation network...
Downloading: "https://download.pytorch.org/models/resnet18-5c106cde.pth" to /home/azureuser/.cache/torch/hub/checkpoints/resnet18-5c106cde.pth
100%|█████████████████████████████████████| 44.7M/44.7M [00:00<00:00, 103MB/s]
0%| | 0/2 [12:27<?, ?it/s]
Traceback (most recent call last):
File "inference.py", line 359, in
main()
File "inference.py", line 296, in main
seg_net = init_parser(args.segmentation_path)
File "/home/azureuser/Wav2Lip-HD/face_parsing/swap.py", line 12, in init_parser
net.cuda()
File "/home/azureuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 905, in cuda
return self._apply(lambda t: t.cuda(device))
File "/home/azureuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/home/azureuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/home/azureuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/home/azureuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 820, in _apply
param_applied = fn(param)
File "/home/azureuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 905, in
return self._apply(lambda t: t.cuda(device))
File "/home/azureuser/.local/lib/python3.8/site-packages/torch/cuda/init.py", line 247, in _lazy_init
torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available
run_final.sh: line 11: python: command not found
run_final.sh: line 13: python: command not found

@saifhassan
Copy link
Owner

It is GPU error, please use GPU.

@AIhasArrived
Copy link

AIhasArrived commented Nov 10, 2023

It is GPU error, please use GPU.

Hello @saifhassan how to make it use GPU?
It's mine worked yesterdya but not today:
Error CUDA out of memory. Tried to allocate 15. GiB. GPU 0 has a total capacty of 23.99 GiB of which 0 bytes is free. Of the allocated memory 21.00 GiB is allocated by PyTorch,
I restarted computer to make sure nothing is interfering...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants