Class RandomVerticalFlipWithBBox
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class RandomVerticalFlipWithBBox : public mindspore::dataset::TensorTransform
Randomly flip the input image vertically with a given probability and adjust bounding boxes accordingly.
Public Functions
-
explicit RandomVerticalFlipWithBBox(float prob = 0.5)
Constructor.
- Example
/* Define operations */ auto random_op = vision::RandomVerticalFlipWithBBox(); /* dataset is an instance of Dataset object */ dataset = dataset->Map({random_op}, // operations {"image", "bbox"}); // input columns
- 参数
prob – [in] A float representing the probability of flip.
-
~RandomVerticalFlipWithBBox() = default
Destructor.
-
explicit RandomVerticalFlipWithBBox(float prob = 0.5)