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

Followed instructions, missing file. #27

Open
arthurwolf opened this issue Jan 27, 2024 · 1 comment
Open

Followed instructions, missing file. #27

arthurwolf opened this issue Jan 27, 2024 · 1 comment

Comments

@arthurwolf
Copy link

I followed the instructions in the Readme.

When trying to run the download.sh file, I get:

Failed to retrieve file url:

        Too many users have viewed or downloaded this file recently. Please
        try accessing the file again later. If the file you are trying to
        access is particularly large or is shared with many people, it may
        take up to 24 hours to be able to view or download the file. If you
        still can't access a file after 24 hours, contact your domain
        administrator.

You may still be able to access the file from the browser:

        https://drive.google.com/uc?id=1Z4JOley0SJCb35kFF4PCc6N6P1ftfX4i

but Gdown can't. Please check connections and permissions.

So I just download it directly in the browser and copy the file to models/.

╰─(DragNUWA) ⠠⠵ ls models                                                                                                  on main|…1
4799.pth  Download.sh

Then when I try to run the demo script, the following happens:

VideoTransformerBlock is using checkpointing
VideoTransformerBlock is using checkpointing
VideoTransformerBlock is using checkpointing
Initialized embedder #0: FrozenOpenCLIPImagePredictionEmbedder with 683800065 params. Trainable: False
Initialized embedder #1: ConcatTimestepEmbedderND with 0 params. Trainable: False
Initialized embedder #2: ConcatTimestepEmbedderND with 0 params. Trainable: False
Initialized embedder #3: VideoPredictionEmbedderWithEncoder with 83653863 params. Trainable: False
Initialized embedder #4: ConcatTimestepEmbedderND with 0 params. Trainable: False
parameters of gaussian kernel: kernel_size: 199, sigma: 20, channels: 2
Lora successfully injected into Net.
Traceback (most recent call last):
  File "DragNUWA_demo.py", line 221, in <module>
    DragNUWA_net = Drag("cuda:0", 'models/drag_nuwa_svd.pth', 'DragNUWA_net.py', 320, 576, 14)
  File "DragNUWA_demo.py", line 72, in __init__
    state_dict = file2data(model_path, map_location='cpu')
  File "/home/arthur/dev/ai/DragNUWA/utils.py", line 161, in file2data
    data = torch.load(filename, map_location=kwargs.get('map_location'))
  File "/home/arthur/.anaconda3/envs/DragNUWA/lib/python3.8/site-packages/torch/serialization.py", line 791, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/home/arthur/.anaconda3/envs/DragNUWA/lib/python3.8/site-packages/torch/serialization.py", line 271, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "/home/arthur/.anaconda3/envs/DragNUWA/lib/python3.8/site-packages/torch/serialization.py", line 252, in __init__
    super().__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'models/drag_nuwa_svd.pth'

What is models/drag_nuwa_svd.pth and where do I get it?

Thanks.

@tianrengao
Copy link

You have to rename the 4799.pth to models/drag_nuwa_svd.pth

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