LogoLogo
  • Seahaven
    • Seahaven Documentation
      • Setup Your Account
      • Getting Started
        • Prepare Your Models
          • Name Objects
          • Add Camera Curve to a scene
        • Import 3D Assets
        • Colormap Editor
        • Relationship Editor
          • Start Workflow
            • Workflow
            • Relationship
              • Relationship (Array)
          • Relationships
            • Placements
            • Locate
            • Rotate
            • Neighbour
            • Drop
            • Center
            • Scale
            • Align
            • Attach
            • Put
        • Simulation Editor
          • Workflow
            • Category Visibility Threshold
          • Scene
            • 3D Asset
            • HDRI Lighting
            • Physical Sun/Sky
            • Ground Plane
            • Interior Scene
            • Room Type
          • Relationships
            • Load Relationships
          • Camera
            • Camera Configuration
            • Animated Track Camera
            • Curve-Based Camera
            • Room-Perimeter Camera
              • Category
            • Room-Based Camera
              • Additional Cameras
            • Position Camera
              • Conical
              • Spherical
              • Cubic
            • Orientation
              • Calculate Area of Interest
              • Point
            • Perspectival Camera Properties
            • Fisheye Camera Properties
          • Manipulators
            • Camera Manipulators
              • Override Camera Target
              • Override Camera Position
              • Near IR (Approximation)
              • Track Camera to Object
                • Camera Path Settings
            • Light Manipulators
              • Randomize HDRI Background
              • Modify Light Strength
              • Place Lights
                • Light Object (Bbox)
                • Light Object (Polar)
            • Material Manipulators
              • Randomize Material Color
              • Randomize Material Properties
              • Swap Materials
                • Import Material
                • Replace Material
                • Weighted Material
            • Delete Objects by Name
            • Pose Objects
              • Pose Set
              • Pose Pair
            • Constrain Object
            • Add Particle System
            • Load Object Along Curve
            • Replace
              • View settings
              • Load child object
          • Output
            • Additional Annotation Settings
            • Color Map
            • Camera Ex/Intrinsics
            • Keypoints
            • Normal Map
            • Depth Map
          • Post-Processing
            • Visualize COCO Annotations
            • Shot Noise
            • Glare
            • Disable shadows
        • Running Simulation
        • Save and Import
    • Seahaven Tutorials
    • Errors and Alerts
  • Simulation Manager
    • Simulation Manager
  • Simulation API
    • Simulation Structure
      • Sample Configuration
    • Modules
      • Structure Modules
        • Generator Class
          • generator.Room
            • Submodule: RoomTextureLoader
            • Submodule: RoomLightLoader
            • How To Query Room Properties
            • Sample Room Configuration
        • Loader Class
          • loader.ObjectLoader
      • Placement Modules
        • Placement Class
          • placement.PlacementHandler
            • Placement Rules
              • Settings
      • Lighting Modules
        • Lighting Class
          • lighting.HdriLoader
          • lighting.LightLoader
      • Camera Modules
        • Camera Class
          • camera.CameraSampler
          • camera.RoomCamera
            • Submodule: proximity_checks
            • Submodule: default_cam_param
      • Output Modules
        • Renderer Class
          • renderer.MultiRenderer
            • Submodule: RgbRenderer
            • Submodule: InstanceRenderer
            • Submodule: SemanticRenderer
            • Submodule: DepthRenderer
            • Submodule: BoundingBoxWriter
  • Management API
    • RESTful API
    • Python API
      • Example
    • Python API (V4 - BETA)
      • Installation
      • Merge Datasets
      • Methods
      • Dataset Analysis
      • Compression Artifacts
      • Domain Matching
      • Credentials
  • API Tutorials
    • Residential Interior Simulation
      • Upload Your Placement Rules
      • Modifying Your Camera
      • Modify Placement Rules
      • Run your Simulation
      • Tutorial Materials
        • Pipeline Configuration
        • Placement Rules
          • bedroom1.yaml
          • bedroom2.yaml
          • livingroom.yaml
          • floorPlan.yaml
Powered by GitBook
On this page
Export as PDF
  1. Simulation API
  2. Simulation Structure

Sample Configuration

{
  "version": 2,
  "global": {
    "all": {
      "temp_dir": "/seahaven_temp",
      "assets_folder": "/general/lexset/seahaven3.0/assets", # default {temp_dir}/assets
    },

  },

  "modules": [
    {
      "module": "main.Initializer",
      "config": {}
    },

    {
      "module": "generator.Room",
      "config": { 
        "multi_room_config" : "/general/lexset/seahaven3.0/multiroom/layouts/3.yaml",

        "RoomTextureLoader":{
          "textures": [
            {
              "type": "Floor", 
              "material": "Any",
            },
            {
              "type": "Wall",
              "material": "Drywall",
              "weight": 0.25
            },
            {
              "type": "Wall",
              "material": "Bricks",
              "weight": 0.25
            },
            {
              "type": "Wall",
              "material": "Concrete",
              "weight": 0.25
            },
            {
              "type": "Wall",
              "material": "Wallpaper",
              "weight": 0.25
            },
            
            {
              "type": "Moulding",
              "material": "Any"
            },
            {
              "type": "Ceiling",
              "material": "Any"
            },
            { 
              "type": "Others",
              "rename": "Lexset_Window",
              "material": "Any"
            },
            { 
              "type": "Others",
              "rename": "Lexset_Door",
              "material": "Any"
            },
            { 
              "type": "Others",
              "rename": "Lexset_Handle",
              "material": "Any"
            },
          ]
        },

        "RoomLightPlacer": {
          "use_IES_light": True,
          "preset": "grid",
          "intensity": [1.5, 2],
          "grid_size": 1.5,
        },

      }
    },

    {
      "module": "lighting.HdriLoader",
      "config": {
        "local_folder": "/general/lexset/hdris"
      }
    },

    {
      "module": "placement.PlacementHandler",
      "config": {
        "multi_room_labels": { 
            "livingroom": "/general/lexset/seahaven3.0/multiroom/labels/livingroom_coreweave.yaml",
            "bedroom": "/general/lexset/seahaven3.0/multiroom/labels/bedroom2_coreweave.yaml",
            "corridor": "/general/lexset/seahaven3.0/multiroom/labels/corridor_coreweave.yaml",

        }

      }
    },

    {
      "module": "camera.RoomCamera",
      "config": {

        "num": 1,
        "height": [1.2, 1.8],
        "default_cam_param": {
          "fov": 1.232202,
        },

        "proximity_checks": {
          "min": 1
        },

        "position_type": "corner",
        "room_name": ["livingroom", "corridor", "bedroom"]

      }
    },

    {
      "module": "renderer.MultiRenderer",
      "config": {

        "start_clean": True,
        "use_uuid": True,
        "output_dir": "output",

        "resolution_x": 1920,
        "resolution_y": 1080,

        "RgbRenderer": {
          "samples": 256,
          "denoiser": "Intel",
          "glossy_bounces": 2,
          "transmission_bounces": 2,
          "volume_bounces": 2,
          "output_dir": "output/rgb",
        },

        "InstanceRenderer":{
          "output_dir": "output/instance",
        },

        "SemanticRenderer":{
          "color_map": "examples/colormap.json",
          "output_dir": "output/semantic",
        },

        "DepthRenderer":{
          "format": "png",
          "output_dir": "output/depth",
        },

        "BoundingBoxWriter":{
          "filter_collections": ["livingroom.placed_furnitures", "bedroom.placed_furnitures", "corridor.placed_furnitures"],
          "output_dir": "output/bounding_box",
        }

      }
    },

  ]
}
PreviousSimulation StructureNextModules

Last updated 3 years ago