@@ -7,46 +7,60 @@ A small command line program to test and run AutoAnnotation Scripts.
7
7
Change in to the root of the project directory and run
8
8
9
9
``` shell
10
- $ python cvat/utils/auto_annotation/run_modely .py --py /path/to/python/interp.py \
11
- --xml /path/to/xml/file.xml \
12
- --bin /path/to/bin/file.bin \
13
- --json /path/to/json/mapping/mapping.json
10
+ $ python cvat/utils/auto_annotation/run_model .py --py /path/to/python/interp.py \
11
+ --xml /path/to/xml/file.xml \
12
+ --bin /path/to/bin/file.bin \
13
+ --json /path/to/json/mapping/mapping.json
14
14
```
15
15
16
16
Some programs need to run unrestricted or as an administer. Use the ` --unrestriced ` flag to simulate.
17
17
18
18
You can pass image files in to fully simulate your findings. Images are passed in as a list
19
19
20
20
``` shell
21
- $ python cvat/utils/auto_annotation/run_modely .py --py /path/to/python/interp.py \
22
- --xml /path/to/xml/file.xml \
23
- --bin /path/to/bin/file.bin \
24
- --json /path/to/json/mapping/mapping.json \
25
- --image-files /path/to/img.jpg /path2/to/img2.png /path/to/img3.jpg
21
+ $ python cvat/utils/auto_annotation/run_model .py --py /path/to/python/interp.py \
22
+ --xml /path/to/xml/file.xml \
23
+ --bin /path/to/bin/file.bin \
24
+ --json /path/to/json/mapping/mapping.json \
25
+ --image-files /path/to/img.jpg /path2/to/img2.png /path/to/img3.jpg
26
26
```
27
27
28
28
Additionally, it's sometimes useful to visualize your images.
29
29
Use the ` --show-images ` flag to have each image with the annotations pop up.
30
30
31
31
``` shell
32
- $ python cvat/utils/auto_annotation/run_modely .py --py /path/to/python/interp.py \
33
- --xml /path/to/xml/file.xml \
34
- --bin /path/to/bin/file.bin \
35
- --json /path/to/json/mapping/mapping.json \
36
- --image-files /path/to/img.jpg /path2/to/img2.png /path/to/img3.jpg \
37
- --show-images
32
+ $ python cvat/utils/auto_annotation/run_model .py --py /path/to/python/interp.py \
33
+ --xml /path/to/xml/file.xml \
34
+ --bin /path/to/bin/file.bin \
35
+ --json /path/to/json/mapping/mapping.json \
36
+ --image-files /path/to/img.jpg /path2/to/img2.png /path/to/img3.jpg \
37
+ --show-images
38
38
```
39
39
40
40
There's a command that let's you scan quickly by setting the length of time (in milliseconds) to display each image.
41
41
Use the ` --show-image-delay ` flag and set the appropriate time.
42
42
43
43
``` shell
44
44
# Display each image in a window for 2 seconds
45
- $ python cvat/utils/auto_annotation/run_modely.py --py /path/to/python/interp.py \
46
- --xml /path/to/xml/file.xml \
47
- --bin /path/to/bin/file.bin \
48
- --json /path/to/json/mapping/mapping.json \
49
- --image-files /path/to/img.jpg /path2/to/img2.png /path/to/img3.jpg \
50
- --show-images
51
- --show-image-delay 2000
45
+ $ python cvat/utils/auto_annotation/run_model.py --py /path/to/python/interp.py \
46
+ --xml /path/to/xml/file.xml \
47
+ --bin /path/to/bin/file.bin \
48
+ --json /path/to/json/mapping/mapping.json \
49
+ --image-files /path/to/img.jpg /path2/to/img2.png /path/to/img3.jpg \
50
+ --show-images \
51
+ --show-image-delay 2000
52
+ ```
53
+
54
+ Visualization isn't always enough.
55
+ The CVAT has a serialization step that can throw errors on model upload even after successful visualization.
56
+ You must install the necessary packages installed, but then you can add the ` --serialize ` command to ensure that your
57
+ results will serialize correctly.
58
+
59
+ ``` shell
60
+ $ python cvat/utils/auto_annotation/run_model.py --py /path/to/python/interp.py \
61
+ --xml /path/to/xml/file.xml \
62
+ --bin /path/to/bin/file.bin \
63
+ --json /path/to/json/mapping/mapping.json \
64
+ --image-files /path/to/img.jpg /path2/to/img2.png /path/to/img3.jpg \
65
+ --serialize
52
66
```
0 commit comments