init
Browse files
experiments/model_finetuning_topic.py
CHANGED
@@ -10,7 +10,7 @@ import logging
|
|
10 |
import math
|
11 |
import os
|
12 |
from os.path import join as pj
|
13 |
-
from shutil import copyfile
|
14 |
from glob import glob
|
15 |
|
16 |
import numpy as np
|
@@ -183,6 +183,7 @@ def main(
|
|
183 |
if not os.path.exists(f"{model_alias}/{os.path.basename(i)}"):
|
184 |
copyfile(i, f"{model_alias}/{os.path.basename(i)}")
|
185 |
repo.push_to_hub()
|
|
|
186 |
|
187 |
|
188 |
if __name__ == "__main__":
|
|
|
10 |
import math
|
11 |
import os
|
12 |
from os.path import join as pj
|
13 |
+
from shutil import copyfile, rmtree
|
14 |
from glob import glob
|
15 |
|
16 |
import numpy as np
|
|
|
183 |
if not os.path.exists(f"{model_alias}/{os.path.basename(i)}"):
|
184 |
copyfile(i, f"{model_alias}/{os.path.basename(i)}")
|
185 |
repo.push_to_hub()
|
186 |
+
rmtree(model_alias)
|
187 |
|
188 |
|
189 |
if __name__ == "__main__":
|