magic-research / magic-animate

[CVPR 2024] MagicAnimate: Temporally Consistent Human Image Animation using Diffusion Model
https://showlab.github.io/magicanimate/
BSD 3-Clause "New" or "Revised" License
10.15k stars 1.03k forks source link

output path file not found in run animate_dist or gradio_animate_dist #89

Open Alexjustas2011 opened 7 months ago

Alexjustas2011 commented 7 months ago

File "C:\magic-animate\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "C:\magic-animate\venv\lib\site-packages\gradio\blocks.py", line 1434, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "C:\magic-animate\venv\lib\site-packages\gradio\blocks.py", line 1335, in postprocess_data prediction_value = block.postprocess(prediction_value) File "C:\magic-animate\venv\lib\site-packages\gradio\components\video.py", line 281, in postprocess processed_files = (self._format_video(y), None) File "C:\magic-animate\venv\lib\site-packages\gradio\components\video.py", line 355, in _format_video video = self.make_temp_copy_if_needed(video) File "C:\magic-animate\venv\lib\site-packages\gradio\components\base.py", line 226, in make_temp_copy_if_needed temp_dir = self.hash_file(file_path) File "C:\magic-animate\venv\lib\site-packages\gradio\components\base.py", line 190, in hash_file with open(file_path, "rb") as f: FileNotFoundError: [Errno 2] No such file or directory: 'demo/outputs/2023-12-09T22-06-50.mp4'

tutnyal commented 7 months ago

same issue

dedkamaroz commented 7 months ago

I think you need to create the outputs folder first

FurkanGozukara commented 7 months ago

install error

it is really hard to install properly

i have venv pip auto installer along with extra features such as auto DensePose maker and CodeFormer face improvement and video upscale

https://github.com/magic-research/magic-animate/issues/85

DongJu-Na commented 7 months ago

same issue

betyavan commented 7 months ago

same issue

Starzilla29 commented 6 months ago

I'm having a similar issue too, my path is there:

Traceback (most recent call last):
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/blocks.py", line 1335, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/components/video.py", line 281, in postprocess
    processed_files = (self._format_video(y), None)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/components/video.py", line 355, in _format_video
    video = self.make_temp_copy_if_needed(video)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/components/base.py", line 226, in make_temp_copy_if_needed
    temp_dir = self.hash_file(file_path)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/components/base.py", line 190, in hash_file
    with open(file_path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'demo/outputs/2024-01-05T03-27-10.mp4'
sqqlyd commented 5 months ago

I'm having a similar issue too, my path is there:

Traceback (most recent call last):
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/blocks.py", line 1335, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/components/video.py", line 281, in postprocess
    processed_files = (self._format_video(y), None)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/components/video.py", line 355, in _format_video
    video = self.make_temp_copy_if_needed(video)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/components/base.py", line 226, in make_temp_copy_if_needed
    temp_dir = self.hash_file(file_path)
  File "/mnt/Samsung980Pro/arch_linux_software/anaconda3/envs/manimate/lib/python3.8/site-packages/gradio/components/base.py", line 190, in hash_file
    with open(file_path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'demo/outputs/2024-01-05T03-27-10.mp4'

same plus 1

Traceback (most recent call last):
  File "/home/myserver/anaconda3/envs/manimate/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/myserver/anaconda3/envs/manimate/lib/python3.10/site-packages/gradio/blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "/home/myserver/anaconda3/envs/manimate/lib/python3.10/site-packages/gradio/blocks.py", line 1335, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "/home/myserver/anaconda3/envs/manimate/lib/python3.10/site-packages/gradio/components/video.py", line 281, in postprocess
    processed_files = (self._format_video(y), None)
  File "/home/myserver/anaconda3/envs/manimate/lib/python3.10/site-packages/gradio/components/video.py", line 355, in _format_video
    video = self.make_temp_copy_if_needed(video)
  File "/home/myserver/anaconda3/envs/manimate/lib/python3.10/site-packages/gradio/components/base.py", line 226, in make_temp_copy_if_needed
    temp_dir = self.hash_file(file_path)
  File "/home/myserver/anaconda3/envs/manimate/lib/python3.10/site-packages/gradio/components/base.py", line 190, in hash_file
    with open(file_path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'demo/outputs/2024-02-10T01-47-59.mp4'
LinDifficulty commented 3 months ago

I hava same issue too FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\Desktop\\zhangyu\\magic-animate-for-windows\\demo\\outputs\\2024-03-21T22-02-49.mp4'