Skip to content

Commit

Permalink
Support batch size adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Zhu committed May 22, 2024
1 parent 663ed0e commit 33a6b2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
parser.add_argument("-F", nargs="+", type=str, help="List of input mrc files", required=True)
parser.add_argument("-G", type=str, help="GPU ID to use for prediction", required=False, default="")
parser.add_argument("-J", type=str, help="Job name / output folder name", required=True)
parser.add_argument("-B", type=int, help="Batch size to use", required=False, default=4)

args = parser.parse_args()

Expand Down Expand Up @@ -56,7 +57,7 @@
f"-F={mrc_file}",
"--contour=0",
f"--gpu={args.G}",
f"--batch_size=4",
f"--batch_size={args.B}",
f"--prediction_only",
f"--resolution=8.0",
f"--output={curr_out_dir}",
Expand Down

0 comments on commit 33a6b2c

Please sign in to comment.