Object Detection
ONNX
GGUF
agriculture
crop
plant-disease
pest
edge
on-device
onnxruntime-web
yolo11
mobilenetv3
field-images
decision-model
feature-extraction
Instructions to use CopyleftCultivars/agri-vision-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use CopyleftCultivars/agri-vision-detector with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf CopyleftCultivars/agri-vision-detector:F16 # Run inference directly in the terminal: llama cli -hf CopyleftCultivars/agri-vision-detector:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf CopyleftCultivars/agri-vision-detector:F16 # Run inference directly in the terminal: llama cli -hf CopyleftCultivars/agri-vision-detector:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf CopyleftCultivars/agri-vision-detector:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf CopyleftCultivars/agri-vision-detector:F16
Use Docker
docker model run hf.co/CopyleftCultivars/agri-vision-detector:F16
- Llama new
- LM Studio
- Jan
- Ollama
How to use CopyleftCultivars/agri-vision-detector with Ollama:
ollama run hf.co/CopyleftCultivars/agri-vision-detector:F16
- Unsloth Desktop
- Docker Model Runner
How to use CopyleftCultivars/agri-vision-detector with Docker Model Runner:
docker model run hf.co/CopyleftCultivars/agri-vision-detector:F16
- Lemonade
How to use CopyleftCultivars/agri-vision-detector with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CopyleftCultivars/agri-vision-detector:F16
Run and chat with the model
lemonade run user.agri-vision-detector-F16
List all available models
lemonade list
- Atomic Chat
Download build_cache_generic.py from CopyleftCultivars/agri-vision-detector: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/CopyleftCultivars/agri-vision-detector/resolve/main/build_cache_generic.py
- Command line
-
hf download hf://CopyleftCultivars/agri-vision-detector/build_cache_generic.py
-
curl -L -o build_cache_generic.py https://huggingface.co/CopyleftCultivars/agri-vision-detector/resolve/main/build_cache_generic.py
1.02 kB
| """Resize images listed in a meta jsonl (field 'path') to SxS uint8 -> <prefix>_<S>.npy (row order == meta order), bad indices -> <prefix>_bad.json. | |
| Usage: build_cache_generic.py META.jsonl PREFIX [S=224]""" | |
| import json, sys, numpy as np | |
| from multiprocessing import Pool | |
| from PIL import Image | |
| META,PFX=sys.argv[1],sys.argv[2]; S=int(sys.argv[3]) if len(sys.argv)>3 else 224 | |
| rows=[json.loads(l) for l in open(META)] | |
| def f(i): | |
| try: | |
| im=Image.open(rows[i]["path"]); im.draft("RGB",(S*2,S*2)); return i,np.asarray(im.convert("RGB").resize((S,S),Image.BILINEAR)) | |
| except Exception as e: return i,None | |
| if __name__=="__main__": | |
| mm=np.lib.format.open_memmap(f"{PFX}_{S}.npy",mode="w+",dtype=np.uint8,shape=(len(rows),S,S,3)); bad=[] | |
| with Pool(4) as p: | |
| for k,(i,a) in enumerate(p.imap_unordered(f,range(len(rows)),chunksize=64)): | |
| if a is None: bad.append(i) | |
| else: mm[i]=a | |
| mm.flush(); json.dump(bad,open(f"{PFX}_bad.json","w")); print("done",len(rows),"bad",len(bad)) | |