Datasets:
ArXiv:
License:
File size: 471 Bytes
16aa0e5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import fire
from sahi.scripts.slice_coco import slice
MAX_WORKERS = 20
IGNORE_NEGATIVE_SAMPLES = False
def slice_xview(
image_dir: str, dataset_json_path: str, output_dir: str, slice_size: int, overlap_ratio: float
):
slice(
image_dir=image_dir,
dataset_json_path=dataset_json_path,
output_dir=output_dir,
slice_size=slice_size,
overlap_ratio=overlap_ratio,
)
if __name__ == "__main__":
fire.Fire(slice_xview)
|