Object Detection
ultralytics
English
agriculture
weed-detection
yolo
yolov8
yolo26
precision-agriculture
research
Instructions to use Rmano-Rudeson/weedscan-kz with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use Rmano-Rudeson/weedscan-kz 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("Rmano-Rudeson/weedscan-kz", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Download web/src/components/ui/switch.tsx from Rmano-Rudeson/weedscan-kz: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/Rmano-Rudeson/weedscan-kz/resolve/main/web/src/components/ui/switch.tsx
- Command line
-
hf download hf://Rmano-Rudeson/weedscan-kz/web/src/components/ui/switch.tsx
-
curl -L -o switch.tsx https://huggingface.co/Rmano-Rudeson/weedscan-kz/resolve/main/web/src/components/ui/switch.tsx
1.15 kB
| import * as React from "react"; | |
| import * as SwitchPrimitives from "@radix-ui/react-switch"; | |
| import { cn } from "@/lib/utils"; | |
| const Switch = React.forwardRef< | |
| React.ElementRef<typeof SwitchPrimitives.Root>, | |
| React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> | |
| >(({ className, ...props }, ref) => ( | |
| <SwitchPrimitives.Root | |
| className={cn( | |
| "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50", | |
| className, | |
| )} | |
| {...props} | |
| ref={ref} | |
| > | |
| <SwitchPrimitives.Thumb | |
| className={cn( | |
| "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0", | |
| )} | |
| /> | |
| </SwitchPrimitives.Root> | |
| )); | |
| Switch.displayName = SwitchPrimitives.Root.displayName; | |
| export { Switch }; | |