Update assets/skin.py
Browse files- assets/skin.py +1 -1
assets/skin.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
from torchvision import transforms
|
4 |
from torchvision.models import VGG19_BN_Weights, vgg19_bn
|
5 |
DEVICE = 'cpu'
|
6 |
-
model =torch.load('assets/skin.pth', map_location=)
|
7 |
skin_map={0:'Добро',1:'Зло'}
|
8 |
def get_evil(img):
|
9 |
|
|
|
3 |
from torchvision import transforms
|
4 |
from torchvision.models import VGG19_BN_Weights, vgg19_bn
|
5 |
DEVICE = 'cpu'
|
6 |
+
model =torch.load('assets/skin.pth', map_location=DEVICE)
|
7 |
skin_map={0:'Добро',1:'Зло'}
|
8 |
def get_evil(img):
|
9 |
|