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
f=click.option('--backbone-detector', type=click.Choice(DYNAMICDET_AVAILABLE_MODELS, case_sensitive=False), help='The choice of backbone to be used.', default="yolov7", show_default=True)(f)
53
+
f=click.option('--backbone-detector', type=click.Choice(DYNAMICDET_AVAILABLE_MODELS, case_sensitive=False), help='The choice of backbone to be used.', default="yolov7-w6", show_default=True)(f)
@click.option("--labels", type=str, required=True, help="Path to the labels directory")
79
79
@click.option("--images", type=str, required=True, help="Path to the images directory")
80
80
@click.option("--output", type=str, required=True, help="Path to the output STAR file")
81
-
@click.option("--conf", type=float, default=0.0, help="Minimum confidence threshold from predictions")
81
+
@click.option("--conf", type=float, default=0.1, help="Minimum confidence threshold from predictions")
82
82
defstar(labels, images, output,conf):
83
83
click.echo("Generating STAR file...")
84
84
importpartinet.process_utils.star_file
@@ -106,7 +106,7 @@ def train():
106
106
defstep1(**params):
107
107
108
108
# dump params to terminal
109
-
click.echo("Performing DynamicDet training step 1 with config:\n ", nl=False)
109
+
click.echo("Performing PartiNet training step 1 with config:\n ", nl=False)
110
110
params["img_size"] =list(params["img_size"])
111
111
print_params(params)
112
112
@@ -122,7 +122,7 @@ def step1(**params):
122
122
@train_common_args
123
123
defstep2(**params):
124
124
125
-
click.echo("Performing DynamicDet training step 2 with config:\n ", nl=False)
125
+
click.echo("Performing PartiNet training step 2 with config:\n ", nl=False)
126
126
params["img_size"] =list(params["img_size"])
127
127
print_params(params)
128
128
@@ -135,13 +135,13 @@ def step2(**params):
135
135
partinet.DynamicDet.train_step2.main(opt)
136
136
137
137
@main.command()
138
-
@click.option('--backbone-detector', type=click.Choice(DYNAMICDET_AVAILABLE_MODELS, case_sensitive=False), help='The choice of backbone to be used.', default="yolov7", show_default=True)
138
+
@click.option('--backbone-detector', type=click.Choice(DYNAMICDET_AVAILABLE_MODELS, case_sensitive=False), help='The choice of backbone to be used.', default="yolov7-w6", show_default=True)
@click.option('--save-txt', is_flag=True, help='save results to *.txt')
@@ -162,7 +162,7 @@ def detect(**params):
162
162
# "all classes"
163
163
params["classes"] =params["classes"] orNone
164
164
165
-
click.echo("Performing DynamicDet detection with config:\n ", nl=False)
165
+
click.echo("Performing PartiNet particle detection with config:\n ", nl=False)
166
166
print_params(params)
167
167
168
168
importargparse
@@ -173,13 +173,13 @@ def detect(**params):
173
173
partinet.DynamicDet.detect.detect(opt)
174
174
175
175
@main.command()
176
-
@click.option('--backbone-detector', type=click.Choice(["yolov7", "yolov7-w6", "yolov7x"], case_sensitive=False), help='The choice of backbone to be used.', default="yolov7", show_default=True)
176
+
@click.option('--backbone-detector', type=click.Choice(["yolov7", "yolov7-w6", "yolov7x"], case_sensitive=False), help='The choice of backbone to be used.', default="yolov7-w6", show_default=True)
0 commit comments