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
#[clap(name = "targetgen", version = "0.1.0", author = "Declan Emery", about = "A tool for generating synthetic bird's eye view images for training machine learning models.")]
8
+
pubstructTargetgenCli{
9
+
#[clap(short, long, help = "The path to the backgrounds image directory.")]
10
+
pubbackgrounds:PathBuf,
11
+
12
+
#[clap(short, long, help = "The path to the objects image directory.")]
13
+
pubobjects:PathBuf,
14
+
15
+
#[clap(short, long, help = "The output folder.")]
16
+
puboutput:PathBuf,
17
+
18
+
#[clap(short, long, help = "The path to the annotations file.")]
19
+
pubannotations:PathBuf,
20
+
21
+
#[clap(short, long, help = "Enable logging.")]
22
+
pubenable_logging:Option<bool>,
23
+
24
+
#[clap(short, long, help = "The number of target images to generate.")]
25
+
pubnum_targets:Option<u32>,
26
+
27
+
#[clap(short, long, help = "The number of objects per image.")]
28
+
pubnum_objects:Option<u32>,
29
+
30
+
#[clap(short, long, help = "Whether or not to visualize the bounding boxes of the objects.")]
31
+
pubvisualize_bboxes:Option<bool>,
32
+
33
+
#[clap(short, long, help = "The color to use for the maskover effect, which basically fills the bounding box with a color.")]
34
+
pubmaskover_color:Option<String>,
35
+
36
+
#[clap(short, long, help = "Whether or not to allow duplicates of the same object within the same generated target image.")]
37
+
pubpermit_duplicates:Option<bool>,
38
+
39
+
#[clap(short, long, help = "Whether or not to allow objects to collide with each other, AKA overlap.")]
40
+
pubpermit_collisions:Option<bool>,
41
+
42
+
#[clap(short, long, help = "The size of the cache in MBs, which holds resized objects (initialization only).")]
43
+
pubcache_size:Option<u8>,
44
+
45
+
#[clap(short, long, help = "The number of worker threads to use for generating the target images.")]
46
+
pubworker_threads:Option<u8>,
47
+
48
+
#[clap(short, long, help = "Whether or not to compress the generated target images.")]
49
+
pubcompress:Option<bool>,
50
+
51
+
#[clap(short, long, help = "Should the objects be randomly rotated (currently only supports 90 degree rotations).")]
0 commit comments