Skip to content

Annotations are not generated #73

Open
@karthyyy

Description

@karthyyy

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

Metadata

Metadata

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions