Spaces:
Sleeping
Sleeping
upgrade
Browse files
compo-singleone-v2-dev-acc.py
CHANGED
@@ -92,6 +92,9 @@ else:
|
|
92 |
|
93 |
#######################################################
|
94 |
|
|
|
|
|
|
|
95 |
def get_padded_checkpoint_no_from_filename(checkpoint_filename):
|
96 |
match = re.search(r'ckpt-(\d+)', checkpoint_filename)
|
97 |
if match:
|
@@ -167,7 +170,7 @@ def setup(opts):
|
|
167 |
# checkpoint3_dir = os.path.join(path, model3_name, 'checkpoint_long')
|
168 |
print("-----------------------------------------")
|
169 |
print("modelname is : " + model_name)
|
170 |
-
found_model=model_name
|
171 |
|
172 |
#print("model2name is : " + model2_name)
|
173 |
# print("model3name is : " + model3_name)
|
|
|
92 |
|
93 |
#######################################################
|
94 |
|
95 |
+
def get_model_simplified_name_from_dirname(dirname):
|
96 |
+
return dirname.replace("model_","").replace("_864x","").replace("_864","").replace("_new","")
|
97 |
+
|
98 |
def get_padded_checkpoint_no_from_filename(checkpoint_filename):
|
99 |
match = re.search(r'ckpt-(\d+)', checkpoint_filename)
|
100 |
if match:
|
|
|
170 |
# checkpoint3_dir = os.path.join(path, model3_name, 'checkpoint_long')
|
171 |
print("-----------------------------------------")
|
172 |
print("modelname is : " + model_name)
|
173 |
+
found_model=get_model_simplified_name_from_dirname(model_name)
|
174 |
|
175 |
#print("model2name is : " + model2_name)
|
176 |
# print("model3name is : " + model3_name)
|