Spaces:
Build error
Build error
metadata
title: DeepCAD Generator
emoji: π§
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.47.2
app_file: app.py
pinned: false
license: mit
python_version: 3.9
π§ DeepCAD: Deep Generative Network for CAD Models
Generate Computer-Aided Design (CAD) models using deep learning! This Space implements the DeepCAD model from the ICCV 2021 paper.
π About
DeepCAD is a deep generative network that can automatically generate novel, high-quality CAD models. This Space provides an interactive demo where you can:
- π² Generate random CAD models
- π― Control generation with seed values for reproducibility
- π‘οΈ Adjust temperature to control creativity
- π View 2D visualizations of generated models
- πΎ Download H5 files for further processing
π How to Use
- Set Random Seed (0-10000): Controls which random model is generated
- Adjust Temperature (0.1-2.0):
- Lower values (0.5-0.8) = more conservative, structured designs
- Higher values (1.2-2.0) = more creative, varied designs
- Click "Generate CAD Model" to create a new design
- Download the H5 file to use with full DeepCAD tools
π What You'll See
The visualization shows:
- 2D Projection: Simplified view of CAD operations
- Command Distribution: Histogram of operation types
- Parameter Statistics: Key metrics about the generated model
Note: This is a 2D simplified visualization. For full 3D STEP file export, download the H5 file and use the original DeepCAD repository tools.
π¬ Technical Details
Model Architecture
- Latent Dimension: 256
- Commands: 60 CAD operations per sequence
- Arguments: 256 parameters per command
- Device: Automatic CPU/GPU detection
Generation Process
- Sample a random latent vector (controlled by seed)
- Scale by temperature for variation
- Decode through neural network
- Output vectorized CAD sequence
πΎ Using the Generated H5 Files
The H5 files are compatible with the original DeepCAD tools: ```bash