Someshfengde commited on
Commit
1c610d5
1 Parent(s): 38a21f4

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. pytorch_model.bin +2 -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:5431a638f8d44f1ea1d67cd65f9d46e05c28eb34b35d697b9739df9beb7fc4d2
3
- size 118714633
 
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, num_classes=number_of_categories, pretrained=False)
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((299, 299)),
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