You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
Hello,
The prior out of memory fix - which seemed to break up refacing actions into smaller segments of the larger video being processed - seems no longer in place, as recent builds attempt to process the entire video once again.
This is the result for an 185MB h264 MP4 video, 3840 x 2160 at 60fps:
Trying FFMPEG h264_nvenc encoder
FFMPEG h264_nvenc encoder works
Video codec for FFMPEG: h264_nvenc
CUDA mode with providers ['CUDAExecutionProvider', 'CPUExecutionProvider']
inswapper-shape: [1, 3, 128, 128]
Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True in launch().
Total frames: 3711
Extracting frames: 24%|██████████████▏ | 877/3711 [00:15<00:49, 56.98it/s]
Traceback (most recent call last):
File "D:\refacer-main\venv\lib\site-packages\gradio\routes.py", line 427, in run_predict
output = await app.get_blocks().process_api(
File "D:\refacer-main\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
result = await self.call_function(
File "D:\refacer-main\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\refacer-main\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\refacer-main\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "D:\refacer-main\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "D:\refacer-main\app.py", line 64, in run
return refacer.reface(video_path,faces)
File "D:\refacer-main\refacer.py", line 205, in reface
flag, frame = cap.read()
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 24883200 bytes in function 'cv::OutOfMemoryError'
Running on a relatively untaxed 64GB Windows 10 Pro system, with refacer installed to use the GPU (RTX-3090 24GB. although system RAM gets allocated, regardless.) I did a fresh install of the last few days of commits and all have the same symptom for me.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
The prior out of memory fix - which seemed to break up refacing actions into smaller segments of the larger video being processed - seems no longer in place, as recent builds attempt to process the entire video once again.
This is the result for an 185MB h264 MP4 video, 3840 x 2160 at 60fps:
Running on a relatively untaxed 64GB Windows 10 Pro system, with refacer installed to use the GPU (RTX-3090 24GB. although system RAM gets allocated, regardless.) I did a fresh install of the last few days of commits and all have the same symptom for me.
The text was updated successfully, but these errors were encountered: