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 Dockerfile from camstack/camstack-trainer: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/camstack/camstack-trainer/resolve/main/Dockerfile
- Command line
-
hf download hf://camstack/camstack-trainer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/camstack/camstack-trainer/resolve/main/Dockerfile
1.42 kB
| # Tracked in camstack/server as hf/camstack-trainer/Dockerfile; edit it there, not on the Hub. | |
| # | |
| # The CamStack trainer image. Two builders read this file: | |
| # - `docker build --platform linux/amd64 --build-arg TRAINER_REVISION=<sha> .` (any registry); | |
| # - the hub's Modal provider, which builds it WITHOUT a build context: | |
| # FROM becomes `images.fromRegistry(...)` and every other line one | |
| # `dockerfileCommands` entry. | |
| # So, load-bearing: | |
| # - only FROM, ARG, ENV, RUN and WORKDIR — never COPY or ADD (there is no context); | |
| # - one instruction per line, no backslash continuations (the hub splits on lines); | |
| # - every pip version pinned; the trainer itself installed from this repository | |
| # at TRAINER_REVISION (the hub passes the exact commit it was released with). | |
| FROM pytorch/pytorch:2.13.0-cuda12.6-cudnn9-runtime | |
| ARG TRAINER_REVISION=main | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| ENV TRAINER_REVISION=${TRAINER_REVISION} | |
| ENV YOLO_CONFIG_DIR=/tmp/ultralytics | |
| RUN apt-get update && apt-get install -y --no-install-recommends git libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/* | |
| RUN pip install "camstack-train[train,export] @ git+https://huggingface.co/camstack/camstack-trainer@${TRAINER_REVISION}" | |
| RUN python -c "import camstack_train, ultralytics, openvino, nncf, coremltools; print('trainer', camstack_train.__version__)" | |
| WORKDIR /app | |
| CMD ["python", "-m", "camstack_train", "--help"] | |