room-visualizer-v2 / visualizer.gpu.toml
github-actions[bot]
Automated Deploy: 493daa301f7f4360c6f8a09b665c70b6c12463cd
790d9ba
Raw History Blame Contribute Delete
3.03 kB
# GPU quality preset for the floor visualizer backend.
# Run with:
# VISUALIZER_CONFIG=visualizer.gpu.toml uvicorn app:app --host 0.0.0.0 --port 8002
[models]
geometry_model = "moge"
moge_model_name = "Ruicheng/moge-2-vitl-normal"
oneformer_model_name = "shi-labs/oneformer_ade20k_swin_large"
depth_model_name = "depth-anything/Depth-Anything-V2-Metric-Indoor-Large-hf"
intrinsic_model_version = "v2"
sam2_model_name = "facebook/sam2-hiera-large"
sam2_model_cfg = ""
sam2_checkpoint = ""
[runtime]
enable_depth_estimation = true
enable_moge_geometry = true
enable_plane_fit = true
enable_multi_plane_surfaces = true
enable_wall_segments = true
enable_intrinsic_shading = false
enable_shading_transfer = false
enable_fast_shadow_transfer = true
fast_shadow_max_dimension = 640
enable_sam_refinement = false
enable_floor_mask_cleanup = true
warm_start_models = true
debug_artifacts_enabled = false
inference_max_dimension = 1024
conversion_target_ms = 30000
bundle_image_format = "jpeg"
bundle_image_quality = 92
data_dir = "data"
[surface_mapping]
ransac_distance_threshold = 0.04
max_planes = 5
normal_angle_threshold_degrees = 35
normal_smoothing_kernel = 5
min_plane_pixels = 1500
edge_close_ratio = 0.009
edge_kernel_ratio = 0.006
edge_dilation_iterations = 2
soft_floor_covering_expansion_enabled = true
soft_floor_covering_kernel_ratio = 0.008
soft_floor_covering_dilation_iterations = 2
uv_min_coverage = 0.995
uv_max_bad_neighbor_ratio = 0.035
uv_max_jump_ratio = 8.0
uv_absolute_jump_meters = 0.35
enable_geometry_surface_filter = true
plane_distance_threshold_meters = 0.12
plane_normal_min_cos = 0.45
plane_filter_min_keep_ratio = 0.45
[refine]
enabled = true
# Lower to 768 if a pass hits CUDA OOM on a 16 GB card; raise to 1024 on an A100.
max_dimension = 896
# Free OneFormer/MoGe/Depth before loading SDXL. They are idle by then, and the
# two sets together do not fit a 16 GB card with room for SDXL activations.
unload_cv_models = true
# Trades roughly 2x speed for roughly half the VRAM. Try this before dropping
# max_dimension, since resolution costs quality and offload only costs time.
cpu_offload = false
# "detail-recovery" keeps SDXL's look and restores the tile's grain on top.
# "realism-guide" keeps the tile and transfers only SDXL's illumination.
blend_mode = "detail-recovery"
seed = 42
# Keep SDXL's weights in CPU RAM when the GPU goes back to the CV models,
# instead of dropping them. Costs ~7 GB of system RAM and turns the
# "Loading refinement model" wait from a multi-minute disk reload into a
# PCIe copy. Skipped automatically when the host is short on RAM.
# One material-neutral prompt per plane. materialType is a keyword guess against
# the tile's name and misfires on most of the catalogue; naming the wrong
# material tells SDXL to convert the surface rather than photograph it. Set
# false to restore the per-material prompt text, which is still in profiles.py.
generic_prompt = true
park_on_cpu = true
park_min_free_ram_gb = 9.0
[gemini]
image_model = "gemini-3.1-flash-image"