Parameter Adjustmens and Ensemble Model Implementation

This commit is contained in:
Si11ium
2020-05-08 16:30:54 +02:00
parent 3c776f13c5
commit d2e74ff33a
6 changed files with 126 additions and 56 deletions

8
utils/transforms.py Normal file
View 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