Skip to content

Struggling to run code #83

@ricshaw

Description

@ricshaw

Hi, thanks for the great work. I am having issues running the code. I am trying to run python demo_gr.py but get the following error:

Traceback (most recent call last):
File "/home/richards/code/stable-virtual-camera/demo_gr.py", line 111, in
CONDITIONER = CLIPConditioner().to(device)
^^^^^^^^^^^^^^^^^
File "/home/richards/code/stable-virtual-camera/seva/modules/conditioner.py", line 13, in init
self.module = open_clip.create_model_and_transforms(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richards/miniconda3/envs/stable_virtual_camera/lib/python3.11/site-packages/open_clip/factory.py", line 503, in create_model_and_transforms
model = create_model(
^^^^^^^^^^^^^
File "/home/richards/miniconda3/envs/stable_virtual_camera/lib/python3.11/site-packages/open_clip/factory.py", line 401, in create_model
load_checkpoint(model, checkpoint_path, weights_only=load_weights_only)
File "/home/richards/miniconda3/envs/stable_virtual_camera/lib/python3.11/site-packages/open_clip/factory.py", line 191, in load_checkpoint
state_dict = load_state_dict(checkpoint_path, device=device, weights_only=weights_only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richards/miniconda3/envs/stable_virtual_camera/lib/python3.11/site-packages/open_clip/factory.py", line 157, in load_state_dict
checkpoint = load_file(checkpoint_path, device=device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/richards/miniconda3/envs/stable_virtual_camera/lib/python3.11/site-packages/safetensors/torch.py", line 313, in load_file
with safe_open(filename, framework="pt", device=device) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions