init
Browse files
app.py
CHANGED
|
@@ -45,28 +45,29 @@ def parse_args() -> argparse.Namespace:
|
|
| 45 |
|
| 46 |
|
| 47 |
def load_checkpoint():
|
| 48 |
-
dir = '
|
|
|
|
| 49 |
checkpoint_path = huggingface_hub.hf_hub_download(MODEL_REPO,
|
| 50 |
-
|
| 51 |
-
cache_dir=dir,
|
| 52 |
force_filename='checkpoint')
|
| 53 |
print(checkpoint_path)
|
| 54 |
|
| 55 |
checkpoint_path = huggingface_hub.hf_hub_download(MODEL_REPO,
|
| 56 |
-
|
| 57 |
-
cache_dir=dir,
|
| 58 |
force_filename='UGATIT.model-1000000.index')
|
| 59 |
print(checkpoint_path)
|
| 60 |
|
| 61 |
checkpoint_path = huggingface_hub.hf_hub_download(MODEL_REPO,
|
| 62 |
-
|
| 63 |
-
cache_dir=dir,
|
| 64 |
force_filename='UGATIT.model-1000000.meta')
|
| 65 |
print(checkpoint_path)
|
| 66 |
|
| 67 |
checkpoint_path = huggingface_hub.hf_hub_download(MODEL_REPO,
|
| 68 |
-
|
| 69 |
-
cache_dir=dir,
|
| 70 |
force_filename='UGATIT.model-1000000.data-00000-of-00001')
|
| 71 |
print(checkpoint_path)
|
| 72 |
|
|
|
|
| 45 |
|
| 46 |
|
| 47 |
def load_checkpoint():
|
| 48 |
+
dir = 'checkpoint'
|
| 49 |
+
name = 'UGATIT_selfie2anime_lsgan_4resblock_6dis_1_1_10_10_1000_sn_smoothing'
|
| 50 |
checkpoint_path = huggingface_hub.hf_hub_download(MODEL_REPO,
|
| 51 |
+
name+'/checkpoint',
|
| 52 |
+
cache_dir=dir+'/'+name,
|
| 53 |
force_filename='checkpoint')
|
| 54 |
print(checkpoint_path)
|
| 55 |
|
| 56 |
checkpoint_path = huggingface_hub.hf_hub_download(MODEL_REPO,
|
| 57 |
+
name + '/UGATIT.model-1000000.index',
|
| 58 |
+
cache_dir=dir+'/'+name,
|
| 59 |
force_filename='UGATIT.model-1000000.index')
|
| 60 |
print(checkpoint_path)
|
| 61 |
|
| 62 |
checkpoint_path = huggingface_hub.hf_hub_download(MODEL_REPO,
|
| 63 |
+
name + '/UGATIT.model-1000000.meta',
|
| 64 |
+
cache_dir=dir+'/'+name,
|
| 65 |
force_filename='UGATIT.model-1000000.meta')
|
| 66 |
print(checkpoint_path)
|
| 67 |
|
| 68 |
checkpoint_path = huggingface_hub.hf_hub_download(MODEL_REPO,
|
| 69 |
+
name + '/UGATIT.model-1000000.data-00000-of-00001',
|
| 70 |
+
cache_dir=dir+'/'+name,
|
| 71 |
force_filename='UGATIT.model-1000000.data-00000-of-00001')
|
| 72 |
print(checkpoint_path)
|
| 73 |
|