How to load custom dataset in coco format for training an instance segmentation model? #1132
-
Hello, I have a small dataset available on on kaggle. it consists in 125 images and their instance labels in coco format # 1. Create the DataModule
data_dir = icedata.pets.load_data()
datamodule = InstanceSegmentationData.from_folders(
train_folder=data_dir,
val_split=0.1,
parser=partial(icedata.pets.parser, mask=True),
) Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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:
Hope that helps! 😃 |
Beta Was this translation helpful? Give feedback.
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:
Hope that helps! 😃