MC-E / ReVideo

Other
320 stars 10 forks source link

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

Open shnulailai opened 2 months ago

shnulailai commented 2 months ago

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 commented 2 months ago

You use a wrong method to load CoTracker

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

shnulailai commented 2 months ago

您的来信我已经收到了!