You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="The pattern for selecting files for training. For example '*.mrc' to select mrc files.")
269
+
parser.add_argument("--key", help="The internal file path for the training data. Will be derived from the file extension by default.") # noqa
270
+
parser.add_argument(
271
+
"--source_model",
272
+
default="vesicles_3d",
273
+
help="The source model used for weight initialization of teacher and student model. "
274
+
"By default the model 'vesicles_3d' for vesicle segmentation in volumetric data is used."
275
+
)
276
+
parser.add_argument(
277
+
"--resize_training_data", action="store_true",
278
+
help="Whether to resize the training data to fit the voxel size of the source model's trainign data."
279
+
)
280
+
parser.add_argument("--n_iterations", type=int, default=int(1e4), help="The number of iterations for training.")
281
+
parser.add_argument(
282
+
"--patch_shape", nargs=3, type=int,
283
+
help="The patch shape for training. By default the patch shape the source model was trained with is used."
284
+
)
285
+
286
+
# More optional argument:
287
+
parser.add_argument("--batch_size", type=int, default=1, help="The batch size for training.")
288
+
parser.add_argument("--n_samples_train", type=int, help="The number of samples per epoch for training. If not given will be derived from the data size.") # noqa
289
+
parser.add_argument("--n_samples_val", type=int, help="The number of samples per epoch for validation. If not given will be derived from the data size.") # noqa
290
+
parser.add_argument("--val_fraction", type=float, default=0.15, help="The fraction of the data to use for validation. This has no effect if 'val_folder' and 'val_label_folder' were passed.") # noqa
291
+
parser.add_argument("--check", action="store_true", help="Visualize samples from the data loaders to ensure correct data instead of running training.") # noqa
0 commit comments