Skip to content

polyspectra/cad-recode-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An attempt to reproduce "CAD Recode"

Requirements

  • Python 3.9 or higher (tested with Python 3.11)

Setup Instructions

  1. Ensure you have Python installed. You can check with:

    python --version  # Should be 3.9 or higher
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    # On Mac/Linux
    source venv/bin/activate
    
    # On Windows
    # venv\Scripts\activate
  4. Install required packages:

    pip install -r requirements.txt

Note: Apple Silicon (M1/M2/M3) users may encounter issues with OpenCascade and VTK dependencies. This is a known limitation when working with CadQuery on ARM-based Macs. Consider using an x86 machine or a cloud environment for development.

  1. Set up Jupyter kernel:

    python -m ipykernel install --user --name=recode --display-name="ReCode"
  2. Login to Hugging Face (recommended for better download rates):

    huggingface-cli login
    # You'll need a token from: https://huggingface.co/settings/tokens
  3. Download the dataset:

    # Create datasets directory (it's gitignored)
    mkdir datasets
    
    # Download the dataset
    huggingface-cli download --repo-type dataset filapro/cad-recode --local-dir datasets/cad-recode
  4. Open Jupyter notebook and select the "ReCode" kernel

Development

The project uses:

  • Python virtual environment (directory: venv/)
  • Hugging Face datasets library
  • Jupyter notebooks

About

an attempt to reproduce "CAD-Recode"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published