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

Some errors occurred during the "postprocess" procedure. How can i fix it? #136

Open
MarcYugo opened this issue Jun 30, 2024 · 2 comments
Open

Comments

@MarcYugo
Copy link

When using this command "python video_blend.py result/man --beg 1 --end 352 --itv 10 --key keys --output result/man/man.mp4 --fps 25.0 --n_proc 2 -ps" to combine images into a video, an error occurred.

The information provided for errors is as follows:

/usr/local/miniconda3/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]
/usr/local/miniconda3/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]
Process Process-1:
Traceback (most recent call last):
File "/usr/local/miniconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/miniconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/root/rerender/video_blend.py", line 109, in process_sequences
process_one_sequence(i, video_sequence)
File "/root/rerender/video_blend.py", line 96, in process_one_sequence
cmd += ' ' + g.get_cmd(j, w)
File "/root/rerender/blender/guide.py", line 97, in get_cmd
warped_img = flow_calc.warp(prev_img, self.flows[i - 1],
File "/root/rerender/flow/flow_utils.py", line 230, in warp
if len(img.shape) == 2:
AttributeError: 'NoneType' object has no attribute 'shape'
Process Process-2:
Traceback (most recent call last):
File "/usr/local/miniconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/miniconda3/envs/rerender/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/root/rerender/video_blend.py", line 109, in process_sequences
process_one_sequence(i, video_sequence)
File "/root/rerender/video_blend.py", line 96, in process_one_sequence
cmd += ' ' + g.get_cmd(j, w)
File "/root/rerender/blender/guide.py", line 97, in get_cmd
warped_img = flow_calc.warp(prev_img, self.flows[i - 1],
File "/root/rerender/flow/flow_utils.py", line 230, in warp
if len(img.shape) == 2:
AttributeError: 'NoneType' object has no attribute 'shape'
ebsynth: 7.8225085735321045
Traceback (most recent call last):
File "video_blend.py", line 318, in
main(args)
File "video_blend.py", line 267, in main
process_seq(video_sequence, i, blend_histogram, blend_gradient)
File "video_blend.py", line 198, in process_seq
dist1s.append(load_error(bin_a, img_shape))
File "video_blend.py", line 159, in load_error
with open(bin_path, 'rb') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'result/man/out_1/0002.bin

@williamyang1991
Copy link
Owner

Please carefully read the README.md - Installation or Running Fails?. All details have been provided:

  1. In case building ebsynth fails, we provides our complied ebsynth
  2. FileNotFoundError: [Errno 2] No such file or directory: 'xxxx.bin' or 'xxxx.jpg':

@MarcYugo
Copy link
Author

Please carefully read the README.md - Installation or Running Fails?. All details have been provided:

  1. In case building ebsynth fails, we provides our complied ebsynth

  2. FileNotFoundError: [Errno 2] No such file or directory: 'xxxx.bin' or 'xxxx.jpg':

Thank you. The problem has been solved.

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

2 participants