Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

How to load custom dataset in coco format for training an instance segmentation model? #1132

Answered by ethanwharris
jeanpat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jeanpat thanks for the question! You can take a look at an example in our latest docs (not yet released) here: https://lightning-flash.readthedocs.io/en/latest/api/generated/flash.image.instance_segmentation.data.InstanceSegmentationData.html#flash.image.instance_segmentation.data.InstanceSegmentationData.from_coco

Note that you will need to install flash from github in order for this to work, which you can do with the following:

pip install 'git+https://github.com/PyTorchLightning/lightning-flash.git#egg=lightning-flash[image]' icevision

Hope that helps! 😃

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jeanpat
Comment options

@jeanpat
Comment options

Answer selected by jeanpat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants