DeepCAD / README.md
turiya-ai's picture
Update README.md
1ca45f1 verified
|
raw
history blame
2.22 kB
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.

DeepCAD Teaser

πŸ“– 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

  1. Set Random Seed (0-10000): Controls which random model is generated
  2. 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
  3. Click "Generate CAD Model" to create a new design
  4. 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

  1. Sample a random latent vector (controlled by seed)
  2. Scale by temperature for variation
  3. Decode through neural network
  4. Output vectorized CAD sequence

πŸ’Ύ Using the Generated H5 Files

The H5 files are compatible with the original DeepCAD tools: ```bash