MCPcopy Index your code
hub / github.com/Relento/lego_release

github.com/Relento/lego_release @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
763 symbols 2,273 edges 68 files 211 documented · 28%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Translating a Visual LEGO Manual to a Machine-Executable Plan

This is the PyTorch implementation for the paper:

Translating a Visual LEGO Manual to a Machine-Executable Plan teaser

Ruocheng Wang, Yunzhi Zhang, Jiayuan Mao, Chin-Yi Cheng, Jiajun Wu

In European Conference on Computer Vision (ECCV) 2022

[project]

Installation

Run the following commands to install necessary dependencies.

conda create -n lego_release python=3.9.12
conda activate lego_release
pip -r requirements.txt

You may need to manually install pytorch3d 0.5.0 according to this doc.

Evaluation

Download the evaluation datasets and model checkpoints from here, and unzip them under the root directory of the code. Then simply run

bash scripts/eval/eval_all.sh

from the root directory. Results will be saved to results/.

Training

To train our model from scratch, first download the training and validation datasets from here, and unzip them to data/datasets/synthetic_train and data/datasets/synthetic_val respectively.

After downloading the datasets, preprocess them by running

bash scripts/process_dataset.sh

Then run the script to train our model

bash scripts/train/train_mepnet.sh

You can add --wandb option in the training script for logging and visualization in wandb. We train our model on 4 Titan RTX GPUs for 5 days.

Acknowledgements

Some of our code is built on top of CycleGAN and CenterNet. If you encounter any problem, please don't hesitate to email me at rcwang@stanford.edu or open an issue.

Core symbols most depended-on inside this repo

print
called by 106
coco_related/utils.py
to
called by 83
data_generation/utils.py
_print
called by 45
tu/loggers/html_table.py
max
called by 38
coco_related/utils.py
_print
called by 29
util/html_table.py
_transpose_and_gather_feat
called by 28
models/heatmap/models/utils.py
_gather_feat
called by 27
models/heatmap/models/utils.py
update
called by 25
models/utils.py

Shape

Function 346
Method 329
Class 88

Languages

Python100%

Modules by API surface

bricks/brick_info.py100 symbols
models/heatmap/models/losses.py35 symbols
coco_related/utils.py32 symbols
tu/configs.py31 symbols
models/heatmap/models/networks/hourglass.py29 symbols
models/networks.py28 symbols
models/heatmap/lego_hg.py27 symbols
tu/loggers/html_table.py23 symbols
data_generation/utils.py23 symbols
models/utils.py19 symbols
models/heatmap/utils/image.py19 symbols
models/base_model.py19 symbols

For agents

$ claude mcp add lego_release \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page