ça build?
Browse files
TractionModel.py → app/TractionModel.py
RENAMED
File without changes
|
app.py → app/app.py
RENAMED
@@ -1,22 +1,9 @@
|
|
1 |
import torch
|
2 |
import torchvision
|
3 |
-
from PIL import Image
|
4 |
-
import cv2
|
5 |
-
import numpy as np
|
6 |
-
import matplotlib.pyplot as plt
|
7 |
-
|
8 |
import TractionModel as plup
|
9 |
-
|
10 |
-
import random
|
11 |
-
from tqdm import tqdm
|
12 |
-
|
13 |
import gradio as gr
|
14 |
|
15 |
|
16 |
-
def snap(image):
|
17 |
-
return np.flipud(image)
|
18 |
-
|
19 |
-
|
20 |
def init_model(path):
|
21 |
model = plup.create_model()
|
22 |
model = plup.load_weights(model, path)
|
|
|
1 |
import torch
|
2 |
import torchvision
|
|
|
|
|
|
|
|
|
|
|
3 |
import TractionModel as plup
|
|
|
|
|
|
|
|
|
4 |
import gradio as gr
|
5 |
|
6 |
|
|
|
|
|
|
|
|
|
7 |
def init_model(path):
|
8 |
model = plup.create_model()
|
9 |
model = plup.load_weights(model, path)
|
model-score0.96-f1_10.9-f1_20.99.pt → app/model-score0.96-f1_10.9-f1_20.99.pt
RENAMED
File without changes
|
requirement.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
torch 1.8.1
|
2 |
+
torchvision 0.9.1
|