init
Browse files
app.py
CHANGED
|
@@ -19,6 +19,16 @@ from mmengine.registry import Registry
|
|
| 19 |
__all__ = ['BUILDER']
|
| 20 |
BUILDER = Registry('builder')
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
NUM = r"[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[eE][+-]?\d+)?"
|
| 24 |
CAM_PATTERN = re.compile(r"(?:camera parameters.*?:|roll.*?:)\s*("+NUM+r")\s*,\s*("+NUM+r")\s*,\s*("+NUM+r")", re.IGNORECASE|re.DOTALL)
|
|
|
|
| 19 |
__all__ = ['BUILDER']
|
| 20 |
BUILDER = Registry('builder')
|
| 21 |
|
| 22 |
+
from huggingface_hub import snapshot_download
|
| 23 |
+
import os
|
| 24 |
+
local_path = snapshot_download(
|
| 25 |
+
repo_id="KangLiao/Puffin",
|
| 26 |
+
repo_type="model",
|
| 27 |
+
local_dir="checkpoints/",
|
| 28 |
+
local_dir_use_symlinks=False,
|
| 29 |
+
revision="main",
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
|
| 33 |
NUM = r"[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[eE][+-]?\d+)?"
|
| 34 |
CAM_PATTERN = re.compile(r"(?:camera parameters.*?:|roll.*?:)\s*("+NUM+r")\s*,\s*("+NUM+r")\s*,\s*("+NUM+r")", re.IGNORECASE|re.DOTALL)
|