Run this model with HF Jobs
Run tinylens/image-orientation-small 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-small. 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-small 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.
Instructions to use tinylens/image-orientation-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use tinylens/image-orientation-small with timm:
import timm model = timm.create_model("hf-hub:tinylens/image-orientation-small", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Download preprocess.json from tinylens/image-orientation-small: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/tinylens/image-orientation-small/resolve/main/preprocess.json
- Command line
-
hf download hf://tinylens/image-orientation-small/preprocess.json
-
curl -L -o preprocess.json https://huggingface.co/tinylens/image-orientation-small/resolve/main/preprocess.json
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" | |
| } |