Spaces:
Running
Running
Daniel Gil-U Fuhge
commited on
Commit
•
091c741
1
Parent(s):
163b3a3
update model loading
Browse files- animationPipeline.py +1 -1
animationPipeline.py
CHANGED
@@ -27,7 +27,7 @@ def animateLogo(path : str):
|
|
27 |
use_positional_encoder=True
|
28 |
).to(device)
|
29 |
|
30 |
-
model.load_state_dict(torch.load("models/animation_transformer.pth", map_location=torch.device('cpu')))
|
31 |
|
32 |
df = compute_embedding(path, "src/preprocessing/deepsvg/deepsvg_models/deepSVG_hierarchical_ordered.pth.tar")
|
33 |
df = df.drop("animation_id", axis=1)
|
|
|
27 |
use_positional_encoder=True
|
28 |
).to(device)
|
29 |
|
30 |
+
model.load_state_dict(torch.load("models/animation_transformer.pth", map_location=torch.device('cpu')), strict=False)
|
31 |
|
32 |
df = compute_embedding(path, "src/preprocessing/deepsvg/deepsvg_models/deepSVG_hierarchical_ordered.pth.tar")
|
33 |
df = df.drop("animation_id", axis=1)
|