save all
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
from configs.cvae_norm_1 import config
|
||||
from configs.iccvw.pyr_64_128_256_512_skirt_e2e_var import config
|
||||
import argparse
|
||||
|
||||
# parser = argparse.ArgumentParser(description='')
|
||||
@@ -12,14 +12,15 @@ import argparse
|
||||
if __name__ == '__main__':
|
||||
import wandb
|
||||
# wandb.login(key='******************************************')
|
||||
wandb.login(host='https://wandb.lnrweb.com', key='local-40a577c9eccab708f1aa81027f21a995596a5838')
|
||||
# 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/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 &')
|
||||
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 &')
|
||||
Reference in New Issue
Block a user