save
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
from configs.iccv.config_abl_pyr_32_64_128 import config
|
||||
from configs.iccv.config_abl_pyr_32_64_128_curv_skirt import config
|
||||
|
||||
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
||||
# import tensorflow as tf
|
||||
@@ -68,7 +68,7 @@ if __name__ == '__main__':
|
||||
output_folder = '/home/workspace/local-data/results/iccv/' + checkpoint_name + '-'
|
||||
# check if there is a folder that starts with this name using glob
|
||||
folders = glob.glob(output_folder + '*')
|
||||
assert len(folders) == 1, 'There should be only one checkpoint that starts with this name'
|
||||
assert len(folders) == 1, f'There should be only one checkpoint that starts with this name, but found {len(folders)}'
|
||||
output_folder = folders[0]
|
||||
iteration = output_folder.split('-')[-1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user