luxonis / datadreamer

Creation of annotated datasets from scratch using Generative AI and Foundation Computer Vision models
Apache License 2.0
77 stars 5 forks source link

Fix OWLV2 annotator #40

Closed HonzaCuhel closed 8 months ago

HonzaCuhel commented 8 months ago

This PR includes a fix for this following issue:

ValueError: Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True' to have batched tensors with the same length. Perhaps your features (`input_ids` in this case) have excessive nesting (inputs type `list` where type `int` is expected).
github-actions[bot] commented 8 months ago

β˜‚οΈ Python Coverage

current status: βœ…

Overall Coverage

Lines Covered Coverage Threshold Status
883 407 46% 0% 🟒

New Files

No new covered files...

Modified Files

File Coverage Status
datadreamer/dataset_annotation/owlv2_annotator.py 72% 🟒
TOTAL 72% 🟒

updated for commit: abd636d by action🐍

github-actions[bot] commented 8 months ago

Test Results

  6 files  Β±0    6 suites  Β±0   44m 59s :stopwatch: - 3m 36s  76 tests Β±0   30 :white_check_mark: Β±0   46 :zzz: Β±0  0 :x: Β±0  456 runsβ€Š Β±0  180 :white_check_mark: Β±0  276 :zzz: Β±0  0 :x: Β±0 

Results for commit d9645853. ± Comparison against base commit bd405432.