Henry Scheible commited on
Commit
26f78d3
·
1 Parent(s): e5d7a69

add model weights

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. model_best_epoch_4_59.62.pth +3 -0
app.py CHANGED
@@ -30,6 +30,7 @@ print("Loading resnet...")
30
  model = resnet50(weights=ResNet50_Weights.IMAGENET1K_V2)
31
  hidden_state_size = model.fc.in_features
32
  model.fc = torch.nn.Linear(in_features=hidden_state_size, out_features=2, bias=True)
 
33
  model.to("cuda")
34
 
35
  import gradio as gr
 
30
  model = resnet50(weights=ResNet50_Weights.IMAGENET1K_V2)
31
  hidden_state_size = model.fc.in_features
32
  model.fc = torch.nn.Linear(in_features=hidden_state_size, out_features=2, bias=True)
33
+ model.load_state_dict(torch.load("model_best_epoch_4_59.62.pth"))
34
  model.to("cuda")
35
 
36
  import gradio as gr
model_best_epoch_4_59.62.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8ff81d32b5d8e4d9776386e6cbbe6baada9ea7ad95584d871bac1fea0a843cd
3
+ size 94371235