File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 88def add_arguments ():
99 parser = argparse .ArgumentParser ()
1010 parser .add_argument ("--dataset" , default = "era5_twc" , help = "choose a data set to use" )
11- parser .add_argument ("--model" , default = "resnet2 " )
11+ parser .add_argument ("--model" , default = "cnn " )
1212 parser .add_argument ("--model_id" , default = "test" )
1313 parser .add_argument ("--upsampling_factor" , default = 4 , type = int )
1414 parser .add_argument ("--constraints" , default = "none" )
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ def save_dict(dictionary, args):
239239 w .writerow ([key , val ])
240240
241241def load_weights (model , model_id ):
242- PATH = '/home/harder/constrained-downscaling /models/' + model_id + '.pth'
242+ PATH = '. /models/' + model_id + '.pth'
243243 checkpoint = torch .load (PATH ) # ie, model_best.pth.tar
244244 model .load_state_dict (checkpoint ['state_dict' ])
245245 model .to ('cuda' )
You can’t perform that action at this time.
0 commit comments