-
Notifications
You must be signed in to change notification settings - Fork 104
Description
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