Someshfengde
commited on
Commit
•
1c610d5
1
Parent(s):
38a21f4
Upload folder using huggingface_hub
Browse files- pytorch_model.bin +2 -2
- script.py +2 -2
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e753b4464161be4b061c59e1b3e2dbfb7b0fba36ea913feea467d45391a0149
|
3 |
+
size 113472190
|
script.py
CHANGED
@@ -24,7 +24,7 @@ class PytorchWorker:
|
|
24 |
self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
25 |
print(f"Using devide: {self.device}")
|
26 |
|
27 |
-
model = timm.create_model(model_name,
|
28 |
|
29 |
# if not torch.cuda.is_available():
|
30 |
# model_ckpt = torch.load(model_path, map_location=torch.device("cpu"))
|
@@ -38,7 +38,7 @@ class PytorchWorker:
|
|
38 |
|
39 |
self.model = _load_model(model_name, model_path)
|
40 |
|
41 |
-
self.transforms = T.Compose([T.Resize((
|
42 |
T.ToTensor(),
|
43 |
T.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])])
|
44 |
|
|
|
24 |
self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
25 |
print(f"Using devide: {self.device}")
|
26 |
|
27 |
+
model = timm.create_model(model_name, pretrained=False)
|
28 |
|
29 |
# if not torch.cuda.is_available():
|
30 |
# model_ckpt = torch.load(model_path, map_location=torch.device("cpu"))
|
|
|
38 |
|
39 |
self.model = _load_model(model_name, model_path)
|
40 |
|
41 |
+
self.transforms = T.Compose([T.Resize((256, 256)),
|
42 |
T.ToTensor(),
|
43 |
T.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])])
|
44 |
|