bhavibhatt commited on
Commit
ee2378c
·
verified ·
1 Parent(s): 7043c75

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +52 -0
  2. config.json +13 -0
  3. requirements.txt +4 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - computer-vision
5
+ - image-segmentation
6
+ - welding
7
+ - weld-inspection
8
+ - yolo
9
+ ---
10
+
11
+ # WeldVision Ensemble
12
+
13
+ Four-model YOLO segmentation ensemble for weld-surface defect inspection.
14
+
15
+ ## Models
16
+
17
+ - `weights/best.pt`
18
+ - `weights/best_v0.pt`
19
+ - `weights/crack_specialist.pt`
20
+ - `weights/spatters_specialist.pt`
21
+
22
+ Inference runs **locally** after downloading the weights from the Hugging Face
23
+ Hub. No Hugging Face Inference Endpoint is required.
24
+
25
+ ## Install
26
+
27
+ ```bash
28
+ pip install ultralytics huggingface_hub opencv-python-headless numpy
29
+ ```
30
+
31
+ ## Use
32
+
33
+ ```python
34
+ from weldvision import WeldVision
35
+
36
+ model = WeldVision.from_pretrained(
37
+ "bhavibhatt/weldvision-ensemble"
38
+ )
39
+
40
+ result = model.predict("weld.jpg")
41
+
42
+ print(result)
43
+ ```
44
+
45
+ The first call downloads and caches the four weights. Subsequent calls reuse the
46
+ local Hugging Face cache.
47
+
48
+ ## Important
49
+
50
+ This is a proof-of-concept weld surface inspection system. The score and
51
+ PASS/REVIEW/FAIL rules are prototype decision logic and are not welding-code
52
+ acceptance criteria or a substitute for qualified human inspection.
config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "WeldVision-Ensemble",
3
+ "version": "1.0",
4
+ "weights": [
5
+ "weights/best.pt",
6
+ "weights/best_v0.pt",
7
+ "weights/crack_specialist.pt",
8
+ "weights/spatters_specialist.pt"
9
+ ],
10
+ "confidence": 0.25,
11
+ "ensemble_mask_iou": 0.5,
12
+ "imgsz": 640
13
+ }
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ ultralytics==8.4.126
2
+ huggingface_hub
3
+ opencv-python-headless
4
+ numpy