Constant¶
This pages shows some constants which are defined in torchvision_sunner. You can import the module and call like this:
import torchvision_sunner.transforms as sunnertransforms
print(sunnertransforms.UNDER_SAMPLING)
>> 0
Numeric constant¶
UNDER_SAMPLING- The numeric value of this constant is0. This constant represent the under sampling toward the data un-balance. You can refer to here for further usageOVER_SAMPLING- The numeric value of this constant is1. This constant represent the over sampling toward the data un-balance. You can refer to here for further usageBCHW2BHWC- The numeric value of this constant is0. This constant represent to transfer the rank of tensor fromBCHWtoBHWC. This constant may be used in hereBHWC2BCHW- The numeric value of this constant is1. This constant represent to transfer the rank of tensor fromBHWCtoBCHW. This constant may be used in hereBHW2BHWC- The numeric value of this constant is3. This constant represent to transfer the rank of tensor fromBHWtoBHW3. This constant may be used in hereBTHW2BTHWC- The numeric value of this constant is4. This constant represent to transfer the rank of tensor fromBTHWtoBTHW3. This constant may be used in here
Categorical constant¶
These constant may be used in here
ONEHOT2INDEX- This constant represent the symbol to transfer the tensor from the one-hot form into index formINDEX2ONEHOT- This constant represent the symbol to transfer the tensor from the index form into one-hot formONEHOT2COLOR- This constant represent the symbol to transfer the tensor from the one-hot form into RGB colorful formCOLOR2ONEHOT- This constant represent the symbol to transfer the tensor from the RGB colorful form into one-hot formINDEX2COLOR- This constant represent the symbol to transfer the tensor from the index form into RGB colorful formCOLOR2INDEX- This constant represent the symbol to transfer the tensor from the RGB colorful form into index form