JosephCatrambone commited on
Commit
5b0f0dc
·
verified ·
1 Parent(s): 5e34d05

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -3
README.md CHANGED
@@ -1,3 +1,24 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - google/efficientnet-b2
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ Detects bad crop jobs and misalignments, like screenshots from phones that should be trimmed down to relevant details.
10
+
11
+ Version 8.
12
+
13
+ Training progress: https://wandb.ai/josephc/bad_crop/overview
14
+
15
+ ## Usage:
16
+
17
+ ```python
18
+ import numpy
19
+ import onnxruntime as ort
20
+ session = ort.InferenceSession("./bad_crop.onnx")
21
+ blank = numpy.zeros((1, 3, 224, 224), dtype=numpy.float32)
22
+ out = torch.softmax(torch.tensor(session.run(["output"], {"input": blank,})[0][0]), axis=0)
23
+ print(out) # tensor([9.9941e-01, 5.8832e-04]) # Bad crop, good crop
24
+ ```