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/NavLink.tsx from Rmano-Rudeson/weedscan-kz: direct link, hf CLI and curl.
- Browser
- Download file 751 Bytes
-
https://huggingface.co/Rmano-Rudeson/weedscan-kz/resolve/main/web/src/components/NavLink.tsx
- Command line
-
hf download hf://Rmano-Rudeson/weedscan-kz/web/src/components/NavLink.tsx
-
curl -L -o NavLink.tsx https://huggingface.co/Rmano-Rudeson/weedscan-kz/resolve/main/web/src/components/NavLink.tsx
751 Bytes
| import { NavLink as RouterNavLink, NavLinkProps } from "react-router-dom"; | |
| import { forwardRef } from "react"; | |
| import { cn } from "@/lib/utils"; | |
| interface NavLinkCompatProps extends Omit<NavLinkProps, "className"> { | |
| className?: string; | |
| activeClassName?: string; | |
| pendingClassName?: string; | |
| } | |
| const NavLink = forwardRef<HTMLAnchorElement, NavLinkCompatProps>( | |
| ({ className, activeClassName, pendingClassName, to, ...props }, ref) => { | |
| return ( | |
| <RouterNavLink | |
| ref={ref} | |
| to={to} | |
| className={({ isActive, isPending }) => | |
| cn(className, isActive && activeClassName, isPending && pendingClassName) | |
| } | |
| {...props} | |
| /> | |
| ); | |
| }, | |
| ); | |
| NavLink.displayName = "NavLink"; | |
| export { NavLink }; | |