Datasets:
Add files using upload-large-folder tool
Browse files- LICENSE +5 -0
- README.md +129 -0
- bigsplit/data.yaml +17 -0
- bigsplit/images/train/000000016931.jpg +3 -0
- bigsplit/images/train/000000021566_copy1.jpg +3 -0
- bigsplit/images/train/000000032491_copy2.jpg +3 -0
- bigsplit/images/train/000000121869_copy1.jpg +3 -0
- bigsplit/images/train/000000137931_copy1.jpg +3 -0
- bigsplit/images/train/000000204074.jpg +3 -0
- bigsplit/images/train/000000247306.jpg +3 -0
- bigsplit/images/train/000000285418_copy3.jpg +3 -0
- bigsplit/images/train/000000294593_copy3.jpg +3 -0
- bigsplit/images/train/000000309993.jpg +3 -0
- bigsplit/images/train/000000310553_copy1.jpg +3 -0
- bigsplit/images/train/000000310757_copy1.jpg +3 -0
- bigsplit/images/train/000000338025_copy2.jpg +3 -0
- bigsplit/images/train/000000347097.jpg +3 -0
- bigsplit/images/train/000000370522.jpg +3 -0
- bigsplit/images/train/000000391029_copy1.jpg +3 -0
- bigsplit/images/train/000000419883_copy3.jpg +3 -0
- bigsplit/images/train/000000431691.jpg +3 -0
- bigsplit/images/train/000000517610_copy3.jpg +3 -0
- bigsplit/images/train/000000523292_copy2.jpg +3 -0
- bigsplit/images/train/001e04962ef5e984.jpg +3 -0
- bigsplit/images/train/002477b0109ca817.jpg +3 -0
- bigsplit/images/train/002d1e14097c26d2.jpg +3 -0
- bigsplit/images/train/0030efce5a1c3658.jpg +3 -0
- bigsplit/images/train/0092a20b63799744.jpg +3 -0
- bigsplit/images/train/00a752531903623d_jpg.rf.f93e12e40b810d30d9e79ce72a96ec3c_f0c99aa3_copy3.jpg +3 -0
- bigsplit/images/train/00d1b7970d960626.jpg +3 -0
- bigsplit/images/train/00e8e5e79255536f.jpg +3 -0
- bigsplit/images/train/0124e8b7ddb5b930.jpg +3 -0
- bigsplit/images/train/0289c1aae3c0bc87_copy1.jpg +3 -0
- bigsplit/images/train/04610ef78b13796a_copy2.jpg +3 -0
- bigsplit/images/train/06bb8167aecffbaf.jpg +3 -0
- bigsplit/images/train/095877f99497f5df_copy1.jpg +3 -0
- bigsplit/images/train/09ee9fc97187e755_copy1.jpg +3 -0
- bigsplit/images/train/0ead7a5ab52b2251.jpg +3 -0
- bigsplit/images/train/10e3b275832ea5d6.jpg +3 -0
- bigsplit/images/train/192-168-5-14_01_20230304114539491_jpg.rf.83f27b0ef7e7457eacb90c9498954887_2be3025c.jpg +3 -0
- bigsplit/images/train/192-168-5-14_01_20230314100737948_jpg.rf.3478c6202033b47d3f42635e7e27c25f_ed49ac83.jpg +3 -0
- bigsplit/images/train/1f86da51e9ca9c31.jpg +3 -0
- bigsplit/images/train/20211209_004354_jpg.rf.1ba974b135ed6e1ef5df6bfa2609fbd3_d09484d8.jpg +3 -0
- bigsplit/images/train/8216958489c7ec48_copy1.jpg +3 -0
- bigsplit/images/train/bb57cbb6-68c5-4b75-9dc5-4cd060c9119f-amazon-package-deliveries-shutterstock_jpg.rf.14c10cb1877b03e4f5b2ada4986b51d6_7b83a548.jpg +3 -0
- bigsplit/images/train/e27e264e4c59c278_copy1.jpg +3 -0
- bigsplit/images/train/packagingboxes84_jpeg.rf.c3262cb3441052f1d495029337975efc_0881ad45.jpg +3 -0
- push_to_hf.sh +71 -0
- smartpotato/run/args.yaml +108 -0
- smartpotato/run/results.csv +31 -0
LICENSE
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This dataset aggregates images and annotations governed by multiple upstream licenses
|
| 2 |
+
(Open Images, COCO, WIDER FACE, Roboflow Universe projects) and Meta SAM 3 terms.
|
| 3 |
+
|
| 4 |
+
Full terms, citations, and usage conditions are described in README.md.
|
| 5 |
+
This file exists so the Hugging Face Hub `license_link` field can point to a repository file.
|
README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: multiple-upstream-cc-by-nc-nd-sam
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
pretty_name: "Person, Face, Package & Home Security Detection (YOLO)"
|
| 6 |
+
tags:
|
| 7 |
+
- image
|
| 8 |
+
- computer-vision
|
| 9 |
+
- object-detection
|
| 10 |
+
- home-security
|
| 11 |
+
- yolo
|
| 12 |
+
- ultralytics
|
| 13 |
+
- bbox
|
| 14 |
+
- pytorch
|
| 15 |
+
- coco
|
| 16 |
+
- open-images
|
| 17 |
+
- wider-face
|
| 18 |
+
- roboflow-universe
|
| 19 |
+
- sam3
|
| 20 |
+
- segment-anything
|
| 21 |
+
- smartpotato
|
| 22 |
+
- parcel-delivery
|
| 23 |
+
- person-detection
|
| 24 |
+
- face-detection
|
| 25 |
+
- vehicle-detection
|
| 26 |
+
- pet-detection
|
| 27 |
+
- autonomous-systems
|
| 28 |
+
annotations_creators:
|
| 29 |
+
- machine-generated
|
| 30 |
+
language_creators:
|
| 31 |
+
- found
|
| 32 |
+
task_categories:
|
| 33 |
+
- object-detection
|
| 34 |
+
task_ids:
|
| 35 |
+
- face-detection
|
| 36 |
+
- vehicle-detection
|
| 37 |
+
size_categories:
|
| 38 |
+
- "100K<n<1M"
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
# Person, Face, Package & Home Security Detection
|
| 42 |
+
|
| 43 |
+
A multi-source object detection dataset in **YOLO** format, assembled for training models that recognize **people, faces, parcels**, and categories useful for **home security** (e.g. vehicles, bikes, pets, birds), in the wild. Images come from several public benchmarks and community datasets; **bounding boxes were not taken from the original releases** but were **auto-generated** using a custom pipeline built on Meta’s **Segment Anything Model 3 (SAM 3)**.
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
## What’s inside
|
| 48 |
+
|
| 49 |
+
| | |
|
| 50 |
+
|---|---|
|
| 51 |
+
| **Task** | Object detection (axis-aligned boxes) |
|
| 52 |
+
| **Format** | YOLO (`images/` + `labels/`, normalized `class cx cy w h`) |
|
| 53 |
+
| **Splits** | `train` / `val` / `test` (see `data.yaml`) |
|
| 54 |
+
| **Classes (9)** | `person`, `face`, `vehicle`, `bike`, `bicycle`, `parcel`, `dog`, `cat`, `bird` |
|
| 55 |
+
|
| 56 |
+
Configuration for Ultralytics-style layouts lives in `bigsplit/data.yaml` (paths, class index order, and split folders).
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## Downstream project
|
| 61 |
+
|
| 62 |
+
This dataset was used to train detectors for **[SmartPotato](https://github.com/OliseNS/SmartPotato)**—see that repository for the application code, configuration, and how these weights are integrated.
|
| 63 |
+
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
## Training run & checkpoints (bundled)
|
| 67 |
+
|
| 68 |
+
An **Ultralytics YOLO** training run and exported weights are included under:
|
| 69 |
+
|
| 70 |
+
| Path | Contents |
|
| 71 |
+
|------|----------|
|
| 72 |
+
| `smartpotato/run/weights/best.pt` | Best checkpoint from the run (by validation metric) |
|
| 73 |
+
| `smartpotato/run/weights/last.pt` | Final-epoch checkpoint |
|
| 74 |
+
| `smartpotato/run/args.yaml` | Training hyperparameters and run configuration |
|
| 75 |
+
| `smartpotato/run/results.csv` | Per-epoch metrics |
|
| 76 |
+
| `smartpotato/run/*.png`, `*.jpg` | Curves (PR, F1, etc.), confusion matrices, and sample train/val batches |
|
| 77 |
+
|
| 78 |
+
These artifacts are provided for **reproducibility and convenience**; license obligations from the **dataset** (and from any base weights you used, e.g. COCO-pretrained YOLO) still apply when you redistribute or deploy `*.pt` files.
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## Data sources
|
| 83 |
+
|
| 84 |
+
| Source | Role in this dataset |
|
| 85 |
+
|--------|----------------------|
|
| 86 |
+
| [**Open Images**](https://storage.googleapis.com/openimages/web/index.html) | Subset of images used as input to the labeling pipeline |
|
| 87 |
+
| [**COCO**](https://cocodataset.org/) (Common Objects in Context) | Subset of images used as input to the labeling pipeline |
|
| 88 |
+
| [**WIDER FACE**](https://shuoyang1213.me/WIDERFACE/) | Subset of images used as input to the labeling pipeline |
|
| 89 |
+
| [**Roboflow Universe**](https://universe.roboflow.com/) | Multiple public projects/packages; each upstream project carries its own license on Roboflow |
|
| 90 |
+
|
| 91 |
+
**Annotation method:** Labels were produced automatically with a **custom SAM 3** (Meta) script—i.e. model-assisted segmentation / prompting was converted into YOLO box targets. These annotations are **not** the official Open Images, COCO, or WIDER FACE release labels.
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
## Licensing and attribution (read before use)
|
| 96 |
+
|
| 97 |
+
This repository is a **composite work**. **You must comply with every license that applies to the images and to any tools used to create the labels.** The maintainer of this dataset is not providing legal advice; when in doubt, review the original terms or seek counsel.
|
| 98 |
+
|
| 99 |
+
### 1. Upstream image and dataset licenses (by origin)
|
| 100 |
+
|
| 101 |
+
- **Open Images** — The Open Images project publishes data under terms described on the official site; **individual images retain their own Creative Commons (or other) licenses** as recorded in the dataset metadata. See the [Open Images](https://storage.googleapis.com/openimages/web/index.html) documentation and [openimages/dataset](https://github.com/openimages/dataset) materials for the exact conditions that apply to annotations and redistribution.
|
| 102 |
+
- **COCO** — Use is governed by the [COCO Terms of Use](https://cocodataset.org/#termsofuse). **Images are made available under a Creative Commons Attribution 4.0 International (CC BY 4.0) license** (see the official site for full wording and attribution requirements).
|
| 103 |
+
- **WIDER FACE** — According to the [official WIDER FACE page](https://shuoyang1213.me/WIDERFACE/), the dataset is released under **Creative Commons Attribution–NonCommercial–NoDerivatives 4.0 (CC BY-NC-ND 4.0)**. That means **non-commercial** use and **no redistribution of derivative works** under typical CC BY-NC-ND terms—**verify** against the license text linked from the official site before any reuse or redistribution of portions derived from WIDER FACE.
|
| 104 |
+
- **Roboflow Universe** — Each project lists its own license (often **CC BY 4.0**, but not always). Open the corresponding Universe project page(s) you relied on and follow the stated license and attribution.
|
| 105 |
+
|
| 106 |
+
### 2. Auto-annotations and Meta SAM 3
|
| 107 |
+
|
| 108 |
+
Bounding boxes (and any related masks or prompts used in your pipeline) were generated using **SAM 3** from Meta. The SAM 3 codebase and weights are distributed under Meta’s **SAM License** (see [facebookresearch/sam3](https://github.com/facebookresearch/sam3/blob/main/LICENSE)). In short: use and redistribution of SAM Materials are subject to that agreement (including attribution for research outputs, export-control and acceptable-use rules, and redistribution terms). **Keep a copy of the SAM License** with any derivative distribution that is tied to SAM-generated outputs, as required there.
|
| 109 |
+
|
| 110 |
+
### 3. This dataset’s labels
|
| 111 |
+
|
| 112 |
+
The **YOLO labels in this repo are a new, automated annotation layer** on top of third-party images. They inherit the **restrictions** of the underlying images **and** the terms governing the tooling (SAM 3) used to create them. **Do not assume** a single SPDX license covers the whole corpus. See the `LICENSE` file for a short pointer; details are in the bullets above.
|
| 113 |
+
|
| 114 |
+
---
|
| 115 |
+
|
| 116 |
+
## Citations
|
| 117 |
+
|
| 118 |
+
If you use this dataset in research, cite the original sources you actually used (Open Images, COCO, WIDER FACE, Roboflow projects) and acknowledge **SAM 3** if your work builds on these auto-annotations. Example references:
|
| 119 |
+
|
| 120 |
+
- **COCO:** T.-Y. Lin et al., *Microsoft COCO: Common Objects in Context*, ECCV 2014.
|
| 121 |
+
- **Open Images:** A. Kuznetsova et al., *The Open Images Dataset V4*, IJCV 2020.
|
| 122 |
+
- **WIDER FACE:** S. Yang et al., *WIDER FACE: A Face Detection Benchmark*, CVPR 2016.
|
| 123 |
+
- **SAM 3:** See the citation guidance in the [SAM 3 repository](https://github.com/facebookresearch/sam3).
|
| 124 |
+
|
| 125 |
+
---
|
| 126 |
+
|
| 127 |
+
## Disclaimer
|
| 128 |
+
|
| 129 |
+
THE DATASET IS PROVIDED **“AS IS”**, WITHOUT WARRANTY OF ANY KIND. Auto-labels may contain errors, omissions, or biases inherited from base models and source domains. You are responsible for compliance with all applicable licenses, privacy rules, and acceptable-use policies when downloading, training, or deploying models trained on this data.
|
bigsplit/data.yaml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
train: images/train # Training images
|
| 2 |
+
val: images/val # Validation images
|
| 3 |
+
test: images/test # Test images
|
| 4 |
+
# Number of classes
|
| 5 |
+
nc: 9
|
| 6 |
+
|
| 7 |
+
# Class names (exact order: 0-8)
|
| 8 |
+
names:
|
| 9 |
+
- person
|
| 10 |
+
- face
|
| 11 |
+
- vehicle
|
| 12 |
+
- bike
|
| 13 |
+
- bicycle
|
| 14 |
+
- parcel
|
| 15 |
+
- dog
|
| 16 |
+
- cat
|
| 17 |
+
- bird
|
bigsplit/images/train/000000016931.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000021566_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000032491_copy2.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000121869_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000137931_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000204074.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000247306.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000285418_copy3.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000294593_copy3.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000309993.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000310553_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000310757_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000338025_copy2.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000347097.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000370522.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000391029_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000419883_copy3.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000431691.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000517610_copy3.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/000000523292_copy2.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/001e04962ef5e984.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/002477b0109ca817.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/002d1e14097c26d2.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/0030efce5a1c3658.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/0092a20b63799744.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/00a752531903623d_jpg.rf.f93e12e40b810d30d9e79ce72a96ec3c_f0c99aa3_copy3.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/00d1b7970d960626.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/00e8e5e79255536f.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/0124e8b7ddb5b930.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/0289c1aae3c0bc87_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/04610ef78b13796a_copy2.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/06bb8167aecffbaf.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/095877f99497f5df_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/09ee9fc97187e755_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/0ead7a5ab52b2251.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/10e3b275832ea5d6.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/192-168-5-14_01_20230304114539491_jpg.rf.83f27b0ef7e7457eacb90c9498954887_2be3025c.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/192-168-5-14_01_20230314100737948_jpg.rf.3478c6202033b47d3f42635e7e27c25f_ed49ac83.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/1f86da51e9ca9c31.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/20211209_004354_jpg.rf.1ba974b135ed6e1ef5df6bfa2609fbd3_d09484d8.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/8216958489c7ec48_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/bb57cbb6-68c5-4b75-9dc5-4cd060c9119f-amazon-package-deliveries-shutterstock_jpg.rf.14c10cb1877b03e4f5b2ada4986b51d6_7b83a548.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/e27e264e4c59c278_copy1.jpg
ADDED
|
Git LFS Details
|
bigsplit/images/train/packagingboxes84_jpeg.rf.c3262cb3441052f1d495029337975efc_0881ad45.jpg
ADDED
|
Git LFS Details
|
push_to_hf.sh
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Upload this dataset directory to the Hugging Face Hub (dataset repo).
|
| 3 |
+
#
|
| 4 |
+
# Prerequisites:
|
| 5 |
+
# pip install -U huggingface_hub
|
| 6 |
+
# hf auth login
|
| 7 |
+
#
|
| 8 |
+
# Environment (optional):
|
| 9 |
+
# HF_USERNAME Hub username (default: OliseNS)
|
| 10 |
+
# HF_DATASET_NAME Repo name only, no org prefix (default: person-face-package-home-security-detection)
|
| 11 |
+
# HF_USE_LARGE If 0, uses "hf upload" instead of "hf upload-large-folder" (default: 1)
|
| 12 |
+
#
|
| 13 |
+
# Usage:
|
| 14 |
+
# ./push_to_hf.sh
|
| 15 |
+
# HF_USERNAME=myuser ./push_to_hf.sh
|
| 16 |
+
# ./push_to_hf.sh --sync # use hf upload (faster for small changes)
|
| 17 |
+
# ./push_to_hf.sh -- --commit-message "Refresh labels"
|
| 18 |
+
|
| 19 |
+
set -euo pipefail
|
| 20 |
+
|
| 21 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 22 |
+
ROOT="$SCRIPT_DIR"
|
| 23 |
+
|
| 24 |
+
HF_USERNAME="${HF_USERNAME:-OliseNS}"
|
| 25 |
+
HF_DATASET_NAME="${HF_DATASET_NAME:-person-face-package-home-security-detection}"
|
| 26 |
+
REPO_ID="${HF_USERNAME}/${HF_DATASET_NAME}"
|
| 27 |
+
HF_USE_LARGE="${HF_USE_LARGE:-1}"
|
| 28 |
+
|
| 29 |
+
USE_LARGE=1
|
| 30 |
+
EXTRA=()
|
| 31 |
+
while [[ $# -gt 0 ]]; do
|
| 32 |
+
case "$1" in
|
| 33 |
+
--sync|--small|--fast)
|
| 34 |
+
USE_LARGE=0
|
| 35 |
+
shift
|
| 36 |
+
;;
|
| 37 |
+
--help|-h)
|
| 38 |
+
sed -n '1,20p' "$0"
|
| 39 |
+
exit 0
|
| 40 |
+
;;
|
| 41 |
+
--)
|
| 42 |
+
shift
|
| 43 |
+
EXTRA=("$@")
|
| 44 |
+
break
|
| 45 |
+
;;
|
| 46 |
+
*)
|
| 47 |
+
EXTRA+=("$1")
|
| 48 |
+
shift
|
| 49 |
+
;;
|
| 50 |
+
esac
|
| 51 |
+
done
|
| 52 |
+
|
| 53 |
+
if [[ "${HF_USE_LARGE}" == "0" ]]; then
|
| 54 |
+
USE_LARGE=0
|
| 55 |
+
fi
|
| 56 |
+
|
| 57 |
+
if ! command -v hf >/dev/null 2>&1; then
|
| 58 |
+
echo "error: 'hf' not found. Install with: pip install -U huggingface_hub" >&2
|
| 59 |
+
exit 1
|
| 60 |
+
fi
|
| 61 |
+
|
| 62 |
+
echo "Repository: datasets/${REPO_ID}"
|
| 63 |
+
echo "Local root: ${ROOT}"
|
| 64 |
+
echo "(First upload creates the dataset repo if it does not exist.)"
|
| 65 |
+
echo
|
| 66 |
+
|
| 67 |
+
if [[ "$USE_LARGE" -eq 1 ]]; then
|
| 68 |
+
exec hf upload-large-folder "$REPO_ID" "$ROOT" --repo-type dataset "${EXTRA[@]}"
|
| 69 |
+
else
|
| 70 |
+
exec hf upload "$REPO_ID" "$ROOT" . --repo-type dataset "${EXTRA[@]}"
|
| 71 |
+
fi
|
smartpotato/run/args.yaml
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
task: detect
|
| 2 |
+
mode: train
|
| 3 |
+
model: security_camera_project/run_v4_anti_lazy_nano/weights/best.pt
|
| 4 |
+
data: bigsplit/data.yaml
|
| 5 |
+
epochs: 30
|
| 6 |
+
time: null
|
| 7 |
+
patience: 100
|
| 8 |
+
batch: 64
|
| 9 |
+
imgsz: 640
|
| 10 |
+
save: true
|
| 11 |
+
save_period: -1
|
| 12 |
+
cache: false
|
| 13 |
+
device: null
|
| 14 |
+
workers: 8
|
| 15 |
+
project: security_camera_project
|
| 16 |
+
name: run_v4_safe_polish
|
| 17 |
+
exist_ok: false
|
| 18 |
+
pretrained: true
|
| 19 |
+
optimizer: SGD
|
| 20 |
+
verbose: true
|
| 21 |
+
seed: 0
|
| 22 |
+
deterministic: true
|
| 23 |
+
single_cls: false
|
| 24 |
+
rect: false
|
| 25 |
+
cos_lr: false
|
| 26 |
+
close_mosaic: 15
|
| 27 |
+
resume: false
|
| 28 |
+
amp: true
|
| 29 |
+
fraction: 1.0
|
| 30 |
+
profile: false
|
| 31 |
+
freeze: null
|
| 32 |
+
multi_scale: 0.0
|
| 33 |
+
compile: false
|
| 34 |
+
overlap_mask: true
|
| 35 |
+
mask_ratio: 4
|
| 36 |
+
dropout: 0.0
|
| 37 |
+
val: true
|
| 38 |
+
split: val
|
| 39 |
+
save_json: false
|
| 40 |
+
conf: null
|
| 41 |
+
iou: 0.7
|
| 42 |
+
max_det: 300
|
| 43 |
+
half: false
|
| 44 |
+
dnn: false
|
| 45 |
+
plots: true
|
| 46 |
+
source: null
|
| 47 |
+
vid_stride: 1
|
| 48 |
+
stream_buffer: false
|
| 49 |
+
visualize: false
|
| 50 |
+
augment: false
|
| 51 |
+
agnostic_nms: false
|
| 52 |
+
classes: null
|
| 53 |
+
retina_masks: false
|
| 54 |
+
embed: null
|
| 55 |
+
show: false
|
| 56 |
+
save_frames: false
|
| 57 |
+
save_txt: false
|
| 58 |
+
save_conf: false
|
| 59 |
+
save_crop: false
|
| 60 |
+
show_labels: true
|
| 61 |
+
show_conf: true
|
| 62 |
+
show_boxes: true
|
| 63 |
+
line_width: null
|
| 64 |
+
format: torchscript
|
| 65 |
+
keras: false
|
| 66 |
+
optimize: false
|
| 67 |
+
int8: false
|
| 68 |
+
dynamic: false
|
| 69 |
+
simplify: true
|
| 70 |
+
opset: null
|
| 71 |
+
workspace: null
|
| 72 |
+
nms: false
|
| 73 |
+
lr0: 0.0005
|
| 74 |
+
lrf: 0.001
|
| 75 |
+
momentum: 0.95
|
| 76 |
+
weight_decay: 0.0005
|
| 77 |
+
warmup_epochs: 3.0
|
| 78 |
+
warmup_momentum: 0.8
|
| 79 |
+
warmup_bias_lr: 0.1
|
| 80 |
+
box: 10.0
|
| 81 |
+
cls: 4.0
|
| 82 |
+
dfl: 2.0
|
| 83 |
+
pose: 12.0
|
| 84 |
+
kobj: 1.0
|
| 85 |
+
rle: 1.0
|
| 86 |
+
angle: 1.0
|
| 87 |
+
nbs: 64
|
| 88 |
+
hsv_h: 0.015
|
| 89 |
+
hsv_s: 0.7
|
| 90 |
+
hsv_v: 0.4
|
| 91 |
+
degrees: 20.0
|
| 92 |
+
translate: 0.05
|
| 93 |
+
scale: 0.3
|
| 94 |
+
shear: 1.0
|
| 95 |
+
perspective: 0.0
|
| 96 |
+
flipud: 0.0
|
| 97 |
+
fliplr: 0.5
|
| 98 |
+
bgr: 0.0
|
| 99 |
+
mosaic: 0.3
|
| 100 |
+
mixup: 0.0
|
| 101 |
+
cutmix: 0.0
|
| 102 |
+
copy_paste: 0.0
|
| 103 |
+
copy_paste_mode: flip
|
| 104 |
+
auto_augment: randaugment
|
| 105 |
+
erasing: 0.4
|
| 106 |
+
cfg: null
|
| 107 |
+
tracker: botsort.yaml
|
| 108 |
+
save_dir: /train/security_camera_project/run_v4_safe_polish
|
smartpotato/run/results.csv
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
epoch,time,train/box_loss,train/cls_loss,train/dfl_loss,metrics/precision(B),metrics/recall(B),metrics/mAP50(B),metrics/mAP50-95(B),val/box_loss,val/cls_loss,val/dfl_loss,lr/pg0,lr/pg1,lr/pg2
|
| 2 |
+
1,401.83,2.23567,14.3862,2.07994,0.50743,0.34587,0.35884,0.20206,2.2322,13.8504,1.93987,0.0668539,0.000166563,0.000166563
|
| 3 |
+
2,759.488,2.06565,12.7099,1.96048,0.59814,0.43026,0.47009,0.26847,2.15854,11.9562,1.85863,0.0336762,0.000322133,0.000322133
|
| 4 |
+
3,1142.59,1.89777,11.2328,1.84567,0.69631,0.51594,0.58955,0.37725,1.84403,9.55414,1.66047,0.000487307,0.000466603,0.000466603
|
| 5 |
+
4,1492.56,1.73645,9.85486,1.73947,0.712,0.52866,0.60435,0.38916,1.83455,9.32889,1.64793,0.00045005,0.00045005,0.00045005
|
| 6 |
+
5,1842.99,1.71654,9.69503,1.72718,0.71817,0.52835,0.60817,0.39605,1.79914,9.20603,1.63147,0.0004334,0.0004334,0.0004334
|
| 7 |
+
6,2194.09,1.70788,9.58806,1.71961,0.71429,0.53317,0.61147,0.39858,1.7936,9.15417,1.62669,0.00041675,0.00041675,0.00041675
|
| 8 |
+
7,2584.87,1.69542,9.50983,1.71257,0.72172,0.53251,0.6134,0.40018,1.79022,9.10324,1.62327,0.0004001,0.0004001,0.0004001
|
| 9 |
+
8,2954.25,1.69225,9.46528,1.70889,0.72127,0.53473,0.61569,0.40377,1.77222,9.05541,1.61555,0.00038345,0.00038345,0.00038345
|
| 10 |
+
9,3313.44,1.68604,9.38998,1.70346,0.72163,0.53595,0.61733,0.40501,1.76833,9.02536,1.61254,0.0003668,0.0003668,0.0003668
|
| 11 |
+
10,3677.33,1.67776,9.33915,1.69985,0.72306,0.53694,0.61837,0.40644,1.76353,8.99795,1.61033,0.00035015,0.00035015,0.00035015
|
| 12 |
+
11,4045.97,1.67492,9.30761,1.69819,0.71945,0.53941,0.61926,0.40762,1.75957,8.98113,1.60855,0.0003335,0.0003335,0.0003335
|
| 13 |
+
12,4394.72,1.66786,9.25588,1.69401,0.72248,0.53853,0.61993,0.4083,1.75719,8.96502,1.60729,0.00031685,0.00031685,0.00031685
|
| 14 |
+
13,4745.74,1.66355,9.1992,1.68919,0.72098,0.5394,0.6201,0.40883,1.75443,8.95279,1.60596,0.0003002,0.0003002,0.0003002
|
| 15 |
+
14,5100.54,1.66031,9.16325,1.68855,0.72015,0.54053,0.62096,0.40971,1.75302,8.94084,1.60506,0.00028355,0.00028355,0.00028355
|
| 16 |
+
15,5462.66,1.65625,9.14684,1.68591,0.72049,0.53994,0.62103,0.4102,1.74984,8.92872,1.60355,0.0002669,0.0002669,0.0002669
|
| 17 |
+
16,5823.32,1.60921,8.59339,1.64196,0.72117,0.54047,0.62181,0.41091,1.74702,8.91673,1.60212,0.00025025,0.00025025,0.00025025
|
| 18 |
+
17,6183.37,1.6044,8.5469,1.63885,0.72004,0.5423,0.62245,0.41138,1.74581,8.90695,1.60122,0.0002336,0.0002336,0.0002336
|
| 19 |
+
18,6575.9,1.60247,8.51157,1.63729,0.72106,0.54244,0.623,0.41182,1.74505,8.89587,1.60045,0.00021695,0.00021695,0.00021695
|
| 20 |
+
19,6950.71,1.59779,8.47763,1.63497,0.7207,0.5426,0.62336,0.41238,1.74377,8.88429,1.59959,0.0002003,0.0002003,0.0002003
|
| 21 |
+
20,7336.43,1.59645,8.45805,1.63398,0.72101,0.54348,0.62401,0.41258,1.74402,8.87605,1.59915,0.00018365,0.00018365,0.00018365
|
| 22 |
+
21,7709.74,1.59396,8.43909,1.63169,0.72128,0.54407,0.62436,0.41293,1.74335,8.86717,1.59843,0.000167,0.000167,0.000167
|
| 23 |
+
22,8094.63,1.59151,8.41256,1.63074,0.72176,0.54488,0.62453,0.41318,1.74246,8.85721,1.59789,0.00015035,0.00015035,0.00015035
|
| 24 |
+
23,8466.04,1.58936,8.39994,1.62936,0.72194,0.54515,0.625,0.41355,1.74114,8.84899,1.59693,0.0001337,0.0001337,0.0001337
|
| 25 |
+
24,8835.96,1.58813,8.38,1.62812,0.72273,0.54467,0.62516,0.41362,1.74161,8.84307,1.59662,0.00011705,0.00011705,0.00011705
|
| 26 |
+
25,9221.03,1.5863,8.35972,1.62786,0.72469,0.54363,0.62529,0.41378,1.74081,8.83611,1.59589,0.0001004,0.0001004,0.0001004
|
| 27 |
+
26,9594.09,1.58397,8.34554,1.62458,0.72283,0.54499,0.62526,0.41399,1.74057,8.82926,1.59549,8.375e-05,8.375e-05,8.375e-05
|
| 28 |
+
27,9952.83,1.58342,8.32862,1.62437,0.72258,0.54487,0.62541,0.41437,1.73943,8.82161,1.59483,6.71e-05,6.71e-05,6.71e-05
|
| 29 |
+
28,10312.8,1.58305,8.32494,1.62456,0.72164,0.54608,0.62583,0.41453,1.73851,8.81582,1.59417,5.045e-05,5.045e-05,5.045e-05
|
| 30 |
+
29,10673.1,1.5802,8.317,1.62323,0.72395,0.54524,0.62597,0.41466,1.73895,8.81143,1.59397,3.38e-05,3.38e-05,3.38e-05
|
| 31 |
+
30,11034.7,1.581,8.31174,1.62339,0.72512,0.54514,0.62596,0.41482,1.73791,8.8074,1.59355,1.715e-05,1.715e-05,1.715e-05
|