Skip to content

Commit

Permalink
fix: run formatting rules on brackish folder
Browse files Browse the repository at this point in the history
  • Loading branch information
beuss-git committed Apr 16, 2023
1 parent d2db8af commit 5024c62
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion datasets/brackish/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ A lot of the code is based on the existing code from https://www.kaggle.com/data

1. Run through the steps in create_dataset.ipynb

2. Update brackish.yaml with your path
2. Update brackish.yaml with your path
5 changes: 3 additions & 2 deletions datasets/brackish/annotations_to_yolo.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Converts the ground truth annotations from AAU Bounding Box annotation format to YOLO format"""
import argparse
import os
import typing
import pathlib
import typing

import cv2
import pandas as pd

Expand Down Expand Up @@ -165,7 +166,7 @@ def import_categories(file_name: str) -> tuple[dict[int, str], dict[str, int]]:
if __name__ == "__main__":
ap = argparse.ArgumentParser(
description="Converts the ground truth annotations from AAU Bounding Box annotation "
"format to YOLO format "
"format to YOLO format "
)
ap.add_argument(
"-imageFolder",
Expand Down
1 change: 1 addition & 0 deletions datasets/brackish/create_dataset_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""
import argparse
import typing

import numpy as np


Expand Down
2 changes: 1 addition & 1 deletion datasets/brackish/create_dummy_yolo_annotations.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Creates empty YOLO detection files for frames with no detections in it"""
import argparse
import os
import typing
import pathlib
import typing


def create_image_list(parsed_args: dict[str, typing.Any]) -> None:
Expand Down
2 changes: 1 addition & 1 deletion datasets/brackish/create_image_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def create_image_list(parsed_args: dict[str, typing.Any]) -> None:
if __name__ == "__main__":
ap = argparse.ArgumentParser(
description="Takes a set root dir and creates a list of all images in this dir. Writing "
"with absolute path "
"with absolute path "
)
ap.add_argument(
"-inputFolder",
Expand Down
4 changes: 2 additions & 2 deletions datasets/brackish/frame_extractor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Takes a set of videos and extracts the frames into separate folders"""
import argparse
import os
import pathlib
import subprocess
import argparse
import typing
import pathlib

image_types = [".png", ".jpg", ".jpeg"]
video_types = [".avi", ".mp4"]
Expand Down

0 comments on commit 5024c62

Please sign in to comment.