ferdous-alam/GenCAD
ferdous-alam/GenCAD has 3,800 GitHub stars and 465 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-07 16:48 UTC. Last push 2025-07-14.
First download the checkpoints and the dataset and put them in their respective directories.
Measured star growth
- in 24h
- +1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
GenCAD
Image-conditioned Computer-Aided Design Generation with Transformer-based Contrastive Representation and Diffusion Priors
📁 Dataset
Download from here and place it in the data/ directory.
📦 Pretrained Models
Download from here and place them in data/ckpt/.
🔧 Setup Options
First download the checkpoints and the dataset and put them in their respective directories.
Option 1: Docker (Recommended)
Clone the repo:
git clone https://github.com/ferdous-alam/GenCAD cd GenCADBuild the Docker image:
docker build -t gencad:latest .Run a script, for example training CSR:
docker run -it gencad:latest conda run -n gencad_env python train_gencad.py csr -name test -gpu 0For headless visualization (inference):
First, enter the container with GPU access and mount the appropriate folders:
docker run --gpus all \ -v $(pwd)/data/images:/app/data/images \ -v $(pwd)/assets:/app/assets \ -v $(pwd)/results:/app/results \ -it gencad:latest /bin/bashThen inside the container, run:
xvfb-run --server-args="-screen 0 2048x2048x24" python inference_gencad.py -image_path data/images -export_img
Option 2: Manual (conda + pip)
Create and activate a virtual environment with GPU support:
conda create -n gencad_env python=3.10 -y conda activate gencad_envInstall
pythonocc-coreusing conda:conda install -c conda-forge pythonocc-core=7.9.0Install the rest via pip:
pip install -r requirements.txtNow run training or inference:
python train_gencad.py csr -name test -gpu 0
🚀 Training
CSR Model
python train_gencad.py csr -name test -gpu 0
Optional checkpoint:
python train_gencad.py csr -name test -gpu 0 -ckpt "model/ckpt/ae_ckpt_epoch1000.pth"
CCIP Model
python train_gencad.py ccip -name test -gpu 0 -cad_ckpt "model/ckpt/ae_ckpt_epoch1000.pth"
Diffusion Prior
python train_gencad.py dp -name test -gpu 0 -cad_emb 'data/embeddings/cad_embeddings.h5' -img_emb 'data/embeddings/sketch_embeddings.h5'
🧪 Inference
For headless systems (e.g. servers):
xvfb-run python inference_gencad.py
🖼 STL Visualization
Convert STL to PNG:
python stl2img.py -src path/to/stl/files -dst path/to/save/images
📊 Evaluation
Coming soon.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,813 starspublic-apis/public-apis
A collective list of free APIs
497,049 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,309 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,152 stars