Skip to content

Commit

Permalink
Update docs & luxonis dataset creation
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaCuhel committed Oct 25, 2024
1 parent 335cc05 commit f887910
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ save_dir/
{
"image_path": {
"boxes": [[x_min, y_min, x_max, y_max], ...],
"masks": [[x0, y0], [x1, y1], ...]
"masks": [[[x0, y0],[x1, y1],...], [[x0, y0],[x1, y1],...], ....]
"labels": [label_index, ...]
},
...
Expand Down
5 changes: 5 additions & 0 deletions datadreamer/utils/luxonis_dataset_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def __init__(
self.dataset_plugin = dataset_plugin
self.dataset_name = dataset_name

if self.is_instance_segmentation:
logger.warning(
"Instance segmentation will be treated as semantic segmentation until the support for instance segmentation is added to Luxonis-ml."
)

def convert(
self,
dataset_dir: str,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ accelerate>=0.25.0
scipy>=1.10.0
bitsandbytes>=0.42.0
nltk>=3.8.1
luxonis-ml[all]>=0.4.0
luxonis-ml[all]>=0.4.1
python-box>=7.1.1
gcsfs>=2023.1.0

0 comments on commit f887910

Please sign in to comment.