Skip to content

JunhaoXing/ZeroPlantSeg

Repository files navigation

ZeroPlantSeg

ArXiv

This repository contains the official implementation of Zero-shot Hierarchical Plant Segmentation via Foundation Segmentation Models and Text-to-image Attention (Junhao Xing, Ryohei Miyakawa, Yang Yang, Xinpeng Liu, Risa Shinoda, Hiroaki Santo, Yosuke Toda, Fumio Okura).

Installation

Local Setup

Clone this repo and install the requirements:

git clone https://github.com/JunhaoXing/ZeroPlantSeg.git
pip3 install -r requirements.txt

Docker

Build the environment as docker/README.md.

Usage

Preliminaries

Run ckpt_download.sh to acquire necessay checkpoints:

sh ./ckpt_download.sh

1. Leaf Mask Collection

To collect leaf mask candidates, run leaf_mask_collection.py with

python3 leaf_mask_collection.py --dataset ${dataset_name} --mode ${val_or_test}

2. Leaf Instance Segmentation

To get leaf instance segmentation, run leaf_segmentation.py with

python3 leaf_segmentation.py --dataset ${dataset_name} --mode ${val_or_test}

3. Plant Instance Sementation

To get plant instance segmentation, run plant_segmentation.py with

python3 leaf_segmentation.py --dataset ${dataset_name} --mode ${val_or_test}

About

The official repository for "Zero-shot Hierarchical Plant Segmentation via Foundation Segmentation Models and Text-to-image Attention".

Resources

License

Stars

7 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors