Class SoftDvppDecodeResizeJpeg
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class SoftDvppDecodeResizeJpeg : public mindspore::dataset::TensorTransform
Decode and resize a JPEG image using the simulation algorithm of Ascend series chip DVPP module. It is recommended to use this algorithm in the following scenarios: When training, the DVPP of the Ascend chip is not used, and the DVPP of the Ascend chip is used during inference, and the accuracy of inference is lower than the accuracy of training; and the input image size should be in range [32*32, 8192*8192]. The zoom-out and zoom-in multiples of the image length and width should be in the range [1/32, 16]. Only images with an even resolution can be output. The output of odd resolution is not supported.
Public Functions
-
explicit SoftDvppDecodeResizeJpeg(std::vector<int32_t> size)
Constructor.
- Parameters
size – [in] A vector representing the output size of the resized image. If the size is a single value, smaller edge of the image will be resized to this value with the same image aspect ratio. If the size has 2 values, it should be (height, width).
-
~SoftDvppDecodeResizeJpeg() = default
Destructor.
-
explicit SoftDvppDecodeResizeJpeg(std::vector<int32_t> size)