Skip to content

Commit

Permalink
format: black and ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
sokovninn committed Apr 8, 2024
1 parent 00962b2 commit 140ecf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion datadreamer/pipelines/generate_dataset_from_scratch.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,11 @@ def main():
# Convert annotations to LuxonisDataset format
if args.dataset_format == "luxonis-dataset":
convert_dataset.convert_dataset(
args.save_dir, args.save_dir, "luxonis-dataset", args.split_ratios, copy_files=False
args.save_dir,
args.save_dir,
"luxonis-dataset",
args.split_ratios,
copy_files=False,
)


Expand Down
4 changes: 0 additions & 4 deletions datadreamer/utils/dataset_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import json
import os

from luxonis_ml.data import LuxonisDataset
from PIL import Image


def save_annotations_to_json(
image_paths,
Expand Down Expand Up @@ -31,4 +28,3 @@ def save_annotations_to_json(
# Save to JSON file
with open(os.path.join(save_dir, file_name), "w") as f:
json.dump(annotations, f, indent=4)

0 comments on commit 140ecf3

Please sign in to comment.