Skip to content

AgriSwarm/detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detector

image

Usage

Python

Perform inference effortlessly by calling predict(...) as demonstrated below:

import json
from predict_shot import predict

with open("coco_converted/val/images/000056.jpg", 'rb') as file:
    image = file.read()
    results = predict(image)
print(json.dumps(results, indent=4))

Sample output:

[
    {
        "bbox_xyxy": [
            214.08851623535156,
            846.3001098632812,
            541.779296875,
            1198.1767578125
        ],
        "conf": 0.896393895149231
    },
    ...
]

image0

Command Line Interface (CLI)

Run inference directly from the command line:

python predict_shot.py coco_converted/val/images/000056.jpg

Setting Up the Docker Container

If you need to launch your own Docker container, simply execute the following command:

bash run_docker.sh

For Machine Learning Engineers

Streamline your workflow with the full pipeline:

bash run_docker.sh
bash all_pipeline.sh

Elevate your ML tasks with these simple, yet powerful commands!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages