26 lines
1.1 KiB
Python
26 lines
1.1 KiB
Python
import os
|
|
import sys
|
|
from configs.iccvw.pyr_64_128_256_512_skirt_e2e_var 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
|
|
# wandb.login(key='******************************************')
|
|
# wandb.login(host='https://wandb.lnrweb.com', key='local-40a577c9eccab708f1aa81027f21a995596a5838')
|
|
# wandb.login(host='https://wandb2.lnrweb.com', key='local-2a78b434e9bc51e9f12625f8321a9e3ee34af16d', relogin=True, force=True)
|
|
name = config['name']
|
|
script = config['script']
|
|
config = [key for key in sys.modules.keys() if key.startswith('configs.')][-1]
|
|
current_file = '/'.join(__file__.split('/')[-2:])
|
|
|
|
print(f'nohup python {script} --name lhunor_{name} --config {config} > nohup/iccvw/{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 &') |