Spaces:
Build error
Build error
Update src/pixel3dmm/tracking/flame/FLAME.py
Browse files
src/pixel3dmm/tracking/flame/FLAME.py
CHANGED
|
@@ -66,7 +66,14 @@ class FLAME(nn.Module):
|
|
| 66 |
|
| 67 |
def __init__(self, config):
|
| 68 |
super(FLAME, self).__init__()
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
ss = pickle.load(f, encoding='latin1')
|
| 71 |
flame_model = Struct(**ss)
|
| 72 |
|
|
|
|
| 66 |
|
| 67 |
def __init__(self, config):
|
| 68 |
super(FLAME, self).__init__()
|
| 69 |
+
|
| 70 |
+
local_path = hf_hub_download(
|
| 71 |
+
repo_id="alexnasa/pixel3dmm",
|
| 72 |
+
filename="FLAME/generic_model.pkl",
|
| 73 |
+
repo_type="model",
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
with open(local_path, 'rb') as f:
|
| 77 |
ss = pickle.load(f, encoding='latin1')
|
| 78 |
flame_model = Struct(**ss)
|
| 79 |
|