Skip to content

Commit a4e8613

Browse files
authored
Merge pull request #3 from GEMINI-Breeding/roboflow
Added roboflow and labeling guide.
2 parents 7351f9c + 7918293 commit a4e8613

File tree

5 files changed

+71
-1
lines changed

5 files changed

+71
-1
lines changed

docs/1. App/4- Roboflow.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: Roboflow Usage
3+
---
4+
5+
6+
To extract traits from uploaded images, the GEMINI App supports both use of models trained using Roboflow or locally.
7+
8+
## Getting Started with Roboflow
9+
10+
When using Roboflow, we recommend the following steps to get started:
11+
12+
• Create a Roboflow account: [app.roboflow.com](https://app.roboflow.com){:target="_blank"}
13+
14+
• Create a new workspace or join a shared workspace.
15+
16+
• Create a new project and name it as desired based on the trait(s) you are labeling.
17+
18+
• Place this project in the correct location based on your workspace's standards for the images being uploaded (location / platform / sensor).
19+
20+
## Extracting Traits Using Roboflow
21+
22+
Traits can be extracted using Roboflow models through two possible methods:
23+
24+
**Method 1: Label and Train Custom Model**
25+
26+
• Download plot images from the manage files tab (ground-based) or plot image extractor (UAV-based). Upload them to your Roboflow project.
27+
28+
• Use the Roboflow labeling tool to annotate your images.
29+
30+
• Train your model in Roboflow.
31+
32+
• Note your model ID, version, and API key.
33+
34+
• Enter these attributes into the "Predict" section of the app to get results.
35+
36+
**Method 2: Use Pretrained Model**
37+
38+
• Select a pretrained model from Roboflow Universe that is close to your use case: universe.roboflow.com.
39+
40+
• Use the Fork Project button to create a copy of the model in your workspace.
41+
42+
• Note the model ID, version, and API key.
43+
44+
• Enter these attributes into the "Predict" section of the app to get results.
45+
46+
47+
**On the "Predict" step, note the difference between cloud (hosted) inference and local inference for Roboflow models. The local option is preferred to minimize cost on Roboflow, but the cloud option may be chosen for less powerful workstations.**
48+
49+
## Using Non-Roboflow Models
50+
51+
If desired, Roboflow can be avoided for trait extraction.
52+
53+
• Train a YOLOv8 or YOLOv11 detection or segmentation model locally or on another service using labeled images.
54+
55+
• Alternatively, you can pull the model weights from another pretrained model and upload those to the app.
56+
57+
• Upload your model weights using the "Select" section of the app.
58+
59+
• Select the local model upload option on the "Predict" step and choose the uploaded model.

docs/1. App/5- Labeling Guide.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Labeling Guide
3+
---
4+
5+
The following is an example of a comprehensive guide for labeling methodology for single class cowpea flowers. More crop and trait specific guides will be added over time to standardize labels.
6+
7+
## Example
8+
9+
![Labeling Guide](_attachments/labeling/Single_Class_Flower_Classification_Guide.pdf){ type=application/pdf style="min-height:50vh;width:100%"}
Binary file not shown.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ theme:
3030
plugins:
3131
- search
3232
- glightbox
33+
- mkdocs-pdf
3334

3435

3536
markdown_extensions:

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ requests==2.32.0
2626
six==1.16.0
2727
urllib3==2.2.2
2828
watchdog==4.0.0
29-
mkdocs-glightbox
29+
mkdocs-glightbox
30+
mkdocs-pdf

0 commit comments

Comments
 (0)