Anirudh Balaraman commited on
Commit
bc6f900
·
1 Parent(s): 7efd22b

dry_run fix

Browse files
Files changed (2) hide show
  1. run_cspca.py +0 -13
  2. run_pirads.py +0 -13
run_cspca.py CHANGED
@@ -149,9 +149,6 @@ def parse_args():
149
  type=int,
150
  help="run validation after this number of epochs, default 1 to run every epoch",
151
  )
152
- parser.add_argument(
153
- "--dry_run", action="store_true", help="Run the script in dry-run mode (default: False)"
154
- )
155
  parser.add_argument("--checkpoint_cspca", default=None, help="load existing checkpoint")
156
  parser.add_argument(
157
  "--num_seeds", default=20, type=int, help="number of seeds to be run to build CI"
@@ -200,14 +197,4 @@ if __name__ == "__main__":
200
  if args.device == torch.device("cuda"):
201
  torch.backends.cudnn.benchmark = True
202
 
203
- if args.dry_run:
204
- logging.info("Dry run mode enabled.")
205
- args.epochs = 1
206
- args.batch_size = 2
207
- args.workers = 0
208
- args.num_seeds = 1
209
- args.wandb = False
210
- args.tile_size = 10
211
- args.tile_count = 5
212
-
213
  main_worker(args)
 
149
  type=int,
150
  help="run validation after this number of epochs, default 1 to run every epoch",
151
  )
 
 
 
152
  parser.add_argument("--checkpoint_cspca", default=None, help="load existing checkpoint")
153
  parser.add_argument(
154
  "--num_seeds", default=20, type=int, help="number of seeds to be run to build CI"
 
197
  if args.device == torch.device("cuda"):
198
  torch.backends.cudnn.benchmark = True
199
 
 
 
 
 
 
 
 
 
 
 
200
  main_worker(args)
run_pirads.py CHANGED
@@ -247,9 +247,6 @@ def parse_args():
247
  type=int,
248
  help="run validation after this number of epochs, default 1 to run every epoch",
249
  )
250
- parser.add_argument(
251
- "--dry_run", action="store_true", help="Run the script in dry-run mode (default: False)"
252
- )
253
  args = parser.parse_args()
254
  if args.config:
255
  with open(args.config) as config_file:
@@ -289,16 +286,6 @@ if __name__ == "__main__":
289
  logging.error("Model checkpoint path not provided. Quitting.")
290
  sys.exit(1)
291
 
292
- if args.dry_run:
293
- logging.info("Dry run mode enabled.")
294
- args.epochs = 1
295
- args.batch_size = 2
296
- args.workers = 0
297
- args.num_seeds = 1
298
- args.wandb = False
299
- args.tile_size = 10
300
- args.tile_count = 5
301
-
302
  mode_wandb = "online" if args.wandb and args.mode != "test" else "disabled"
303
 
304
  config_wandb = {
 
247
  type=int,
248
  help="run validation after this number of epochs, default 1 to run every epoch",
249
  )
 
 
 
250
  args = parser.parse_args()
251
  if args.config:
252
  with open(args.config) as config_file:
 
286
  logging.error("Model checkpoint path not provided. Quitting.")
287
  sys.exit(1)
288
 
 
 
 
 
 
 
 
 
 
 
289
  mode_wandb = "online" if args.wandb and args.mode != "test" else "disabled"
290
 
291
  config_wandb = {