Thouph commited on
Commit
155e6b4
1 Parent(s): b606f3d

Upload 7704_inference.py

Browse files
Files changed (1) hide show
  1. 7704_inference.py +0 -2
7704_inference.py CHANGED
@@ -1,13 +1,11 @@
1
  import json
2
  import time
3
  from PIL import Image
4
- from timm.data import resolve_data_config
5
  import torch
6
  from torchvision.transforms import transforms
7
 
8
  model = torch.load('model.pth').to("cuda")
9
  model.eval()
10
- config = resolve_data_config({}, model=model)
11
  transform = transforms.Compose([
12
  transforms.Resize((224, 224)),
13
  transforms.ToTensor(),
 
1
  import json
2
  import time
3
  from PIL import Image
 
4
  import torch
5
  from torchvision.transforms import transforms
6
 
7
  model = torch.load('model.pth').to("cuda")
8
  model.eval()
 
9
  transform = transforms.Compose([
10
  transforms.Resize((224, 224)),
11
  transforms.ToTensor(),