LayoutGPT
Official repo for NeurIPS 2023 paper "LayoutGPT: Compositional Visual Planning and Generation with Large Language Models"
File Explorer
Download Latest Version (.zip)- 10043.gif
- 13439.gif
- 152170.gif
- 2050.gif
- 28445.gif
- 326.gif
- 863.gif
- 9583.gif
- teaser.jpg
- bedroom_threed_front_splits.csv
- bedroom_threed_front_splits_new.csv
- bedroom_threed_front_splits_regular.csv
- bedrooms_config.yaml
- bedrooms_eval_config.yaml
- black_list.txt
- dining_rooms_config.yaml
- dining_rooms_eval_config.yaml
- diningroom_threed_front_splits.csv
- invalid_threed_front_rooms.txt
- libraries_config.yaml
- libraries_eval_config.yaml
- library_threed_front_splits.csv
- living_rooms_config.yaml
- living_rooms_eval_config.yaml
- livingroom_threed_front_splits.csv
- livingroom_threed_front_splits_new.csv
- livingroom_threed_front_splits_regular.csv
- floor_00001.jpg
- floor_00002.jpg
- floor_00003.jpg
- floor_00004.jpg
- floor_00005.jpg
- floor_00006.jpg
- floor_00007.jpg
- floor_00003.jpg
- floor_plan_texture_images_references
- room_1.gif
- room_2.gif
- room_3.gif
- __init__.py
- base.py
- common.py
- splits_builder.py
- threed_front.py
- threed_front_dataset.py
- threed_front_scene.py
- threed_future_dataset.py
- utils.py
- __init__.py
- mmd.py
- __init__.py
- autoregressive_transformer.py
- base.py
- bbox_output.py
- feature_extractors.py
- frozen_batchnorm.py
- hidden_to_output.py
- __init__.py
- stats_logger.py
- utils.py
- compute_fid_scores.py
- evaluate_kl_divergence_object_category.py
- failure_correction.py
- generate_scenes.py
- object_suggestions.py
- pickle_threed_future_dataset.py
- preprocess_data.py
- render_from_files.py
- render_threedfront_scene.py
- render_with_blender.py
- scene_completion.py
- synthetic_vs_real_classifier.py
- train_network.py
- training_utils.py
- utils.py
- environment.yaml
- LICENSE
- README.md
- setup.py
- bedroom_splits.json
- livingroom_splits.json
- counting.train.json
- counting.val.json
- train.counting.vit-l-14.visual.npz
- spatial.train.json
- spatial.val.json
- train.spatial.vit-l-14.visual.npz
- test.yaml
- val.yaml
- minival.yaml
- val.yaml
- AerialMaritimeDrone_large.yaml
- Aquarium_Aquarium_Combined.v2-raw-1024.coco.yaml
- CottontailRabbits.yaml
- EgoHands_generic.yaml
- NorthAmericaMushrooms_North_American_Mushrooms.v1-416x416.coco.yaml
- Packages_Raw.yaml
- PascalVOC.yaml
- pistols_export.yaml
- pothole.yaml
- Raccoon_Raccoon.v2-raw.coco.yaml
- ShellfishOpenImages_raw.yaml
- thermalDogsAndPeople.yaml
- VehiclesOpenImages_416x416.yaml
- _all.json
- AerialMaritimeDrone_large.yaml
- AerialMaritimeDrone_tiled.yaml
- AmericanSignLanguageLetters_American_Sign_Language_Letters.v1-v1.coco.yaml
- Aquarium_Aquarium_Combined.v2-raw-1024.coco.yaml
- BCCD_BCCD.v3-raw.coco.yaml
- boggleBoards_416x416AutoOrient_export_.yaml
- brackishUnderwater_960x540.yaml
- ChessPieces_Chess_Pieces.v23-raw.coco.yaml
- CottontailRabbits.yaml
- dice_mediumColor_export.yaml
- DroneControl_Drone_Control.v3-raw.coco.yaml
- EgoHands_generic.yaml
- EgoHands_specific.yaml
- HardHatWorkers_raw.yaml
- MaskWearing_raw.yaml
- MountainDewCommercial.yaml
- NorthAmericaMushrooms_North_American_Mushrooms.v1-416x416.coco.yaml
- openPoetryVision_512x512.yaml
- OxfordPets_by-breed.yaml
- OxfordPets_by-species.yaml
- Packages_Raw.yaml
- PascalVOC.yaml
- pistols_export.yaml
- PKLot_640.yaml
- plantdoc_100x100.yaml
- plantdoc_416x416.yaml
- pothole.yaml
- Raccoon_Raccoon.v2-raw.coco.yaml
- selfdrivingCar_fixedLarge_export_.yaml
- ShellfishOpenImages_raw.yaml
- ThermalCheetah.yaml
- thermalDogsAndPeople.yaml
- UnoCards_raw.yaml
- VehiclesOpenImages_416x416.yaml
- websiteScreenshots.yaml
- WildfireSmoke.yaml
- _coco.yaml
- glip_A_Swin_T_O365.yaml
- glip_Swin_L.yaml
- glip_Swin_T_O365.yaml
- glip_Swin_T_O365_GoldG.yaml
- odinw_benchmark35_knowledge_and_gpt3.yaml
- odinw_knowledge.yaml
- odinw_knowledge_with_prompt.yaml
- run_inference_odinw_knowledge_benchmark35.yaml
- __init__.py
- defaults.py
- paths_catalog.py
- nms_cpu.cpp
- ROIAlign_cpu.cpp
- soft_nms.cpp
- vision.h
- deform_conv_cuda.cu
- deform_conv_kernel_cuda.cu
- deform_pool_cuda.cu
- deform_pool_kernel_cuda.cu
- ml_nms.cu
- nms.cu
- ROIAlign_cuda.cu
- ROIPool_cuda.cu
- SigmoidFocalLoss_cuda.cu
- vision.h
- deform_conv.h
- deform_pool.h
- ml_nms.h
- nms.h
- ROIAlign.h
- ROIPool.h
- SigmoidFocalLoss.h
- vision.cpp
- __init__.py
- coco_eval.py
- __init__.py
- flickr_eval.py
- _change_lvis_annotation.py
- lvis.py
- lvis_eval.py
- __init__.py
- od_eval.py
- __init__.py
- vg_eval.py
- __init__.py
- voc_eval.py
- __init__.py
- box_aug.py
- od_eval.py
- __init__.py
- background.py
- box_label_loader.py
- caption.py
- coco.py
- coco_dt.py
- concat_dataset.py
- custom_distributed_sampler.py
- duplicate_dataset.py
- flickr.py
- gqa.py
- imagenet.py
- list_dataset.py
- lvis.py
- mixed.py
- mixup.py
- modulated_coco.py
- object365.py
- od_to_grounding.py
- phrasecut.py
- pseudo_data.py
- refexp.py
- tsv.py
- vg.py
- voc.py
- __init__.py
- distributed.py
- grouped_batch_sampler.py
- iteration_based_batch_sampler.py
- __init__.py
- build.py
- transforms.py
- __init__.py
- build.py
- collate_batch.py
- __init__.py
- alter_trainer.py
- evolution.py
- inference.py
- predictor.py
- predictor_glip.py
- singlepath_trainer.py
- stage_trainer.py
- trainer.py
- __init__.py
- batch_norm.py
- deform_conv.py
- deform_pool.py
- dropblock.py
- dyhead.py
- dyrelu.py
- evonorm.py
- iou_loss.py
- misc.py
- nms.py
- roi_align.py
- roi_pool.py
- se.py
- set_loss.py
- sigmoid_focal_loss.py
- smooth_l1_loss.py
- __init__.py
- bifpn.py
- blocks.py
- efficientdet.py
- efficientnet.py
- fbnet.py
- fpn.py
- mixer.py
- ops.py
- resnet.py
- swint.py
- swint_v2.py
- swint_v2_vl.py
- swint_vl.py
- __init__.py
- generalized_rcnn.py
- generalized_vl_rcnn.py
- __init__.py
- backbone.py
- bert_model.py
- bpe_simple_vocab_16e6.txt.gz
- build.py
- clip_model.py
- hfpt_tokenizer.py
- rnn_model.py
- simple_tokenizer.py
- test_clip_tokenizer.py
- word_utils.py
- __init__.py
- box_head.py
- inference.py
- loss.py
- roi_box_feature_extractors.py
- roi_box_predictors.py
- inference.py
- keypoint_head.py
- loss.py
- roi_keypoint_feature_extractors.py
- roi_keypoint_predictors.py
- __init__.py
- hourglass.py
- inference.py
- loss.py
- mask_head.py
- roi_mask_feature_extractors.py
- roi_mask_predictors.py
- __init__.py
- __init__.py
- anchor_generator.py
- atss.py
- dyhead.py
- fcos.py
- inference.py
- loss.py
- modeling_bert.py
- retina.py
- rpn.py
- transformer.py
- vldyhead.py
- .DS_Store
- __init__.py
- balanced_positive_negative_sampler.py
- box_coder.py
- make_layers.py
- matcher.py
- poolers.py
- registry.py
- utils.py
- __init__.py
- build.py
- lr_scheduler.py
- __init__.py
- bounding_box.py
- boxlist_ops.py
- image_list.py
- keypoint.py
- segmentation_mask.py
- __init__.py
- amp.py
- big_model_loading.py
- c2_model_loading.py
- checkpoint.py
- collect_env.py
- comm.py
- cv2_util.py
- dist.py
- ema.py
- env.py
- flops.py
- fuse_helper.py
- imports.py
- logger.py
- mdetr_dist.py
- metric_logger.py
- miscellaneous.py
- model_serialization.py
- model_zoo.py
- pretrain_model_loading.py
- README.md
- registry.py
- shallow_contrastive_loss_helper.py
- stats.py
- __init__.py
- convert_cityscapes_to_coco.py
- instances2dict_with_polygons.py
- eval_all.py
- finetune.py
- test_grounding_net.py
- test_net.py
- train_net.py
- visualize_grounding_net.py
- CODE_OF_CONDUCT.md
- DATA.md
- eval_counting.py
- eval_spatial.py
- LICENSE
- README.md
- SECURITY.md
- setup.py
- SUPPORT.md
- coco2017K.yaml
- flickr_text.yaml
- flickr_text_image.yaml
- __init__.py
- base_dataset.py
- base_dataset_kp.py
- catalog.py
- concat_dataset.py
- dataset_kp.py
- tsv.py
- tsv_dataset.py
- utils.py
- Dockerfile
- __init__.py
- keypoint_grounding_tokinzer_input.py
- text_grounding_tokinzer_input.py
- text_image_grounding_tokinzer_input.py
- __init__.py
- base.py
- imagenet.py
- imagenet_clsidx_to_label.txt
- imagenet_train_hr_indices.p
- imagenet_val_hr_indices.p
- index_synset.yaml
- lsun.py
- __init__.py
- classifier.py
- ddim.py
- ddpm.py
- ldm.py
- plms.py
- autoencoder.py
- __init__.py
- keypoint_grounding_net.py
- model.py
- openaimodel.py
- text_grounding_net.py
- text_image_grounding_net.py
- util.py
- __init__.py
- distributions.py
- __init__.py
- modules.py
- modules_backup.py
- __init__.py
- bsrgan.py
- bsrgan_light.py
- utils_image.py
- __init__.py
- contperceptual.py
- vqperceptual.py
- attention.py
- ema.py
- x_transformer.py
- lr_scheduler.py
- util.py
- distributed.py
- gligen_inference.py
- gligen_layout_counting.py
- gligen_layout_spatial.py
- inpaint_mask_func.py
- main.py
- projection_matrix
- trainer.py
- gpt4.bedroom.k-similar.k_8.px_regular.json
- gpt4.livingroom.k-similar.k_4.px_regular.json
- gpt4.counting.k-similar.k_8.px_64.json
- llama-13b.counting.k-similar.k_8.px_256.json
- gpt4.spatial.k-similar.k_8.px_64.json
- llama-13b.spatial.k-similar.k_8.px_256.json
- .gitignore
- environment.yml
- eval_counting_layout.py
- eval_scene_layout.py
- eval_spatial_layout.py
- LICENSE
- parse_llm_output.py
- README.md
- requirements.txt
- run_layoutgpt_2d.py
- run_layoutgpt_3d.py
- utils.py
# Installation Guide
1. Get the code
git clone https://github.com/UCSB-AI/LayoutGPT
Downloads the entire project code from GitHub to your computer.
cd LayoutGPT
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
docker build -f gligen/env_docker/Dockerfile -t layoutgpt .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 layoutgpt
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. Python
EasyPrerequisites
pip install -r requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
pip install -e .
Installs the Python libraries listed in requirements.txt (or similar).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
