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

ValueError: too many values to unpack (expected 2) How to solve? #5

Open
shnulailai opened this issue Aug 5, 2024 · 2 comments
Open

Comments

@shnulailai
Copy link

shnulailai commented Aug 5, 2024

Great project! Could you help me with how to solve this issue? I haven't been able to get it working yet.

this error:
@svd Inference: 2024-08-05-14-45-25
Traceback (most recent call last):
File "/mnt/workspace/lailai/dthz/ReVideo/main/inference/sample_constant_motion.py", line 309, in
sample(input_path=args.input, path_ref=args.path_ref, ckpt=args.ckpt, config=args.config, num_frames=args.frames, num_steps=args.ddim_steps,
File "/mnt/workspace/lailai/dthz/ReVideo/main/inference/sample_constant_motion.py", line 64, in sample
cotracker = torch.hub.load(co_tracker, "cotracker2").to(device) # facebookresearch/co-tracker
File "/mnt/workspace/lailai/env/anaconda/envs/revideo/lib/python3.10/site-packages/torch/hub.py", line 560, in load
repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, trust_repo, "load",
File "/mnt/workspace/lailai/env/anaconda/envs/revideo/lib/python3.10/site-packages/torch/hub.py", line 202, in _get_cache_or_reload
repo_owner, repo_name, ref = _parse_repo_info(github)
File "/mnt/workspace/lailai/env/anaconda/envs/revideo/lib/python3.10/site-packages/torch/hub.py", line 135, in _parse_repo_info
repo_owner, repo_name = repo_info.split('/')
ValueError: too many values to unpack (expected 2)

@MC-E
Copy link
Owner

MC-E commented Aug 6, 2024

You use a wrong method to load CoTracker

cotracker = torch.hub.load("facebookresearch/co-tracker", "cotracker2").to(device)

@shnulailai
Copy link
Author

shnulailai commented Aug 6, 2024 via email

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