AD-Copilot / app.py

Commit History

fix: PCB use pcb3/bad009 (Wrong Position), candle prompt with numbered labels and total count
6e9b876
Running
verified

jiang-cc commited on

fix: verified examples - leather cut (precise bbox) + candle counting (4 perfect bboxes)
5e61a2b
verified

jiang-cc commited on

fix: PCB use pcb4/bad/001 (accurate missing part bbox), verified visualization
e5cdeb5
verified

jiang-cc commited on

fix: use bottle broken_large for localization (accurate bbox), keep screw/000 for counting (5 individual bboxes)
ca3122e
verified

jiang-cc commited on

fix: duration 5s/10s, stable screw prompt, parse bbox_label field
aaf4dc7
verified

jiang-cc commited on

fix: load model directly to cuda like ltx-2-TURBO, enable flash_attention_2
49bfeb1
verified

jiang-cc commited on

fix: replace PCB with pcb3 (clearer defect), Run Long to 60s
b0bcd32
verified

jiang-cc commited on

feat: show GPU Load time (ZeroGPU weight transfer) separately from preprocess and generate
87fe738
verified

jiang-cc commited on

feat: show attn impl + timing breakdown; remove metal nut localization example
7923b6f
verified

jiang-cc commited on

fix: remove timing display
149160b
verified

jiang-cc commited on

fix: fallback to sdpa if flash-attn not available
ca4948e
verified

jiang-cc commited on

perf: reduce GPU duration to 15s/30s with flash_attention_2
404f743
verified

jiang-cc commited on

perf: enable flash_attention_2 for faster inference
76cda6c
verified

jiang-cc commited on

feat: two run buttons - Run (30s) for normal tasks, Run Long (60s) for counting/detection
602993e
verified

jiang-cc commited on

fix: example 5 change from duplicate cable to PCB localization
d6f65a4
verified

jiang-cc commited on

feat: replace capsule counting with screw_bag (2 screws + 3 nuts individually detected)
a49aeae
verified

jiang-cc commited on

fix: capsule counting prompt - pure count instead of bbox (model not trained for per-object detection)
5cc29ef
verified

jiang-cc commited on

perf: compress example images from 12MB to 542KB (512px JPEG)
8f56f5d
verified

jiang-cc commited on

feat: show preprocessing vs inference timing in output
dbd07aa
verified

jiang-cc commited on

feat: single-image mode, 7 examples (discrimination, description, 3x localization, counting, OCR), bbox visualization
5195a24
verified

jiang-cc commited on

fix: reduce GPU duration to 30s
2b5b08b
verified

jiang-cc commited on

fix: reduce GPU duration from 120s to 60s to save quota
0c6aff7
verified

jiang-cc commited on

feat: auto-visualize bounding boxes on test image when model outputs bbox JSON
a3b3596
verified

jiang-cc commited on

fix: simplify to single @spaces.GPU function, remove inference_mode decorator, fix type hint
46a44c9
verified

jiang-cc commited on

fix: switch from ZeroGPU to dedicated a10g-small, remove @spaces.GPU to avoid TypeError
546d962
verified

jiang-cc commited on

fix: pass file paths instead of PIL objects to ZeroGPU worker to avoid serialization TypeError
c96fed6
verified

jiang-cc commited on

fix: replace @torch .inference_mode decorator with context manager for ZeroGPU compat
9f4294d
verified

jiang-cc commited on

debug: return full traceback in output for diagnosis
6001e41
verified

jiang-cc commited on

debug: wrap predict with traceback logging to diagnose TypeError
98625fe
verified

jiang-cc commited on

fix: ZeroGPU TypeError - cast slider to int, use cuda device, copy images before resize
8391f19
verified

jiang-cc commited on

feat: 5 diverse examples - discrimination, description, localization, counting, OCR
0f68d87
verified

jiang-cc commited on

feat: diverse examples showcasing 5 capabilities + real images
f9d38f4
verified

jiang-cc commited on

fix: add torchvision, remove device_map for ZeroGPU, fix processor args
e487e3d

jiang-cc commited on

fix: use AutoModelForImageTextToText, add spaces dep
86c4571

jiang-cc commited on

Upload folder using huggingface_hub
c44bd5c
verified

jiang-cc commited on