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

when i execute "python vid2vid/main.py ", something wrong happend #31

Closed
wangbochao1 opened this issue Dec 23, 2023 · 2 comments
Closed

Comments

@wangbochao1
Copy link

Traceback (most recent call last):
File "/root/autodl-tmp/project/StreamDiffusion/examples/vid2vid/main.py", line 106, in
fire.Fire(main)
File "/root/miniconda3/envs/streamdiffusion/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/root/miniconda3/envs/streamdiffusion/lib/python3.10/site-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/root/miniconda3/envs/streamdiffusion/lib/python3.10/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/root/autodl-tmp/project/StreamDiffusion/examples/vid2vid/main.py", line 99, in main
video_result[i] = output_image.permute(1, 2, 0)
RuntimeError: The expanded size of the tensor (364) must match the existing size (600) at non-singleton dimension 1. Target sizes: [604, 364, 3]. Tensor sizes: [360, 600, 3]

@earthwormjeff
Copy link

earthwormjeff commented Dec 24, 2023

replace at the end of main.py :
for _ in range(stream.batch_size):
stream(image=torch.permute(video[0], (2, 1, 0)))

for i in tqdm(range(video.shape[0])):
    output_image = stream(torch.permute(video[i],(2, 1, 0)))
    video_result[i] = torch.permute(output_image, (2, 1, 0))

@wangbochao1
Copy link
Author

thanks

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

3 participants