Description
Hi,
I am trying to auto annotate a set of custom images. The initial mode is trained using 'Ultralytics Yolov5s' and saved_model is generated. When I try executing the following code
from auto_annotate import AutoAnnotate
ann_tool = AutoAnnotate(
saved_model_path = './saved_model',
label_map_path = './label_map.pbtxt',
images_path = './dataset_images',
xml_path = './dataset_labels',
detection_threshold = 0.65)
ann_tool.generate_annotations()
Following messages are displayed in the terminal
_Python inputs incompatible with input_signature:
inputs: (
tf.Tensor(
[[[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
...
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]]], shape=(1, 640, 640, 3), dtype=uint8))
input_signature: (
TensorSpec(shape=(1, 640, 640, 3), dtype=tf.float32, name=None))._
There are no annotations generated in the 'dataset_labels' folder. Can you please help with the same ?
Regards
Karthik