Lonelyguyse1 commited on
Commit
627d324
·
verified ·
1 Parent(s): d76ad9e

Upload Halide MiniCPM-V 4.6 merged checkpoint from minicpm-v-4.6-merged-v7-crack-curriculum-r1-ckpt625

Browse files
Files changed (2) hide show
  1. README.md +31 -33
  2. model-00001-of-00002.safetensors +1 -1
README.md CHANGED
@@ -1,55 +1,53 @@
1
- ---
2
  license: apache-2.0
3
  base_model: openbmb/MiniCPM-V-4.6
4
  library_name: transformers
5
  pipeline_tag: image-text-to-text
6
  tags:
7
  - film
8
- - analog-photography
9
- - image-to-text
10
  - defect-detection
11
  - minicpm-v
12
  ---
13
 
14
  # Halide Vision
15
 
16
- Fine-tuned MiniCPM-V 4.6 checkpoint for Project Halide, an edge-native diagnostic engine for analog film scans.
17
-
18
- Owner: [Lonelyguyse1](https://huggingface.co/Lonelyguyse1)
19
-
20
- Project Space: <https://huggingface.co/spaces/Lonelyguyse1/project-halide>
21
-
22
- ## Intended Use
23
-
24
- This model is used by Project Halide to extract visible defect candidates from analog film scans. It emits JSON bounding boxes for these labels:
25
 
26
- - `dust`
27
- - `dirt`
28
- - `scratch`
29
- - `long_hair`
30
- - `short_hair`
31
 
32
- The downstream Halide app validates the JSON, drops invalid or low-confidence boxes, merges near duplicates, and sends the cleaned evidence to Nemotron-Mini-4B-Instruct for diagnostic reasoning.
33
-
34
- ## Runtime Notes
35
 
36
  - Base model: `openbmb/MiniCPM-V-4.6`
37
- - Recommended image setting: `downsample_mode="4x"`
38
- - Runtime target: GPU-backed Gradio Space, Modal GPU job, or another CUDA runtime
39
- - Local CPU inference is intentionally blocked in the Halide app
 
40
 
41
- ## Artifacts
42
 
43
- This repo contains the merged checkpoint and a llama.cpp-oriented GGUF artifact:
44
 
45
- - `model-00001-of-00002.safetensors`
46
- - `model-00002-of-00002.safetensors`
47
- - `minicpm-v-4.6-merged-v3-q4_k_m.gguf`
 
 
 
 
48
 
49
- ## Limitations
50
-
51
- This is a small-data domain adaptation model. It should be used as an inspection aid, not as a final archival judgment. Natural image content can resemble scratches or hair-like artifacts, so Project Halide uses prompt-level non-film rejection, schema validation, confidence filtering when available, and diagnosis text that keeps uncertainty visible.
52
 
53
- ## License
 
54
 
55
- Apache 2.0.
 
 
 
1
+ ---
2
  license: apache-2.0
3
  base_model: openbmb/MiniCPM-V-4.6
4
  library_name: transformers
5
  pipeline_tag: image-text-to-text
6
  tags:
7
  - film
8
+ - computer-vision
 
9
  - defect-detection
10
  - minicpm-v
11
  ---
12
 
13
  # Halide Vision
14
 
15
+ Halide Vision is a MiniCPM-V 4.6 checkpoint fine-tuned for analog film-scan
16
+ defect extraction. It is maintained by
17
+ [Lonelyguyse1](https://huggingface.co/Lonelyguyse1) for
18
+ [Project Halide](https://github.com/Lonelyguyse1/Project-Halide).
 
 
 
 
 
19
 
20
+ The model emits JSON defect proposals for dust, dirt, scratches, hair-like
21
+ surface contamination, emulsion damage, chemical stains, and light leaks. The
22
+ Project Halide runtime validates the JSON schema, removes low-confidence or
23
+ duplicate boxes, and uses tiled inspection when large scans hide thin crack
24
+ networks at full-frame scale.
25
 
26
+ ## Training Summary
 
 
27
 
28
  - Base model: `openbmb/MiniCPM-V-4.6`
29
+ - Training method: LoRA fine-tuning with LLaMA-Factory, merged for inference
30
+ - Curriculum: FilmDamageSimulator annotations, procedural film-defect positives,
31
+ hard clean negatives, and a v7 crack curriculum
32
+ - Held-out private negatives: used only for evaluation, not for training
33
 
34
+ ## Held-Out Smoke Result
35
 
36
+ Final v7 checkpoint with 960 px tiled fallback:
37
 
38
+ | Sample | Expected surface condition | Result |
39
+ | --- | --- | --- |
40
+ | negative1 | Long scratches across portrait | 8 defects |
41
+ | negative2 | Abraded emulsion and dirt patches | 9 defects |
42
+ | negative3 | Severe emulsion damage and debris | 6 defects |
43
+ | negative4 | Near-clean hard negative | 0 defects |
44
+ | negative5 | Broad lifted crack network | 45 defects |
45
 
46
+ ## Runtime Notes
 
 
47
 
48
+ This model is intended to run inside Project Halide with GPU inference. The
49
+ runtime refuses local CPU model inference and does not call cloud inference APIs.
50
 
51
+ Use the model as an inspection aid. It can over-box broad damage regions, and
52
+ film metadata should be treated as context unless verified by notes or edge
53
+ marks.
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5b9a11d760a6f71ce7846cc710ae45bde0668909be1ca2361280fb928d287977
3
  size 1995700560
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eaaf0f204600222d235e7d3e2afbbe47514ae2fdcfb19418f4f9e4206ee65e87
3
  size 1995700560