Skip to content

FileNotFoundError: [Errno 2] No such file or directory: 'videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_1/0002.bin' #38

@Kendrick-Stein

Description

@Kendrick-Stein

Thanks for publishing your great work. I would highly appreciate it if you could help me with the following problem.

I was trying to run the example code and ran into this werid problem. The first two steps went perfectly fine, but the third command line 'python rerender.py --cfg config/van_gogh_man.json -nr' simply won't work. I figured out it was trying to read the image in path "videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_1/0002.jpg" and similarly in 'videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_31/0032.jpg'. but the file simply doesn't exist there.
I wonder what went wrong? Could it be in the first two steps?

terminal output
No module 'xformers'. Proceeding without it.
python video_blend.py videos/pexels-antoni-shkraba-8048492-540x960-25fps --beg 1 --end 101 --itv 10 --key keys --output videos/pexels-antoni-shkraba-8048492-540x960-25fps/blend.mp4 --fps 25.0 --n_proc 4 -ps
/home/smbu/anaconda3/envs/rerender/lib/python3.8/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/TensorShape.cpp:2894.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
/home/smbu/anaconda3/envs/rerender/lib/python3.8/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/TensorShape.cpp:2894.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
/home/smbu/anaconda3/envs/rerender/lib/python3.8/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/TensorShape.cpp:2894.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
/home/smbu/anaconda3/envs/rerender/lib/python3.8/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/TensorShape.cpp:2894.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_31/0031.jpg
videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_81/0081.jpg
videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_1/0001.jpg
videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_31/0032.jpg
Process Process-2:
Traceback (most recent call last):
File "/home/smbu/anaconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/smbu/anaconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/smbu/mediadisk/Rerender_A_Video/video_blend.py", line 110, in process_sequences
process_one_sequence(i, video_sequence)
File "/home/smbu/mediadisk/Rerender_A_Video/video_blend.py", line 97, in process_one_sequence
cmd += ' ' + g.get_cmd(j, w)
File "/home/smbu/mediadisk/Rerender_A_Video/blender/guide.py", line 101, in get_cmd
warped_img = flow_calc.warp(prev_img, self.flows[i - 1],
File "/home/smbu/mediadisk/Rerender_A_Video/flow/flow_utils.py", line 188, in warp
if len(img.shape) == 2:
AttributeError: 'NoneType' object has no attribute 'shape'
videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_81/0082.jpg
Process Process-4:
Traceback (most recent call last):
File "/home/smbu/anaconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/smbu/anaconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/smbu/mediadisk/Rerender_A_Video/video_blend.py", line 110, in process_sequences
process_one_sequence(i, video_sequence)
File "/home/smbu/mediadisk/Rerender_A_Video/video_blend.py", line 97, in process_one_sequence
cmd += ' ' + g.get_cmd(j, w)
File "/home/smbu/mediadisk/Rerender_A_Video/blender/guide.py", line 101, in get_cmd
warped_img = flow_calc.warp(prev_img, self.flows[i - 1],
File "/home/smbu/mediadisk/Rerender_A_Video/flow/flow_utils.py", line 188, in warp
if len(img.shape) == 2:
AttributeError: 'NoneType' object has no attribute 'shape'
videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_61/0061.jpg
videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_1/0002.jpg
Process Process-1:
Traceback (most recent call last):
File "/home/smbu/anaconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/smbu/anaconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/smbu/mediadisk/Rerender_A_Video/video_blend.py", line 110, in process_sequences
process_one_sequence(i, video_sequence)
File "/home/smbu/mediadisk/Rerender_A_Video/video_blend.py", line 97, in process_one_sequence
cmd += ' ' + g.get_cmd(j, w)
File "/home/smbu/mediadisk/Rerender_A_Video/blender/guide.py", line 101, in get_cmd
warped_img = flow_calc.warp(prev_img, self.flows[i - 1],
File "/home/smbu/mediadisk/Rerender_A_Video/flow/flow_utils.py", line 188, in warp
if len(img.shape) == 2:
AttributeError: 'NoneType' object has no attribute 'shape'
videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_61/0062.jpg
Process Process-3:
Traceback (most recent call last):
File "/home/smbu/anaconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/smbu/anaconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/smbu/mediadisk/Rerender_A_Video/video_blend.py", line 110, in process_sequences
process_one_sequence(i, video_sequence)
File "/home/smbu/mediadisk/Rerender_A_Video/video_blend.py", line 97, in process_one_sequence
cmd += ' ' + g.get_cmd(j, w)
File "/home/smbu/mediadisk/Rerender_A_Video/blender/guide.py", line 101, in get_cmd
warped_img = flow_calc.warp(prev_img, self.flows[i - 1],
File "/home/smbu/mediadisk/Rerender_A_Video/flow/flow_utils.py", line 188, in warp
if len(img.shape) == 2:
AttributeError: 'NoneType' object has no attribute 'shape'
ebsynth: 3.1687724590301514
Traceback (most recent call last):
File "video_blend.py", line 319, in
main(args)
File "video_blend.py", line 268, in main
process_seq(video_sequence, i, blend_histogram, blend_gradient)
File "video_blend.py", line 199, in process_seq
dist1s.append(load_error(bin_a, img_shape))
File "video_blend.py", line 160, in load_error
with open(bin_path, 'rb') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'videos/pexels-antoni-shkraba-8048492-540x960-25fps/out_1/0002.bin'

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