Rerender_A_Video icon indicating copy to clipboard operation
Rerender_A_Video copied to clipboard

IndexError: list index out of range

Open oliverban opened this issue 1 year ago • 7 comments

I get the same error as another user but with different error lines. After "Run 1st Key Frame" which works well, I get my style. Then running "Run Key Frames" gives:

Traceback (most recent call last): File "c:\python\lib\site-packages\gradio\queueing.py", line 388, in call_prediction output = await route_utils.call_process_api( File "c:\python\lib\site-packages\gradio\route_utils.py", line 219, in call_process_api output = await app.get_blocks().process_api( File "c:\python\lib\site-packages\gradio\blocks.py", line 1437, in process_api result = await self.call_function( File "c:\python\lib\site-packages\gradio\blocks.py", line 1109, in call_function prediction = await anyio.to_thread.run_sync( File "c:\python\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "c:\python\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "c:\python\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, *args) File "c:\python\lib\site-packages\gradio\utils.py", line 641, in wrapper response = f(*args, **kwargs) File "c:\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "C:\Users\Oliver\Documents\Github\Rerender_A_Video\webUI.py", line 550, in process2 samples, _ = ddim_v_sampler.sample( File "c:\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "C:\Users\Oliver\Documents\Github\Rerender_A_Video\src\ddim_v_hacked.py", line 212, in sample samples, intermediates = self.ddim_sampling( File "c:\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "C:\Users\Oliver\Documents\Github\Rerender_A_Video\src\ddim_v_hacked.py", line 312, in ddim_sampling weight = mask[i] IndexError: list index out of range

And then I read something about dividing doing some frame math myself, but I don't know the formula/equation I should use for that.

oliverban avatar Sep 19 '23 22:09 oliverban