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

i3d loading error #44

Open
rook86 opened this issue Jul 7, 2024 · 0 comments
Open

i3d loading error #44

rook86 opened this issue Jul 7, 2024 · 0 comments

Comments

@rook86
Copy link

rook86 commented Jul 7, 2024

I got the following error when loading i3d. Does anyone know how to solve this?

File "/home/taiju/pyen/VDT/common_metrics_on_video_quality/calculate_fvd.py", line 30, in calculate_fvd
    i3d = load_i3d_pretrained(device=device)
  File "/home/taiju/pyen/VDT/common_metrics_on_video_quality/fvd/videogpt/fvd.py", line 26, in load_i3d_pretrained
    i3d.load_state_dict(torch.load(filepath, map_location=device))
  File "/home/taiju/pyen/VDT/env/lib/python3.8/site-packages/torch/serialization.py", line 712, in load
    return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
  File "/home/taiju/pyen/VDT/env/lib/python3.8/site-packages/torch/serialization.py", line 1049, in _load
    result = unpickler.load()
  File "/home/taiju/pyen/VDT/env/lib/python3.8/site-packages/torch/serialization.py", line 1019, in persistent_load
    load_tensor(dtype, nbytes, key, _maybe_decode_ascii(location))
  File "/home/taiju/pyen/VDT/env/lib/python3.8/site-packages/torch/serialization.py", line 1001, in load_tensor
    wrap_storage=restore_location(storage, location),
  File "/home/taiju/pyen/VDT/env/lib/python3.8/site-packages/torch/serialization.py", line 976, in restore_location
    result = map_location(storage, location)
TypeError: 'int' object is not callable
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

1 participant