Spaces:
Running
on
Zero
Running
on
Zero
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,50 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: GLM-4.5V CAD Generator
|
| 3 |
+
emoji: 🔧
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
hardware: zero-gpu
|
| 12 |
+
python_version: 3.11
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# 🔧 GLM-4.5V CAD Generator
|
| 16 |
+
|
| 17 |
+
Generate CADQuery Python code from 3D CAD model images using GLM-4.5V vision-language models!
|
| 18 |
+
|
| 19 |
+
## Features
|
| 20 |
+
|
| 21 |
+
- **Multiple GLM-4.5V variants**: AWQ, FP8, and full precision models
|
| 22 |
+
- **Advanced prompting**: Simple, detailed, and chain-of-thought styles
|
| 23 |
+
- **Real-time generation**: GPU-accelerated inference on Zero GPU
|
| 24 |
+
- **Code extraction**: Automatic cleaning and formatting of generated CADQuery code
|
| 25 |
+
- **Evaluation ready**: Compatible with existing VSR and IoU metrics
|
| 26 |
+
|
| 27 |
+
## Usage
|
| 28 |
+
|
| 29 |
+
1. Upload a clear 3D CAD model image
|
| 30 |
+
2. Select your preferred GLM-4.5V model variant
|
| 31 |
+
3. Choose a prompting style
|
| 32 |
+
4. Click "Generate CADQuery Code"
|
| 33 |
+
5. Copy the generated Python code and run it locally
|
| 34 |
+
|
| 35 |
+
## Models
|
| 36 |
+
|
| 37 |
+
- **GLM-4.5V-AWQ**: Fastest startup, good quality
|
| 38 |
+
- **GLM-4.5V-FP8**: Balanced speed and quality
|
| 39 |
+
- **GLM-4.5V**: Best quality, slower startup
|
| 40 |
+
|
| 41 |
+
## Tips
|
| 42 |
+
|
| 43 |
+
- Use clear, well-lit CAD images for best results
|
| 44 |
+
- Simple geometric shapes work better than complex assemblies
|
| 45 |
+
- Try different prompt styles if first attempt isn't satisfactory
|
| 46 |
+
- Generated code may need minor adjustments for complex geometries
|
| 47 |
+
|
| 48 |
+
## Technical Details
|
| 49 |
+
|
| 50 |
+
This app uses Hugging Face Zero GPU for serverless GPU allocation and the latest GLM-4.5V vision-language models for image-to-code generation. The generated CADQuery code follows standard patterns with proper imports and result variables.
|