Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to save the output to a different folder from 'save_dir'. #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion neural_admixture/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ def parse_infer_args():
parser.add_argument('--data_path', required=True, type=str, help='Path containing the main data')
parser.add_argument('--name', required=True, type=str, help='Trained experiment/model name')
parser.add_argument('--batch_size', required=False, default=400, type=int, help='Batch size')
return parser.parse_args()
parser.add_argumnet('--out_dir', required=False, type=str, help='Path to save the output. If not given sets to --save_dir.')
AlbertDominguez marked this conversation as resolved.
Show resolved Hide resolved
args = parser.parse_args()
if args.out_dir is None:
args.out_dir = args.save_dir
return args

def initialize_wandb(run_name, trX, valX, args, out_path, silent=True):
if run_name is None:
Expand Down