Parameter Adjustmens and Ensemble Model Implementation
This commit is contained in:
8
utils/transforms.py
Normal file
8
utils/transforms.py
Normal file
@ -0,0 +1,8 @@
|
||||
from torchvision.transforms import ToTensor as TorchvisionToTensor
|
||||
|
||||
|
||||
class ToTensor(TorchvisionToTensor):
|
||||
|
||||
def __call__(self, pic):
|
||||
tensor = super(ToTensor, self).__call__(pic).float()
|
||||
return tensor
|
Reference in New Issue
Block a user