Build docker image:
make build
You may need to install the NVIDIA container toolkit to bring the GPUs to work with Docker.
We provide a test folder containing a subset of images from PhenoBench with their semantic and plant instance labels. This allows to check the pipeline. To perform a full validation, one can download the PhenoBench dataset from https://www.phenobench.org/.
Download the data samples here: samples.zip,
Unzip the samples and copy the folder samples and the weights into the main folder.
Execute
make download
We provide some samples to try the label refinement. You can run
make test
which will also save the result as one image with 4 plots: input, semantic label, instance label, and instance prediction.
If you want to use other data
- In the makefile change the DATA_PATH to point at your data
- Write or import the dataloader: a. Implement the dataloader in the datasets folder b. change the init.py file in the datasets folder to import the dataloader c. Change your config file data name and root_dir to access your new data
- Load the coarse instance segmentation in your dataloader
- Change the config file to use the coarse instance segmentation (not the color based one)
In general, we follow the Python PEP 8 style guidelines. Please install black to format your python code properly. To run the black code formatter, use the following command:
black -l 120 path/to/python/module/or/package/
To optimize and clean up your imports, feel free to have a look at this solution for PyCharm.
