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

How to use IceVisionTransformAdapter properly in Object Detection task? #1269

Discussion options

You must be logged in to vote

Hi @IncubatorShokuhou The IceVisionTransformAdapter is intended to let you adapt the transforms from IceVision / Albumentations with the object / keypoint detection + instance segmentation tasks. Internally, it just changes the format of your samples so that the boxes, masks, etc. are all transformed correctly.

So it's not quite the same as albumentations.Compose. A general recipe using alb.Compose would look like this:

from dataclasses import dataclass
import albumentations as alb
from icevision.tfms import A

from flash import InputTransform
from flash.core.integrations.icevision.transforms import IceVisionTransformAdapter
from flash.image import ObjectDetectionData


train_transform = A.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IncubatorShokuhou
Comment options

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