Instructions to use camstack/camstack-trainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use camstack/camstack-trainer with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("camstack/camstack-trainer", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
camstack-train 0.1.0: YOLOv9 root detector fine-tune (job.json in, result.json + bundle.tar out)
ebeed67 verified Download schemas/job.schema.json from camstack/camstack-trainer: direct link, hf CLI and curl.
- Browser
- Download file 7.91 kB
-
https://huggingface.co/camstack/camstack-trainer/resolve/main/schemas/job.schema.json
- Command line
-
hf download hf://camstack/camstack-trainer/schemas/job.schema.json
-
curl -L -o job.schema.json https://huggingface.co/camstack/camstack-trainer/resolve/main/schemas/job.schema.json
7.91 kB
| { | |
| "$defs": { | |
| "Base": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "imgsz": { | |
| "maximum": 2048, | |
| "minimum": 64, | |
| "title": "Imgsz", | |
| "type": "integer" | |
| }, | |
| "modelId": { | |
| "minLength": 1, | |
| "title": "Modelid", | |
| "type": "string" | |
| }, | |
| "weights": { | |
| "pattern": "^[A-Za-z0-9._-]+\\.pt$", | |
| "title": "Weights", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "modelId", | |
| "weights", | |
| "imgsz" | |
| ], | |
| "title": "Base", | |
| "type": "object" | |
| }, | |
| "Baseline": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "floors": { | |
| "additionalProperties": { | |
| "type": "number" | |
| }, | |
| "title": "Floors", | |
| "type": "object" | |
| }, | |
| "imgsz": { | |
| "maximum": 2048, | |
| "minimum": 64, | |
| "title": "Imgsz", | |
| "type": "integer" | |
| }, | |
| "modelId": { | |
| "minLength": 1, | |
| "title": "Modelid", | |
| "type": "string" | |
| }, | |
| "onnxUrl": { | |
| "pattern": "^https://", | |
| "title": "Onnxurl", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "modelId", | |
| "onnxUrl", | |
| "imgsz", | |
| "floors" | |
| ], | |
| "title": "Baseline", | |
| "type": "object" | |
| }, | |
| "Calibration": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "maxFrames": { | |
| "maximum": 5000, | |
| "minimum": 1, | |
| "title": "Maxframes", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "maxFrames" | |
| ], | |
| "title": "Calibration", | |
| "type": "object" | |
| }, | |
| "Catalog": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "id": { | |
| "pattern": "^[a-z0-9][a-z0-9._-]{0,95}$", | |
| "title": "Id", | |
| "type": "string" | |
| }, | |
| "name": { | |
| "maxLength": 120, | |
| "minLength": 1, | |
| "title": "Name", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "id", | |
| "name" | |
| ], | |
| "title": "Catalog", | |
| "type": "object" | |
| }, | |
| "Dataset": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "annotationHash": { | |
| "title": "Annotationhash", | |
| "type": "string" | |
| }, | |
| "sha256": { | |
| "pattern": "^[0-9a-f]{64}$", | |
| "title": "Sha256", | |
| "type": "string" | |
| }, | |
| "versionId": { | |
| "minLength": 1, | |
| "title": "Versionid", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "versionId", | |
| "annotationHash", | |
| "sha256" | |
| ], | |
| "title": "Dataset", | |
| "type": "object" | |
| }, | |
| "Floors": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "clamp": { | |
| "maximum": 1.0, | |
| "minimum": 0.0, | |
| "title": "Clamp", | |
| "type": "number" | |
| }, | |
| "minSupport": { | |
| "minimum": 0, | |
| "title": "Minsupport", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "minSupport", | |
| "clamp" | |
| ], | |
| "title": "Floors", | |
| "type": "object" | |
| }, | |
| "Hyper": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "batch": { | |
| "maximum": 512, | |
| "minimum": 1, | |
| "title": "Batch", | |
| "type": "integer" | |
| }, | |
| "epochs": { | |
| "maximum": 1000, | |
| "minimum": 1, | |
| "title": "Epochs", | |
| "type": "integer" | |
| }, | |
| "freeze": { | |
| "maximum": 100, | |
| "minimum": 0, | |
| "title": "Freeze", | |
| "type": "integer" | |
| }, | |
| "lr0": { | |
| "exclusiveMinimum": 0.0, | |
| "maximum": 1.0, | |
| "title": "Lr0", | |
| "type": "number" | |
| }, | |
| "patience": { | |
| "maximum": 1000, | |
| "minimum": 0, | |
| "title": "Patience", | |
| "type": "integer" | |
| }, | |
| "seed": { | |
| "title": "Seed", | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "epochs", | |
| "batch", | |
| "lr0", | |
| "freeze", | |
| "patience", | |
| "seed" | |
| ], | |
| "title": "Hyper", | |
| "type": "object" | |
| }, | |
| "Int8Gate": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "maxMap50Drop": { | |
| "maximum": 1.0, | |
| "minimum": 0.0, | |
| "title": "Maxmap50Drop", | |
| "type": "number" | |
| } | |
| }, | |
| "required": [ | |
| "maxMap50Drop" | |
| ], | |
| "title": "Int8Gate", | |
| "type": "object" | |
| }, | |
| "Replay": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "count": { | |
| "maximum": 20000, | |
| "minimum": 0, | |
| "title": "Count", | |
| "type": "integer" | |
| }, | |
| "source": { | |
| "const": "coco2017", | |
| "title": "Source", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "source", | |
| "count" | |
| ], | |
| "title": "Replay", | |
| "type": "object" | |
| }, | |
| "Split": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "holdoutCameras": { | |
| "items": { | |
| "type": "integer" | |
| }, | |
| "title": "Holdoutcameras", | |
| "type": "array" | |
| }, | |
| "holdoutLastDays": { | |
| "maximum": 365, | |
| "minimum": 0, | |
| "title": "Holdoutlastdays", | |
| "type": "integer" | |
| }, | |
| "seed": { | |
| "title": "Seed", | |
| "type": "integer" | |
| }, | |
| "valFraction": { | |
| "maximum": 0.5, | |
| "minimum": 0.0, | |
| "title": "Valfraction", | |
| "type": "number" | |
| } | |
| }, | |
| "required": [ | |
| "holdoutCameras", | |
| "holdoutLastDays", | |
| "valFraction", | |
| "seed" | |
| ], | |
| "title": "Split", | |
| "type": "object" | |
| }, | |
| "Target": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "kind": { | |
| "const": "detector", | |
| "title": "Kind", | |
| "type": "string" | |
| }, | |
| "step": { | |
| "const": "object-detection", | |
| "title": "Step", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "kind", | |
| "step" | |
| ], | |
| "title": "Target", | |
| "type": "object" | |
| } | |
| }, | |
| "$id": "camstack.training/v1", | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "additionalProperties": false, | |
| "properties": { | |
| "base": { | |
| "$ref": "#/$defs/Base" | |
| }, | |
| "baseline": { | |
| "$ref": "#/$defs/Baseline" | |
| }, | |
| "calibration": { | |
| "$ref": "#/$defs/Calibration" | |
| }, | |
| "catalog": { | |
| "$ref": "#/$defs/Catalog" | |
| }, | |
| "dataset": { | |
| "$ref": "#/$defs/Dataset" | |
| }, | |
| "exports": { | |
| "items": { | |
| "enum": [ | |
| "onnx", | |
| "openvino-fp16", | |
| "openvino-int8", | |
| "coreml-fp16" | |
| ], | |
| "type": "string" | |
| }, | |
| "minItems": 1, | |
| "title": "Exports", | |
| "type": "array" | |
| }, | |
| "floors": { | |
| "$ref": "#/$defs/Floors" | |
| }, | |
| "hyper": { | |
| "$ref": "#/$defs/Hyper" | |
| }, | |
| "int8Gate": { | |
| "$ref": "#/$defs/Int8Gate" | |
| }, | |
| "jobKey": { | |
| "maxLength": 64, | |
| "minLength": 1, | |
| "pattern": "^[A-Za-z0-9-]+$", | |
| "title": "Jobkey", | |
| "type": "string" | |
| }, | |
| "replay": { | |
| "$ref": "#/$defs/Replay" | |
| }, | |
| "schema": { | |
| "const": "camstack.training/v1", | |
| "title": "Schema", | |
| "type": "string" | |
| }, | |
| "split": { | |
| "$ref": "#/$defs/Split" | |
| }, | |
| "target": { | |
| "$ref": "#/$defs/Target" | |
| } | |
| }, | |
| "required": [ | |
| "schema", | |
| "jobKey", | |
| "target", | |
| "base", | |
| "baseline", | |
| "dataset", | |
| "split", | |
| "hyper", | |
| "replay", | |
| "exports", | |
| "calibration", | |
| "floors", | |
| "int8Gate", | |
| "catalog" | |
| ], | |
| "title": "JobSpec", | |
| "type": "object" | |
| } | |