adding debug option to run. not perfect yet
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import os
|
||||
import sys
|
||||
from configs.ae_body_1 import config
|
||||
from configs.ae_curv_1 import config
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser(description='')
|
||||
parser.add_argument('--debug', action='store_true')
|
||||
args = vars(parser.parse_args())
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# import wandb
|
||||
@@ -9,5 +16,8 @@ if __name__ == '__main__':
|
||||
script = config['script']
|
||||
config = [key for key in sys.modules.keys() if key.startswith('configs.')][-1]
|
||||
current_file = '/'.join(__file__.split('/')[-2:])
|
||||
# os.system(f'nohup python scripts/ae_static_train.py --name lhunor_{name} > nohup/torch/{name}.out 2>&1 &')
|
||||
os.system(f'nohup python {script} --name lhunor_{name} --config {config} > nohup/torch/{name}.out 2>&1 &')
|
||||
|
||||
if args['debug']:
|
||||
os.system(f'python {script} --name lhunor_{name} --config {config}')
|
||||
else:
|
||||
os.system(f'nohup python {script} --name lhunor_{name} --config {config} > nohup/torch/{name}.out 2>&1 &')
|
||||
Reference in New Issue
Block a user