Run this model with HF Jobs

Run tinylens/image-orientation-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/tinylens/image-orientation-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/tinylens/image-orientation-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
image-orientation-base / preprocess.json
tinylens's picture
Initial release: DINOv2 ViT-B image orientation classifier
c508847 verified
Raw History Blame Contribute Delete
431 Bytes
{
"size": 224,
"resize": "letterbox: keep aspect ratio, longest side to size, bicubic, pad to a square",
"pad_value": 128,
"input": "pixel_values, float32 RGB in [0, 1], shape [N, 3, size, size]; normalization is inside the ONNX model",
"output": "probs, shape [N, 4]",
"classes": [
"0",
"90",
"180",
"270"
],
"class_meaning": "the image is rotated clockwise by this many degrees; rotate counter-clockwise to fix"
}