Spaces:
Runtime error
Runtime error
Commit
·
a606eae
1
Parent(s):
2fddeb1
Move weights to huggingface models
Browse files
.gitignore
CHANGED
|
@@ -8,4 +8,5 @@ flagged
|
|
| 8 |
Synthetic4Relight
|
| 9 |
**/__pycache__/
|
| 10 |
vis_*/
|
| 11 |
-
src/
|
|
|
|
|
|
| 8 |
Synthetic4Relight
|
| 9 |
**/__pycache__/
|
| 10 |
vis_*/
|
| 11 |
+
src/
|
| 12 |
+
weights/
|
app.py
CHANGED
|
@@ -10,6 +10,7 @@ from pytorch_lightning import seed_everything
|
|
| 10 |
import numpy as np
|
| 11 |
import os
|
| 12 |
import rembg
|
|
|
|
| 13 |
|
| 14 |
import sys
|
| 15 |
from loguru import logger
|
|
@@ -92,6 +93,11 @@ description = \
|
|
| 92 |
|
| 93 |
set_loggers("INFO")
|
| 94 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
logger.info(f"Loading Models...")
|
| 96 |
model_dict = {
|
| 97 |
"Albedo": InferenceModel(ckpt_path="weights/albedo",
|
|
|
|
| 10 |
import numpy as np
|
| 11 |
import os
|
| 12 |
import rembg
|
| 13 |
+
from huggingface_hub import snapshot_download
|
| 14 |
|
| 15 |
import sys
|
| 16 |
from loguru import logger
|
|
|
|
| 93 |
|
| 94 |
set_loggers("INFO")
|
| 95 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 96 |
+
|
| 97 |
+
# Download from model
|
| 98 |
+
logger.info(f"Downloading Models...")
|
| 99 |
+
snapshot_download(repo_id="LittleFrog/IntrinsicAnything", local_dir="weights")
|
| 100 |
+
|
| 101 |
logger.info(f"Loading Models...")
|
| 102 |
model_dict = {
|
| 103 |
"Albedo": InferenceModel(ckpt_path="weights/albedo",
|
weights/albedo/checkpoints/last.ckpt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a5fa7a1caa7e1e3818119cd9a2e8715ee7b86a77fa66447cc4b0767d8ab550f8
|
| 3 |
-
size 15458840153
|
|
|
|
|
|
|
|
|
|
|
|
weights/albedo/configs/albedo_project.yaml
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c8703f33e53258c5597934128f94ae01c4e2c7c0dce84e3c90028ff32fd10719
|
| 3 |
-
size 2526
|
|
|
|
|
|
|
|
|
|
|
|
weights/specular/checkpoints/last.ckpt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:361b7c3824f4603c4137657ff2fc8a127e0972954d425b440516522f034de7a0
|
| 3 |
-
size 15458847705
|
|
|
|
|
|
|
|
|
|
|
|
weights/specular/configs/specular_project.yaml
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7f1b8dc5694612815974312d64403afcdad9c089b350ab6701b5bb1e3149f8e8
|
| 3 |
-
size 2532
|
|
|
|
|
|
|
|
|
|
|
|