Code Monkey home page Code Monkey logo

3dscenegraph's Introduction

LLM Goal-Finding in 3D Scene Graph

This is the code repo for the project that test indoor goal-finding capabilities in 3D scene graphs

Install

pip install -r requirements.txt

Setup OAI API

export OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxx

Data

For original 3D scene graph data, visit https://github.com/StanfordVL/3DSceneGraph

But I have processed the data including all provided partitions medium_automated, tiny_automated, tiny_verified under the directory scene_text so you do not have to download extra data for running this repo.

Repo Structure

The following are brief discriptions of some important files or directories:

  • graphs.py: the file responsible for creating affinity graph for each scene.
  • graph_sim.py: the main file for evaluation. Each graph is treated as a simulator for text navigation.
  • llm_call.py: utility code for calling LLMs.
  • llm_correct.py: code for creating self-correction examples for finetuning.
  • finetun.py: code for running LLM finetune.
  • logs: log files for each evaluation run. Subdirectory names indicate their split and LLM model name.
  • finetune_files: prepared data for finetuning LLMs.

Evaluation

Evaluation with LLMs

Run

python graph_sim.py --llm_eval

There are opions like split_name, llm_model, n_samples_per_scene, n_neighbors that you can alter. Eval results can be found in logs directory.

Interactive Mode

You could run

python graph_sim.py --interactive

to enter a text interactive mode. The output will show the gt shortest path length and trajectory versus user shortest path length and trajectory. You could also run

python dynamic_interactive_panel.py

to enter a diagram interactive mode. The results would show at generate_floor_plan_diagram/results.

3dscenegraph's People

Contributors

jiadingfang avatar tllokn avatar ir0 avatar sherif-abdelkarim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.