The code for FlairGPT: Functional Layouts for Aesthetic Interior Realisations
Links:
Install the requirements
cd Scene_Synthesis
conda create -n flairgpt
conda activate flairgpt
conda install pip
pip install -r requirements.txtCreate the 'hidden.env' file
OPENAI_API_KEY = "YOUR_OPENAI_KEY"There are two options for running the code:
- run_scene_synthesis.ipynb
- scene_synthesis.py
We recommend using the notebook (run_scene_synthesis.ipynb) if you would like to see outputs of constraints/re-run cells that fail due to LLM errors (hallucinations etc), or to rerun optimisations that give suboptimal results. Otherwise, run the .py file.
For both options, please edit scene_descriptor to be your desired room description.
The output can be found in Scene_Synthesis/Result_txt. Please note that object retrieval is not implemented in this work.
