Download enums.py from modventures/room-visualizer-v2: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/spaces/modventures/room-visualizer-v2/resolve/main/enums.py
- Command line
-
hf download hf://spaces/modventures/room-visualizer-v2/enums.py
-
curl -L -o enums.py https://huggingface.co/spaces/modventures/room-visualizer-v2/resolve/main/enums.py
2.33 kB
| """Shared string enumerations for the floor-visualizer backend.""" | |
| from enum import StrEnum | |
| class JobStatus(StrEnum): | |
| QUEUED = "QUEUED" | |
| PROCESSING = "PROCESSING" | |
| PREVIEW_READY = "PREVIEW_READY" | |
| COMPLETED = "COMPLETED" | |
| FAILED = "FAILED" | |
| class PipelinePhase(StrEnum): | |
| SEGMENTATION = "segmentation" | |
| MASKING = "masking" | |
| GEOMETRY = "geometry" | |
| SURFACE_MAPPING = "surface-mapping" | |
| LIGHTING = "lighting" | |
| DIRECTION = "direction" | |
| PACKAGING = "packaging" | |
| class TextureMappingMode(StrEnum): | |
| REGULARIZED_FLOOR_PLANE = "regularized-floor-plane" | |
| SURFACE_UV = "surface-uv" | |
| WALL_PLANE = "wall-plane" | |
| WALL_CONTOUR_HOMOGRAPHY = "wall-contour-homography" | |
| class TextureMappingReason(StrEnum): | |
| SURFACE_UV_UNAVAILABLE = "surface-uv-unavailable" | |
| EMPTY_SURFACE = "empty-surface" | |
| INCOMPLETE_SURFACE_UV = "incomplete-surface-uv" | |
| INSUFFICIENT_UV_NEIGHBORS = "insufficient-uv-neighbors" | |
| NOISY_SURFACE_UV = "noisy-surface-uv" | |
| SURFACE_UV_QUALITY_OK = "surface-uv-quality-ok" | |
| MULTI_PLANE_SURFACE_UV_QUALITY_OK = "multi-plane-surface-uv-quality-ok" | |
| class GeometryProvider(StrEnum): | |
| HOMOGRAPHY = "homography" | |
| MOGE_2 = "moge-2" | |
| RELATIVE_DEPTH = "relative-depth" | |
| DEPTH_ANYTHING_METRIC = "depth-anything-metric" | |
| DEPTH_ANYTHING = "depth-anything" | |
| METRIC_DEPTH = "metric-depth" | |
| WALL_DEPTH = "wall-depth" | |
| WALL_CONTOUR_HOMOGRAPHY = "wall-contour-homography" | |
| class LightingSource(StrEnum): | |
| LUMINANCE = "luminance" | |
| INTRINSIC = "intrinsic" # prefix, actual value is f"intrinsic-{version}" | |
| class FloorMaskSource(StrEnum): | |
| PRIMARY_FLOOR = "primary-floor" | |
| FLOOR_SURFACE_FALLBACK = "floor-surface-fallback" | |
| class PlaneFitMode(StrEnum): | |
| NORMAL_AWARE = "normal-aware" | |
| RANSAC = "ransac" | |
| class IntrinsicAlignment(StrEnum): | |
| UNCHECKED = "intrinsic-unchecked" | |
| ALIGNED = "intrinsic-aligned" | |
| LOW_CONFIDENCE = "intrinsic-low-confidence" | |
| INVERTED_CORRECTED = "intrinsic-inverted-corrected" | |
| class QaStatus(StrEnum): | |
| QUEUED = "queued" | |
| RUNNING = "running" | |
| COMPLETED = "completed" | |
| FAILED = "failed" | |
| CANCELLED = "cancelled" | |
| class QaResult(StrEnum): | |
| PASSED = "passed" | |
| FAILED = "failed" | |
| SKIPPED = "skipped" | |
| class SurfaceType(StrEnum): | |
| FLOOR = "floor" | |
| WALL = "wall" | |