Spaces:
Build error
Build error
hugo flores garcia
commited on
Commit
·
0e0495b
1
Parent(s):
f4d4a42
optionally specify repoid for pulling ckpts
Browse files- vampnet/__init__.py +3 -4
vampnet/__init__.py
CHANGED
|
@@ -46,8 +46,7 @@ def download_default():
|
|
| 46 |
return paths[0], paths[1]
|
| 47 |
|
| 48 |
|
| 49 |
-
def download_finetuned(name):
|
| 50 |
-
repo_id = f"{DEFAULT_HF_MODEL_REPO}"
|
| 51 |
filenames = ["coarse.pth", "c2f.pth"]
|
| 52 |
paths = []
|
| 53 |
for filename in filenames:
|
|
@@ -60,8 +59,8 @@ def download_finetuned(name):
|
|
| 60 |
# load the models
|
| 61 |
return paths[0], paths[1]
|
| 62 |
|
| 63 |
-
def list_finetuned():
|
| 64 |
-
diritems = FS.listdir(f"{
|
| 65 |
# iterate through all the names
|
| 66 |
valid_diritems = []
|
| 67 |
for item in diritems:
|
|
|
|
| 46 |
return paths[0], paths[1]
|
| 47 |
|
| 48 |
|
| 49 |
+
def download_finetuned(name, repo_id=DEFAULT_HF_MODEL_REPO):
|
|
|
|
| 50 |
filenames = ["coarse.pth", "c2f.pth"]
|
| 51 |
paths = []
|
| 52 |
for filename in filenames:
|
|
|
|
| 59 |
# load the models
|
| 60 |
return paths[0], paths[1]
|
| 61 |
|
| 62 |
+
def list_finetuned(repo_id=DEFAULT_HF_MODEL_REPO):
|
| 63 |
+
diritems = FS.listdir(f"{repo_id}/loras")
|
| 64 |
# iterate through all the names
|
| 65 |
valid_diritems = []
|
| 66 |
for item in diritems:
|