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
File size: 1,016 Bytes
f79b7a1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """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))
|