CoolFace
Apppublic

Abhiroopvanaone/ML-CADquery

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ”ง GLM-4.5V CAD Generator

Generate CADQuery Python code from 3D CAD model images using GLM-4.5V vision-language models!

Features

  • โ€”Multiple GLM-4.5V variants: AWQ, FP8, and full precision models
  • โ€”Advanced prompting: Simple, detailed, and chain-of-thought styles
  • โ€”Real-time generation: GPU-accelerated inference on Zero GPU
  • โ€”Code extraction: Automatic cleaning and formatting of generated CADQuery code
  • โ€”Evaluation ready: Compatible with existing VSR and IoU metrics

Usage

  1. 1.Upload a clear 3D CAD model image
  2. 2.Select your preferred GLM-4.5V model variant
  3. 3.Choose a prompting style
  4. 4.Click "Generate CADQuery Code"
  5. 5.Copy the generated Python code and run it locally

Models

  • โ€”GLM-4.5V-AWQ: Fastest startup, good quality
  • โ€”GLM-4.5V-FP8: Balanced speed and quality
  • โ€”GLM-4.5V: Best quality, slower startup

Tips

  • โ€”Use clear, well-lit CAD images for best results
  • โ€”Simple geometric shapes work better than complex assemblies
  • โ€”Try different prompt styles if first attempt isn't satisfactory
  • โ€”Generated code may need minor adjustments for complex geometries

Technical Details

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.