Upload 337 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +2 -0
- backend/.vscode/c_cpp_properties.json +21 -0
- backend/__pycache__/main.cpython-312.pyc +0 -0
- backend/core/__pycache__/config.cpython-312.pyc +0 -0
- backend/logs/app.log +217 -0
- backend/main.py +2 -1
- backend/routers/__pycache__/catalog.cpython-312.pyc +0 -0
- backend/routers/__pycache__/pages.cpython-312.pyc +0 -0
- backend/routers/__pycache__/share.cpython-312.pyc +0 -0
- backend/routers/catalog.py +8 -0
- backend/routers/pages.py +97 -32
- backend/routers/share.py +35 -0
- backend/services/__pycache__/gradio_client_service.cpython-312.pyc +0 -0
- backend/services/__pycache__/image_service.cpython-312.pyc +0 -0
- backend/uploads/1-275136.jpg +0 -0
- backend/uploads/demo-room.jpg +2 -2
- backend/uploads/demo-room_edit_1a845a92.jpg +0 -0
- backend/uploads/demo-room_edit_1a845a92_edit_578a8993.jpg +0 -0
- backend/uploads/demo-room_edit_1bf348a5.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4_edit_e89c0b46.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4_edit_e89c0b46_edit_4d9e827f.jpg +0 -0
- backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4_edit_e89c0b46_edit_4d9e827f_edit_fa40f959.jpg +0 -0
- backend/uploads/demo-room_edit_3755debd.jpg +0 -0
- backend/uploads/demo-room_edit_3755debd_edit_cdb044f5.jpg +3 -0
- backend/uploads/demo-room_edit_3755debd_edit_cdb044f5_edit_cc649bbc.jpg +3 -0
- backend/uploads/demo-room_edit_54633c31.jpg +0 -0
- backend/uploads/demo-room_edit_54633c31_edit_24c2f1e8.jpg +0 -0
- backend/uploads/demo-room_edit_82e85445.jpg +0 -0
- backend/uploads/demo-room_edit_82e85445_edit_878ffaa4.jpg +0 -0
- backend/uploads/demo-room_edit_99428b3a.jpg +0 -0
- backend/uploads/demo-room_edit_99428b3a_edit_7c7271fd.jpg +0 -0
- backend/uploads/demo-room_edit_99428b3a_edit_7c7271fd_edit_83dc006f.jpg +0 -0
- backend/uploads/demo-room_edit_d6398299.jpg +0 -0
- backend/uploads/demo-room_edit_d6398299_edit_ebcf4a91.jpg +0 -0
- backend/uploads/masks/1-275136.jpg_labels.png +0 -0
- backend/uploads/masks/1-275136.jpg_labels_meta.json +1 -0
- backend/uploads/masks/demo-room.jpg_labels.png +0 -0
- backend/uploads/masks/demo-room.jpg_labels_meta.json +1 -1
- backend/uploads/masks/demo-room_edit_1a845a92_edit_578a8993_labels.png +0 -0
- backend/uploads/masks/demo-room_edit_1a845a92_labels.png +0 -0
- backend/uploads/masks/demo-room_edit_1bf348a5_labels.png +0 -0
- backend/uploads/masks/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4_edit_e89c0b46_edit_4d9e827f_edit_fa40f959_labels.png +0 -0
.gitattributes
CHANGED
|
@@ -147,3 +147,5 @@ backend/uploads/demo-room_edit_ef2b9c2c_edit_32b3c807.jpg filter=lfs diff=lfs me
|
|
| 147 |
backend/uploads/demo-room_edit_ef2b9c2c.jpg filter=lfs diff=lfs merge=lfs -text
|
| 148 |
backend/uploads/demo-room.jpg filter=lfs diff=lfs merge=lfs -text
|
| 149 |
backend/uploads/proyecto-White-Houses_edit_d4a831c5_edit_c5a95477.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 147 |
backend/uploads/demo-room_edit_ef2b9c2c.jpg filter=lfs diff=lfs merge=lfs -text
|
| 148 |
backend/uploads/demo-room.jpg filter=lfs diff=lfs merge=lfs -text
|
| 149 |
backend/uploads/proyecto-White-Houses_edit_d4a831c5_edit_c5a95477.jpg filter=lfs diff=lfs merge=lfs -text
|
| 150 |
+
backend/uploads/demo-room_edit_3755debd_edit_cdb044f5_edit_cc649bbc.jpg filter=lfs diff=lfs merge=lfs -text
|
| 151 |
+
backend/uploads/demo-room_edit_3755debd_edit_cdb044f5.jpg filter=lfs diff=lfs merge=lfs -text
|
backend/.vscode/c_cpp_properties.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"configurations": [
|
| 3 |
+
{
|
| 4 |
+
"name": "Win32",
|
| 5 |
+
"includePath": [
|
| 6 |
+
"${workspaceFolder}/**"
|
| 7 |
+
],
|
| 8 |
+
"defines": [
|
| 9 |
+
"_DEBUG",
|
| 10 |
+
"UNICODE",
|
| 11 |
+
"_UNICODE"
|
| 12 |
+
],
|
| 13 |
+
"windowsSdkVersion": "10.0.19041.0",
|
| 14 |
+
"compilerPath": "cl.exe",
|
| 15 |
+
"cStandard": "c17",
|
| 16 |
+
"cppStandard": "c++17",
|
| 17 |
+
"intelliSenseMode": "windows-msvc-x64"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"version": 4
|
| 21 |
+
}
|
backend/__pycache__/main.cpython-312.pyc
CHANGED
|
Binary files a/backend/__pycache__/main.cpython-312.pyc and b/backend/__pycache__/main.cpython-312.pyc differ
|
|
|
backend/core/__pycache__/config.cpython-312.pyc
CHANGED
|
Binary files a/backend/core/__pycache__/config.cpython-312.pyc and b/backend/core/__pycache__/config.cpython-312.pyc differ
|
|
|
backend/logs/app.log
CHANGED
|
@@ -211,3 +211,220 @@ fastapi.exceptions.HTTPException: 500: torch not installed — SAM2 unavailable
|
|
| 211 |
2026-04-29 20:34:27,987 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T02:34:27.987941+00:00
|
| 212 |
2026-04-29 20:34:28,292 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\proyecto-White-Houses.jpg
|
| 213 |
2026-04-29 20:34:28,570 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.582s at 2026-04-30T02:34:28.570140+00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
2026-04-29 20:34:27,987 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T02:34:27.987941+00:00
|
| 212 |
2026-04-29 20:34:28,292 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\proyecto-White-Houses.jpg
|
| 213 |
2026-04-29 20:34:28,570 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.582s at 2026-04-30T02:34:28.570140+00:00
|
| 214 |
+
2026-04-30 11:28:10,082 INFO backend.segmentation: [STARTUP] GRADIO_SPACE_URL=https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 215 |
+
2026-04-30 11:28:10,113 INFO backend.segmentation: [LIFESPAN] GRADIO_SPACE_URL set — skipping local SAM2 load.
|
| 216 |
+
2026-04-30 11:28:44,116 INFO backend.segmentation: [UPLOAD_BG] START at 2026-04-30T17:28:44.116002+00:00
|
| 217 |
+
2026-04-30 11:28:44,117 INFO backend.segmentation: [JOB 9a15bbfe68f84bde8bdac60a8be4da9e] preparing_image progress=12
|
| 218 |
+
2026-04-30 11:28:44,411 INFO backend.segmentation: [JOB 9a15bbfe68f84bde8bdac60a8be4da9e] segmenting_with_sam2 progress=30 estimated_seconds=49.28768
|
| 219 |
+
2026-04-30 11:28:44,411 INFO services.gradio_client_service: Calling GPU Gradio Space: https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 220 |
+
2026-04-30 11:28:47,099 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/config "HTTP/1.1 200 OK"
|
| 221 |
+
2026-04-30 11:28:47,585 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/info?serialize=False "HTTP/1.1 200 OK"
|
| 222 |
+
2026-04-30 11:28:48,272 INFO httpx: HTTP Request: HEAD https://huggingface.co/api/telemetry/py_client/initiated "HTTP/1.1 200 OK"
|
| 223 |
+
2026-04-30 11:28:48,363 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/heartbeat/7d7be152-f5b8-4924-8c4d-1a0b61711e8f "HTTP/1.1 200 OK"
|
| 224 |
+
2026-04-30 11:28:48,476 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/upload "HTTP/1.1 200 OK"
|
| 225 |
+
2026-04-30 11:28:48,934 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/join "HTTP/1.1 200 OK"
|
| 226 |
+
2026-04-30 11:28:49,386 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/data?session_hash=7d7be152-f5b8-4924-8c4d-1a0b61711e8f "HTTP/1.1 200 OK"
|
| 227 |
+
2026-04-30 11:29:08,489 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/file=/tmp/gradio/d71a861910d02311782c5f826bb80cc1fd74d6f6086844534a04a02edf930180/image.webp "HTTP/1.1 200 OK"
|
| 228 |
+
2026-04-30 11:29:08,588 INFO services.gradio_client_service: Gradio Space segmentation: entorno=🛁 Baño / Cocina motor=SegFormer (SegFormer ADE20K+ DINO) + SAM 2.1 mask_count=18
|
| 229 |
+
2026-04-30 11:29:08,590 INFO backend.segmentation: [JOB 9a15bbfe68f84bde8bdac60a8be4da9e] saving_masks progress=92
|
| 230 |
+
2026-04-30 11:29:08,688 INFO backend.segmentation: [JOB 9a15bbfe68f84bde8bdac60a8be4da9e] segments_meta saved (14 segments)
|
| 231 |
+
2026-04-30 11:29:08,688 INFO backend.segmentation: [JOB 9a15bbfe68f84bde8bdac60a8be4da9e] done mask_count=18
|
| 232 |
+
2026-04-30 11:29:08,689 INFO backend.segmentation: [UPLOAD_BG] DONE 24.573s at 2026-04-30T17:29:08.689489+00:00
|
| 233 |
+
2026-04-30 11:29:08,689 INFO backend.segmentation: Releasing resources (full_unload=False)
|
| 234 |
+
2026-04-30 11:34:31,212 INFO backend.segmentation: [STARTUP] GRADIO_SPACE_URL=https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 235 |
+
2026-04-30 11:34:31,227 INFO backend.segmentation: [LIFESPAN] GRADIO_SPACE_URL set — skipping local SAM2 load.
|
| 236 |
+
2026-04-30 11:35:20,079 INFO backend.segmentation: [STARTUP] GRADIO_SPACE_URL=https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 237 |
+
2026-04-30 11:35:20,093 INFO backend.segmentation: [LIFESPAN] GRADIO_SPACE_URL set — skipping local SAM2 load.
|
| 238 |
+
2026-04-30 11:35:28,226 INFO backend.segmentation: [UPLOAD_BG] START at 2026-04-30T17:35:28.226030+00:00
|
| 239 |
+
2026-04-30 11:35:28,227 INFO backend.segmentation: [JOB 48baf3b40f2f45d190f44cd2761c709e] preparing_image progress=12
|
| 240 |
+
2026-04-30 11:35:28,315 INFO backend.segmentation: [JOB 48baf3b40f2f45d190f44cd2761c709e] segmenting_with_sam2 progress=30 estimated_seconds=49.28768
|
| 241 |
+
2026-04-30 11:35:28,316 INFO services.gradio_client_service: Calling GPU Gradio Space: https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 242 |
+
2026-04-30 11:35:29,381 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/config "HTTP/1.1 200 OK"
|
| 243 |
+
2026-04-30 11:35:29,927 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/info?serialize=False "HTTP/1.1 200 OK"
|
| 244 |
+
2026-04-30 11:35:30,567 INFO httpx: HTTP Request: HEAD https://huggingface.co/api/telemetry/py_client/initiated "HTTP/1.1 200 OK"
|
| 245 |
+
2026-04-30 11:35:30,680 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/heartbeat/846ae43c-81a8-48af-97ee-8292d522cc64 "HTTP/1.1 200 OK"
|
| 246 |
+
2026-04-30 11:35:30,784 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/upload "HTTP/1.1 200 OK"
|
| 247 |
+
2026-04-30 11:35:31,388 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/join "HTTP/1.1 200 OK"
|
| 248 |
+
2026-04-30 11:35:31,964 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/data?session_hash=846ae43c-81a8-48af-97ee-8292d522cc64 "HTTP/1.1 200 OK"
|
| 249 |
+
2026-04-30 11:35:43,682 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/file=/tmp/gradio/d71a861910d02311782c5f826bb80cc1fd74d6f6086844534a04a02edf930180/image.webp "HTTP/1.1 200 OK"
|
| 250 |
+
2026-04-30 11:35:43,788 INFO services.gradio_client_service: Gradio Space segmentation: entorno=🛁 Baño / Cocina motor=SegFormer (SegFormer ADE20K+ DINO) + SAM 2.1 mask_count=18
|
| 251 |
+
2026-04-30 11:35:43,788 INFO backend.segmentation: [JOB 48baf3b40f2f45d190f44cd2761c709e] saving_masks progress=92
|
| 252 |
+
2026-04-30 11:35:43,874 INFO backend.segmentation: [JOB 48baf3b40f2f45d190f44cd2761c709e] segments_meta saved (14 segments)
|
| 253 |
+
2026-04-30 11:35:43,875 INFO backend.segmentation: [JOB 48baf3b40f2f45d190f44cd2761c709e] done mask_count=18
|
| 254 |
+
2026-04-30 11:35:43,875 INFO backend.segmentation: [UPLOAD_BG] DONE 15.650s at 2026-04-30T17:35:43.875230+00:00
|
| 255 |
+
2026-04-30 11:35:43,876 INFO backend.segmentation: Releasing resources (full_unload=False)
|
| 256 |
+
2026-04-30 11:37:18,311 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:37:18.311528+00:00
|
| 257 |
+
2026-04-30 11:37:18,787 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 258 |
+
2026-04-30 11:37:19,025 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.714s at 2026-04-30T17:37:19.025433+00:00
|
| 259 |
+
2026-04-30 11:37:22,720 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:37:22.720207+00:00
|
| 260 |
+
2026-04-30 11:37:23,223 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 261 |
+
2026-04-30 11:37:23,371 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.651s at 2026-04-30T17:37:23.371172+00:00
|
| 262 |
+
2026-04-30 11:37:27,040 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:37:27.040137+00:00
|
| 263 |
+
2026-04-30 11:37:27,461 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 264 |
+
2026-04-30 11:37:27,615 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.576s at 2026-04-30T17:37:27.615284+00:00
|
| 265 |
+
2026-04-30 11:37:32,588 INFO backend.segmentation: [UPLOAD_BG] START at 2026-04-30T17:37:32.588150+00:00
|
| 266 |
+
2026-04-30 11:37:32,589 INFO backend.segmentation: [JOB 5a04157791ee46708b9659b06abc01cd] preparing_image progress=12
|
| 267 |
+
2026-04-30 11:37:32,652 INFO backend.segmentation: [JOB 5a04157791ee46708b9659b06abc01cd] segmenting_with_sam2 progress=30 estimated_seconds=49.28768
|
| 268 |
+
2026-04-30 11:37:32,653 INFO services.gradio_client_service: Calling GPU Gradio Space: https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 269 |
+
2026-04-30 11:37:33,265 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/config "HTTP/1.1 200 OK"
|
| 270 |
+
2026-04-30 11:37:33,854 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/info?serialize=False "HTTP/1.1 200 OK"
|
| 271 |
+
2026-04-30 11:37:34,045 INFO httpx: HTTP Request: HEAD https://huggingface.co/api/telemetry/py_client/initiated "HTTP/1.1 200 OK"
|
| 272 |
+
2026-04-30 11:37:34,638 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/upload "HTTP/1.1 200 OK"
|
| 273 |
+
2026-04-30 11:37:35,300 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/join "HTTP/1.1 200 OK"
|
| 274 |
+
2026-04-30 11:37:35,353 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/heartbeat/f3fac27d-4abe-4757-a29c-4cc301d3c520 "HTTP/1.1 200 OK"
|
| 275 |
+
2026-04-30 11:37:35,860 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/data?session_hash=f3fac27d-4abe-4757-a29c-4cc301d3c520 "HTTP/1.1 200 OK"
|
| 276 |
+
2026-04-30 11:37:45,344 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/file=/tmp/gradio/525c342e2500d48137e90e793b9f3884aa3deedaa44ac6a6178e85433dde68ed/image.webp "HTTP/1.1 200 OK"
|
| 277 |
+
2026-04-30 11:37:45,399 INFO services.gradio_client_service: Gradio Space segmentation: entorno=🛁 Baño / Cocina motor=SegFormer (SegFormer ADE20K+ DINO) + SAM 2.1 mask_count=19
|
| 278 |
+
2026-04-30 11:37:45,400 INFO backend.segmentation: [JOB 5a04157791ee46708b9659b06abc01cd] saving_masks progress=92
|
| 279 |
+
2026-04-30 11:37:45,496 INFO backend.segmentation: [JOB 5a04157791ee46708b9659b06abc01cd] segments_meta saved (19 segments)
|
| 280 |
+
2026-04-30 11:37:45,496 INFO backend.segmentation: [JOB 5a04157791ee46708b9659b06abc01cd] done mask_count=19
|
| 281 |
+
2026-04-30 11:37:45,497 INFO backend.segmentation: [UPLOAD_BG] DONE 12.909s at 2026-04-30T17:37:45.497768+00:00
|
| 282 |
+
2026-04-30 11:37:45,497 INFO backend.segmentation: Releasing resources (full_unload=False)
|
| 283 |
+
2026-04-30 11:37:51,411 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:37:51.411336+00:00
|
| 284 |
+
2026-04-30 11:37:51,902 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 285 |
+
2026-04-30 11:37:52,048 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.637s at 2026-04-30T17:37:52.048476+00:00
|
| 286 |
+
2026-04-30 11:37:54,874 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:37:54.874358+00:00
|
| 287 |
+
2026-04-30 11:37:55,381 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 288 |
+
2026-04-30 11:37:55,525 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.652s at 2026-04-30T17:37:55.525845+00:00
|
| 289 |
+
2026-04-30 11:37:59,388 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:37:59.388707+00:00
|
| 290 |
+
2026-04-30 11:37:59,889 INFO backend.segmentation: [APPLY_TEXTURE] flat floor tiling (trap=0.05 < 0.35, skip perspective)
|
| 291 |
+
2026-04-30 11:37:59,903 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 292 |
+
2026-04-30 11:38:00,058 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.670s at 2026-04-30T17:38:00.058226+00:00
|
| 293 |
+
2026-04-30 11:38:04,419 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:38:04.419644+00:00
|
| 294 |
+
2026-04-30 11:38:04,939 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 295 |
+
2026-04-30 11:38:05,083 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.664s at 2026-04-30T17:38:05.083669+00:00
|
| 296 |
+
2026-04-30 11:38:09,485 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:38:09.485185+00:00
|
| 297 |
+
2026-04-30 11:38:10,004 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 298 |
+
2026-04-30 11:38:10,164 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.679s at 2026-04-30T17:38:10.164696+00:00
|
| 299 |
+
2026-04-30 11:38:14,863 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:38:14.863574+00:00
|
| 300 |
+
2026-04-30 11:38:15,447 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 301 |
+
2026-04-30 11:38:15,612 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.750s at 2026-04-30T17:38:15.612415+00:00
|
| 302 |
+
2026-04-30 11:38:18,118 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:38:18.118131+00:00
|
| 303 |
+
2026-04-30 11:38:18,776 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 304 |
+
2026-04-30 11:38:18,995 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.879s at 2026-04-30T17:38:18.995927+00:00
|
| 305 |
+
2026-04-30 11:38:22,037 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:38:22.037510+00:00
|
| 306 |
+
2026-04-30 11:38:22,686 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 307 |
+
2026-04-30 11:38:22,873 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.835s at 2026-04-30T17:38:22.873532+00:00
|
| 308 |
+
2026-04-30 11:38:25,520 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:38:25.520184+00:00
|
| 309 |
+
2026-04-30 11:38:26,145 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 310 |
+
2026-04-30 11:38:26,334 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.815s at 2026-04-30T17:38:26.334641+00:00
|
| 311 |
+
2026-04-30 11:38:28,140 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:38:28.140486+00:00
|
| 312 |
+
2026-04-30 11:38:28,847 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 313 |
+
2026-04-30 11:38:29,023 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.882s at 2026-04-30T17:38:29.023363+00:00
|
| 314 |
+
2026-04-30 11:38:35,098 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:38:35.098342+00:00
|
| 315 |
+
2026-04-30 11:38:35,824 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 316 |
+
2026-04-30 11:38:36,028 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.930s at 2026-04-30T17:38:36.028300+00:00
|
| 317 |
+
2026-04-30 11:41:41,140 INFO backend.segmentation: [UPLOAD_BG] START at 2026-04-30T17:41:41.140015+00:00
|
| 318 |
+
2026-04-30 11:41:41,149 INFO backend.segmentation: [JOB a63a4a48e2114d2a8a8ce7342d8b8443] preparing_image progress=12
|
| 319 |
+
2026-04-30 11:41:41,245 INFO backend.segmentation: [JOB a63a4a48e2114d2a8a8ce7342d8b8443] segmenting_with_sam2 progress=30 estimated_seconds=49.28768
|
| 320 |
+
2026-04-30 11:41:41,246 INFO services.gradio_client_service: Calling GPU Gradio Space: https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 321 |
+
2026-04-30 11:41:41,911 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/config "HTTP/1.1 200 OK"
|
| 322 |
+
2026-04-30 11:41:42,462 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/info?serialize=False "HTTP/1.1 200 OK"
|
| 323 |
+
2026-04-30 11:41:42,643 INFO httpx: HTTP Request: HEAD https://huggingface.co/api/telemetry/py_client/initiated "HTTP/1.1 200 OK"
|
| 324 |
+
2026-04-30 11:41:43,175 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/heartbeat/3aef8110-e818-4b0d-b6eb-ea6e1e3f6d26 "HTTP/1.1 200 OK"
|
| 325 |
+
2026-04-30 11:41:43,286 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/upload "HTTP/1.1 200 OK"
|
| 326 |
+
2026-04-30 11:41:43,879 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/join "HTTP/1.1 200 OK"
|
| 327 |
+
2026-04-30 11:41:44,473 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/data?session_hash=3aef8110-e818-4b0d-b6eb-ea6e1e3f6d26 "HTTP/1.1 200 OK"
|
| 328 |
+
2026-04-30 11:41:54,142 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/file=/tmp/gradio/be028661dd9bac57589c50374ec81fba3f6d33d75c68656f138199c7ecd043d5/image.webp "HTTP/1.1 200 OK"
|
| 329 |
+
2026-04-30 11:41:54,248 INFO services.gradio_client_service: Gradio Space segmentation: entorno=🛁 Baño / Cocina motor=SegFormer (SegFormer ADE20K+ DINO) + SAM 2.1 mask_count=13
|
| 330 |
+
2026-04-30 11:41:54,250 INFO backend.segmentation: [JOB a63a4a48e2114d2a8a8ce7342d8b8443] saving_masks progress=92
|
| 331 |
+
2026-04-30 11:41:54,306 INFO backend.segmentation: [JOB a63a4a48e2114d2a8a8ce7342d8b8443] segments_meta saved (13 segments)
|
| 332 |
+
2026-04-30 11:41:54,307 INFO backend.segmentation: [JOB a63a4a48e2114d2a8a8ce7342d8b8443] done mask_count=13
|
| 333 |
+
2026-04-30 11:41:54,307 INFO backend.segmentation: [UPLOAD_BG] DONE 13.167s at 2026-04-30T17:41:54.307037+00:00
|
| 334 |
+
2026-04-30 11:41:54,308 INFO backend.segmentation: Releasing resources (full_unload=False)
|
| 335 |
+
2026-04-30 11:43:18,472 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:43:18.472363+00:00
|
| 336 |
+
2026-04-30 11:43:19,016 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 337 |
+
2026-04-30 11:43:19,160 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.688s at 2026-04-30T17:43:19.160192+00:00
|
| 338 |
+
2026-04-30 11:43:30,372 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:43:30.372475+00:00
|
| 339 |
+
2026-04-30 11:43:30,954 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 340 |
+
2026-04-30 11:43:31,098 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.727s at 2026-04-30T17:43:31.098668+00:00
|
| 341 |
+
2026-04-30 11:47:34,143 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:47:34.143047+00:00
|
| 342 |
+
2026-04-30 11:47:34,404 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 343 |
+
2026-04-30 11:47:34,532 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.389s at 2026-04-30T17:47:34.532555+00:00
|
| 344 |
+
2026-04-30 11:47:55,089 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T17:47:55.089325+00:00
|
| 345 |
+
2026-04-30 11:47:55,583 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 346 |
+
2026-04-30 11:47:55,730 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.641s at 2026-04-30T17:47:55.730378+00:00
|
| 347 |
+
2026-04-30 12:04:38,148 INFO backend.segmentation: [STARTUP] GRADIO_SPACE_URL=https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 348 |
+
2026-04-30 12:04:38,173 INFO backend.segmentation: [LIFESPAN] GRADIO_SPACE_URL set — skipping local SAM2 load.
|
| 349 |
+
2026-04-30 12:09:38,204 INFO backend.segmentation: [STARTUP] GRADIO_SPACE_URL=https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 350 |
+
2026-04-30 12:09:38,219 INFO backend.segmentation: [LIFESPAN] GRADIO_SPACE_URL set — skipping local SAM2 load.
|
| 351 |
+
2026-04-30 12:13:52,707 INFO backend.segmentation: [UPLOAD_BG] START at 2026-04-30T18:13:52.707043+00:00
|
| 352 |
+
2026-04-30 12:13:52,707 INFO backend.segmentation: [JOB 1df6118ebf3b4825b6acf36a62eb382b] preparing_image progress=12
|
| 353 |
+
2026-04-30 12:13:52,799 INFO backend.segmentation: [JOB 1df6118ebf3b4825b6acf36a62eb382b] segmenting_with_sam2 progress=30 estimated_seconds=49.28768
|
| 354 |
+
2026-04-30 12:13:52,799 INFO services.gradio_client_service: Calling GPU Gradio Space: https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 355 |
+
2026-04-30 12:13:53,878 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/config "HTTP/1.1 200 OK"
|
| 356 |
+
2026-04-30 12:13:54,504 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/info?serialize=False "HTTP/1.1 200 OK"
|
| 357 |
+
2026-04-30 12:13:55,176 INFO httpx: HTTP Request: HEAD https://huggingface.co/api/telemetry/py_client/initiated "HTTP/1.1 200 OK"
|
| 358 |
+
2026-04-30 12:13:55,270 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/heartbeat/41cb0056-465a-425e-83c0-301658311ea8 "HTTP/1.1 200 OK"
|
| 359 |
+
2026-04-30 12:13:55,368 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/upload "HTTP/1.1 200 OK"
|
| 360 |
+
2026-04-30 12:13:55,904 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/join "HTTP/1.1 200 OK"
|
| 361 |
+
2026-04-30 12:13:56,487 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/data?session_hash=41cb0056-465a-425e-83c0-301658311ea8 "HTTP/1.1 200 OK"
|
| 362 |
+
2026-04-30 12:14:07,019 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/file=/tmp/gradio/d71a861910d02311782c5f826bb80cc1fd74d6f6086844534a04a02edf930180/image.webp "HTTP/1.1 200 OK"
|
| 363 |
+
2026-04-30 12:14:07,128 INFO services.gradio_client_service: Gradio Space segmentation: entorno=🛁 Baño / Cocina motor=SegFormer (SegFormer ADE20K+ DINO) + SAM 2.1 mask_count=18
|
| 364 |
+
2026-04-30 12:14:07,129 INFO backend.segmentation: [JOB 1df6118ebf3b4825b6acf36a62eb382b] saving_masks progress=92
|
| 365 |
+
2026-04-30 12:14:07,214 INFO backend.segmentation: [JOB 1df6118ebf3b4825b6acf36a62eb382b] segments_meta saved (14 segments)
|
| 366 |
+
2026-04-30 12:14:07,214 INFO backend.segmentation: [JOB 1df6118ebf3b4825b6acf36a62eb382b] done mask_count=18
|
| 367 |
+
2026-04-30 12:14:07,215 INFO backend.segmentation: [UPLOAD_BG] DONE 14.509s at 2026-04-30T18:14:07.215535+00:00
|
| 368 |
+
2026-04-30 12:14:07,216 INFO backend.segmentation: Releasing resources (full_unload=False)
|
| 369 |
+
2026-04-30 12:15:26,031 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T18:15:26.031154+00:00
|
| 370 |
+
2026-04-30 12:15:26,320 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 371 |
+
2026-04-30 12:15:26,583 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.552s at 2026-04-30T18:15:26.583372+00:00
|
| 372 |
+
2026-04-30 12:15:31,474 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T18:15:31.474416+00:00
|
| 373 |
+
2026-04-30 12:15:31,999 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 374 |
+
2026-04-30 12:15:32,141 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.667s at 2026-04-30T18:15:32.141076+00:00
|
| 375 |
+
2026-04-30 12:15:37,533 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T18:15:37.533421+00:00
|
| 376 |
+
2026-04-30 12:15:38,003 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 377 |
+
2026-04-30 12:15:38,148 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.615s at 2026-04-30T18:15:38.148131+00:00
|
| 378 |
+
2026-04-30 12:15:43,112 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T18:15:43.112106+00:00
|
| 379 |
+
2026-04-30 12:15:43,495 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 380 |
+
2026-04-30 12:15:43,639 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.528s at 2026-04-30T18:15:43.639421+00:00
|
| 381 |
+
2026-04-30 12:15:48,170 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T18:15:48.170441+00:00
|
| 382 |
+
2026-04-30 12:15:48,545 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 383 |
+
2026-04-30 12:15:48,688 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.518s at 2026-04-30T18:15:48.688355+00:00
|
| 384 |
+
2026-04-30 12:21:38,766 INFO backend.segmentation: [UPLOAD_BG] START at 2026-04-30T18:21:38.766212+00:00
|
| 385 |
+
2026-04-30 12:21:38,766 INFO backend.segmentation: [JOB b99cc22c206c4e0380d3b2fe2e24ffc6] preparing_image progress=12
|
| 386 |
+
2026-04-30 12:21:38,838 INFO backend.segmentation: [JOB b99cc22c206c4e0380d3b2fe2e24ffc6] segmenting_with_sam2 progress=30 estimated_seconds=49.28768
|
| 387 |
+
2026-04-30 12:21:38,838 INFO services.gradio_client_service: Calling GPU Gradio Space: https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 388 |
+
2026-04-30 12:21:39,938 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/config "HTTP/1.1 200 OK"
|
| 389 |
+
2026-04-30 12:21:41,143 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/info?serialize=False "HTTP/1.1 200 OK"
|
| 390 |
+
2026-04-30 12:21:41,334 INFO httpx: HTTP Request: HEAD https://huggingface.co/api/telemetry/py_client/initiated "HTTP/1.1 200 OK"
|
| 391 |
+
2026-04-30 12:21:41,668 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/heartbeat/a637527a-5267-4a6e-acc0-e57a7de5119a "HTTP/1.1 200 OK"
|
| 392 |
+
2026-04-30 12:21:41,761 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/upload "HTTP/1.1 200 OK"
|
| 393 |
+
2026-04-30 12:21:42,216 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/join "HTTP/1.1 200 OK"
|
| 394 |
+
2026-04-30 12:21:42,820 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/data?session_hash=a637527a-5267-4a6e-acc0-e57a7de5119a "HTTP/1.1 200 OK"
|
| 395 |
+
2026-04-30 12:21:50,974 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/file=/tmp/gradio/d71a861910d02311782c5f826bb80cc1fd74d6f6086844534a04a02edf930180/image.webp "HTTP/1.1 200 OK"
|
| 396 |
+
2026-04-30 12:21:51,074 INFO services.gradio_client_service: Gradio Space segmentation: entorno=🛁 Baño / Cocina motor=SegFormer (SegFormer ADE20K+ DINO) + SAM 2.1 mask_count=18
|
| 397 |
+
2026-04-30 12:21:51,074 INFO backend.segmentation: [JOB b99cc22c206c4e0380d3b2fe2e24ffc6] saving_masks progress=92
|
| 398 |
+
2026-04-30 12:21:51,145 INFO backend.segmentation: [JOB b99cc22c206c4e0380d3b2fe2e24ffc6] segments_meta saved (14 segments)
|
| 399 |
+
2026-04-30 12:21:51,146 INFO backend.segmentation: [JOB b99cc22c206c4e0380d3b2fe2e24ffc6] done mask_count=18
|
| 400 |
+
2026-04-30 12:21:51,147 INFO backend.segmentation: [UPLOAD_BG] DONE 12.381s at 2026-04-30T18:21:51.147398+00:00
|
| 401 |
+
2026-04-30 12:21:51,147 INFO backend.segmentation: Releasing resources (full_unload=False)
|
| 402 |
+
2026-04-30 12:22:28,223 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T18:22:28.223162+00:00
|
| 403 |
+
2026-04-30 12:22:28,488 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 404 |
+
2026-04-30 12:22:28,633 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.410s at 2026-04-30T18:22:28.633219+00:00
|
| 405 |
+
2026-04-30 12:23:38,541 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T18:23:38.541894+00:00
|
| 406 |
+
2026-04-30 12:23:39,059 INFO backend.segmentation: [APPLY_TEXTURE] flat floor tiling (trap=0.28 < 0.35, skip perspective)
|
| 407 |
+
2026-04-30 12:23:39,078 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 408 |
+
2026-04-30 12:23:39,224 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.682s at 2026-04-30T18:23:39.224901+00:00
|
| 409 |
+
2026-04-30 12:23:47,739 INFO backend.segmentation: [APPLY_TEXTURE] START at 2026-04-30T18:23:47.739936+00:00
|
| 410 |
+
2026-04-30 12:23:48,234 INFO backend.segmentation: [APPLY_TEXTURE] flat floor tiling (trap=0.29 < 0.35, skip perspective)
|
| 411 |
+
2026-04-30 12:23:48,249 INFO backend.segmentation: [APPLY_TEXTURE] cleared mask from original source: C:\Users\alane\OneDrive\Escritorio\Trabajo\Prueba-PoC\backend\uploads\demo-room.jpg
|
| 412 |
+
2026-04-30 12:23:48,393 INFO backend.segmentation: [APPLY_TEXTURE] DONE 0.654s at 2026-04-30T18:23:48.393543+00:00
|
| 413 |
+
2026-04-30 12:35:04,237 INFO backend.segmentation: [UPLOAD_BG] START at 2026-04-30T18:35:04.237929+00:00
|
| 414 |
+
2026-04-30 12:35:04,237 INFO backend.segmentation: [JOB 0e62f0415d394dc8b28fae3fdce6ac1d] preparing_image progress=12
|
| 415 |
+
2026-04-30 12:35:04,252 INFO backend.segmentation: [JOB 0e62f0415d394dc8b28fae3fdce6ac1d] segmenting_with_sam2 progress=30 estimated_seconds=28.89164
|
| 416 |
+
2026-04-30 12:35:04,252 INFO services.gradio_client_service: Calling GPU Gradio Space: https://eduardo4547-hyper-reality-sam2-gpu.hf.space
|
| 417 |
+
2026-04-30 12:35:04,919 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/config "HTTP/1.1 200 OK"
|
| 418 |
+
2026-04-30 12:35:05,542 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/info?serialize=False "HTTP/1.1 200 OK"
|
| 419 |
+
2026-04-30 12:35:05,767 INFO httpx: HTTP Request: HEAD https://huggingface.co/api/telemetry/py_client/initiated "HTTP/1.1 200 OK"
|
| 420 |
+
2026-04-30 12:35:06,228 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/heartbeat/e02fbff5-268c-40cf-bacf-e1c35bcf4346 "HTTP/1.1 200 OK"
|
| 421 |
+
2026-04-30 12:35:06,341 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/upload "HTTP/1.1 200 OK"
|
| 422 |
+
2026-04-30 12:35:06,892 INFO httpx: HTTP Request: POST https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/join "HTTP/1.1 200 OK"
|
| 423 |
+
2026-04-30 12:35:07,458 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/queue/data?session_hash=e02fbff5-268c-40cf-bacf-e1c35bcf4346 "HTTP/1.1 200 OK"
|
| 424 |
+
2026-04-30 12:35:29,382 INFO httpx: HTTP Request: GET https://eduardo4547-hyper-reality-sam2-gpu.hf.space/gradio_api/file=/tmp/gradio/75fa9ee4d8e3aa2f3926aa662e35acdfbaa3f94163e61a68527474a5a60675c3/image.webp "HTTP/1.1 200 OK"
|
| 425 |
+
2026-04-30 12:35:29,438 INFO services.gradio_client_service: Gradio Space segmentation: entorno=🏙️ Fachada / Exterior motor=Híbrido Arquitectura (Cityscapes Grande + DINO Pequeño) mask_count=12
|
| 426 |
+
2026-04-30 12:35:29,439 INFO backend.segmentation: [JOB 0e62f0415d394dc8b28fae3fdce6ac1d] saving_masks progress=92
|
| 427 |
+
2026-04-30 12:35:29,463 INFO backend.segmentation: [JOB 0e62f0415d394dc8b28fae3fdce6ac1d] segments_meta saved (11 segments)
|
| 428 |
+
2026-04-30 12:35:29,463 INFO backend.segmentation: [JOB 0e62f0415d394dc8b28fae3fdce6ac1d] done mask_count=12
|
| 429 |
+
2026-04-30 12:35:29,463 INFO backend.segmentation: [UPLOAD_BG] DONE 25.226s at 2026-04-30T18:35:29.463948+00:00
|
| 430 |
+
2026-04-30 12:35:29,464 INFO backend.segmentation: Releasing resources (full_unload=False)
|
backend/main.py
CHANGED
|
@@ -12,7 +12,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
| 12 |
from fastapi.staticfiles import StaticFiles
|
| 13 |
|
| 14 |
from core.config import GRADIO_SPACE_URL, logger
|
| 15 |
-
from routers import auth, catalog, media, pages, segmentation
|
| 16 |
from services.sam2_service import lifespan
|
| 17 |
|
| 18 |
mimetypes.add_type("application/javascript", ".js", strict=True)
|
|
@@ -44,6 +44,7 @@ async def remove_x_frame_options(request: Request, call_next):
|
|
| 44 |
# Routers
|
| 45 |
app.include_router(pages.router)
|
| 46 |
app.include_router(auth.router)
|
|
|
|
| 47 |
app.include_router(media.router)
|
| 48 |
app.include_router(catalog.router)
|
| 49 |
app.include_router(segmentation.router)
|
|
|
|
| 12 |
from fastapi.staticfiles import StaticFiles
|
| 13 |
|
| 14 |
from core.config import GRADIO_SPACE_URL, logger
|
| 15 |
+
from routers import auth, catalog, media, pages, segmentation, share
|
| 16 |
from services.sam2_service import lifespan
|
| 17 |
|
| 18 |
mimetypes.add_type("application/javascript", ".js", strict=True)
|
|
|
|
| 44 |
# Routers
|
| 45 |
app.include_router(pages.router)
|
| 46 |
app.include_router(auth.router)
|
| 47 |
+
app.include_router(share.router)
|
| 48 |
app.include_router(media.router)
|
| 49 |
app.include_router(catalog.router)
|
| 50 |
app.include_router(segmentation.router)
|
backend/routers/__pycache__/catalog.cpython-312.pyc
CHANGED
|
Binary files a/backend/routers/__pycache__/catalog.cpython-312.pyc and b/backend/routers/__pycache__/catalog.cpython-312.pyc differ
|
|
|
backend/routers/__pycache__/pages.cpython-312.pyc
CHANGED
|
Binary files a/backend/routers/__pycache__/pages.cpython-312.pyc and b/backend/routers/__pycache__/pages.cpython-312.pyc differ
|
|
|
backend/routers/__pycache__/share.cpython-312.pyc
ADDED
|
Binary file (1.88 kB). View file
|
|
|
backend/routers/catalog.py
CHANGED
|
@@ -8,6 +8,14 @@ _CATALOG = [
|
|
| 8 |
"id": "acm",
|
| 9 |
"nombre": "ACM (Aluminio Compuesto)",
|
| 10 |
"descripcion": "Paneles de aluminio compuesto para fachadas y exteriores",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"productos": [
|
| 12 |
{
|
| 13 |
"id": "acm_white",
|
|
|
|
| 8 |
"id": "acm",
|
| 9 |
"nombre": "ACM (Aluminio Compuesto)",
|
| 10 |
"descripcion": "Paneles de aluminio compuesto para fachadas y exteriores",
|
| 11 |
+
"especificaciones": [
|
| 12 |
+
"Espesor de ACM 4mm.",
|
| 13 |
+
"Medida 1.22m x 2.44m",
|
| 14 |
+
"Fácil Mantenimiento.",
|
| 15 |
+
"Espesor de Aluminio 0.40mm.",
|
| 16 |
+
"Se puede doblar o biselar",
|
| 17 |
+
],
|
| 18 |
+
"url_detalle": "https://heyzine.com/flip-book/447fe3eb8e.html#page/16",
|
| 19 |
"productos": [
|
| 20 |
{
|
| 21 |
"id": "acm_white",
|
backend/routers/pages.py
CHANGED
|
@@ -65,47 +65,112 @@ async def widget_js():
|
|
| 65 |
(function () {
|
| 66 |
const _base = (function () {
|
| 67 |
const s = document.currentScript;
|
| 68 |
-
if (s && s.src) return s.src.replace(/\/widget\\.js.*$/, "");
|
| 69 |
return window.location.origin;
|
| 70 |
})();
|
| 71 |
|
| 72 |
function initWidget() {
|
| 73 |
const contenedor = document.getElementById("contenedor-saas");
|
| 74 |
-
if (!contenedor) {
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
}
|
| 78 |
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
return;
|
| 83 |
}
|
| 84 |
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
})
|
| 90 |
-
.then((res) => {
|
| 91 |
-
if (!res.ok) throw new Error("No se pudo generar el token de acceso.");
|
| 92 |
-
return res.json();
|
| 93 |
-
})
|
| 94 |
-
.then((data) => {
|
| 95 |
-
const iframe = document.createElement("iframe");
|
| 96 |
-
iframe.src = _base + "/app?token=" + encodeURIComponent(data.token);
|
| 97 |
-
iframe.style.width = "100%";
|
| 98 |
-
iframe.style.border = "0";
|
| 99 |
-
iframe.style.display = "block";
|
| 100 |
-
// data-height en el contenedor controla la altura (default: 100%)
|
| 101 |
-
const customHeight = contenedor.getAttribute("data-height") || "100%";
|
| 102 |
-
iframe.style.height = customHeight;
|
| 103 |
-
iframe.setAttribute("title", "Visualizador SaaS");
|
| 104 |
-
iframe.setAttribute("allowfullscreen", "");
|
| 105 |
-
iframe.setAttribute("allow", "camera; clipboard-write");
|
| 106 |
-
contenedor.appendChild(iframe);
|
| 107 |
-
})
|
| 108 |
-
.catch((err) => console.error(err));
|
| 109 |
}
|
| 110 |
|
| 111 |
if (document.readyState === "loading") {
|
|
|
|
| 65 |
(function () {
|
| 66 |
const _base = (function () {
|
| 67 |
const s = document.currentScript;
|
| 68 |
+
if (s && s.src) return s.src.replace(/\\/widget\\.js.*$/, "");
|
| 69 |
return window.location.origin;
|
| 70 |
})();
|
| 71 |
|
| 72 |
function initWidget() {
|
| 73 |
const contenedor = document.getElementById("contenedor-saas");
|
| 74 |
+
if (!contenedor) { console.warn("[HyperReality] No se encontró #contenedor-saas."); return; }
|
| 75 |
+
const clientId = contenedor.getAttribute("data-client-id");
|
| 76 |
+
if (!clientId) { console.warn("[HyperReality] Falta data-client-id en #contenedor-saas."); return; }
|
| 77 |
+
|
| 78 |
+
// Opciones configurables desde el div del cliente
|
| 79 |
+
const btnText = contenedor.getAttribute("data-button-text") || "🛋️ Ver en mi espacio";
|
| 80 |
+
const btnBg = contenedor.getAttribute("data-button-color") || "#0047AB";
|
| 81 |
+
const btnColor = contenedor.getAttribute("data-button-text-color") || "#ffffff";
|
| 82 |
+
|
| 83 |
+
// ── Estilos ────────────────────────────────────────────────────────────
|
| 84 |
+
const style = document.createElement("style");
|
| 85 |
+
style.textContent = [
|
| 86 |
+
".hr-btn{display:inline-flex;align-items:center;gap:8px;padding:14px 28px;",
|
| 87 |
+
"background:" + btnBg + ";color:" + btnColor + ";border:none;border-radius:50px;",
|
| 88 |
+
"font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;",
|
| 89 |
+
"box-shadow:0 4px 14px rgba(0,71,171,.35);transition:opacity .2s;}",
|
| 90 |
+
".hr-btn:hover{opacity:.85;}",
|
| 91 |
+
|
| 92 |
+
".hr-overlay{display:none;position:fixed;inset:0;z-index:2147483647;",
|
| 93 |
+
"background:rgba(0,0,0,.55);align-items:center;justify-content:center;}",
|
| 94 |
+
".hr-overlay.open{display:flex;animation:hrFade .2s ease;}",
|
| 95 |
+
|
| 96 |
+
".hr-modal{position:relative;width:100%;height:100%;max-width:100%;max-height:100%;",
|
| 97 |
+
"background:#fff;overflow:hidden;}",
|
| 98 |
+
|
| 99 |
+
".hr-close{position:absolute;top:12px;right:12px;z-index:10;width:38px;height:38px;",
|
| 100 |
+
"border-radius:50%;background:rgba(0,0,0,.65);color:#fff;border:none;cursor:pointer;",
|
| 101 |
+
"font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;",
|
| 102 |
+
"transition:background .15s;}",
|
| 103 |
+
".hr-close:hover{background:rgba(0,0,0,.9);}",
|
| 104 |
+
|
| 105 |
+
".hr-iframe{width:100%;height:100%;border:0;display:block;}",
|
| 106 |
+
|
| 107 |
+
"@keyframes hrFade{from{opacity:0}to{opacity:1}}",
|
| 108 |
+
].join("");
|
| 109 |
+
document.head.appendChild(style);
|
| 110 |
+
|
| 111 |
+
// ── Botón trigger ──────────────────────────────────────────────────────
|
| 112 |
+
const btn = document.createElement("button");
|
| 113 |
+
btn.className = "hr-btn";
|
| 114 |
+
btn.textContent = btnText;
|
| 115 |
+
contenedor.style.cssText = "display:inline-block;padding:0;margin:0;background:none;border:none;";
|
| 116 |
+
contenedor.appendChild(btn);
|
| 117 |
+
|
| 118 |
+
// ── Modal (overlay + caja + iframe) ────────────────────────────────────
|
| 119 |
+
const overlay = document.createElement("div");
|
| 120 |
+
overlay.className = "hr-overlay";
|
| 121 |
+
|
| 122 |
+
const modal = document.createElement("div");
|
| 123 |
+
modal.className = "hr-modal";
|
| 124 |
+
|
| 125 |
+
const closeBtn = document.createElement("button");
|
| 126 |
+
closeBtn.className = "hr-close";
|
| 127 |
+
closeBtn.innerHTML = "✕";
|
| 128 |
+
closeBtn.setAttribute("aria-label", "Cerrar");
|
| 129 |
+
|
| 130 |
+
const iframe = document.createElement("iframe");
|
| 131 |
+
iframe.className = "hr-iframe";
|
| 132 |
+
iframe.setAttribute("title", "Visualizador SaaS");
|
| 133 |
+
iframe.setAttribute("allowfullscreen", "");
|
| 134 |
+
iframe.setAttribute("allow", "camera; clipboard-write");
|
| 135 |
+
|
| 136 |
+
modal.appendChild(closeBtn);
|
| 137 |
+
modal.appendChild(iframe);
|
| 138 |
+
overlay.appendChild(modal);
|
| 139 |
+
document.body.appendChild(overlay);
|
| 140 |
+
|
| 141 |
+
// ── Lógica open / close ────────────────────────────────────────────────
|
| 142 |
+
let tokenReady = false;
|
| 143 |
+
|
| 144 |
+
function openModal() {
|
| 145 |
+
if (!tokenReady) {
|
| 146 |
+
fetch(_base + "/api/token", {
|
| 147 |
+
method: "POST",
|
| 148 |
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
| 149 |
+
body: "client_id=" + encodeURIComponent(clientId),
|
| 150 |
+
})
|
| 151 |
+
.then(function(res) {
|
| 152 |
+
if (!res.ok) throw new Error("No se pudo generar el token.");
|
| 153 |
+
return res.json();
|
| 154 |
+
})
|
| 155 |
+
.then(function(data) {
|
| 156 |
+
iframe.src = _base + "/app?token=" + encodeURIComponent(data.token);
|
| 157 |
+
tokenReady = true;
|
| 158 |
+
})
|
| 159 |
+
.catch(function(err) { console.error("[HyperReality]", err); });
|
| 160 |
+
}
|
| 161 |
+
overlay.classList.add("open");
|
| 162 |
+
document.body.style.overflow = "hidden";
|
| 163 |
}
|
| 164 |
|
| 165 |
+
function closeModal() {
|
| 166 |
+
overlay.classList.remove("open");
|
| 167 |
+
document.body.style.overflow = "";
|
|
|
|
| 168 |
}
|
| 169 |
|
| 170 |
+
btn.addEventListener("click", openModal);
|
| 171 |
+
closeBtn.addEventListener("click", closeModal);
|
| 172 |
+
overlay.addEventListener("click", function(e) { if (e.target === overlay) closeModal(); });
|
| 173 |
+
document.addEventListener("keydown", function(e) { if (e.key === "Escape") closeModal(); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
}
|
| 175 |
|
| 176 |
if (document.readyState === "loading") {
|
backend/routers/share.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import secrets
|
| 2 |
+
from datetime import datetime
|
| 3 |
+
|
| 4 |
+
from fastapi import APIRouter
|
| 5 |
+
from fastapi.responses import JSONResponse
|
| 6 |
+
from pydantic import BaseModel
|
| 7 |
+
|
| 8 |
+
router = APIRouter()
|
| 9 |
+
|
| 10 |
+
# In-memory store — ephemeral; lost on restart (acceptable for MVP)
|
| 11 |
+
SHARES: dict[str, dict] = {}
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class SharePayload(BaseModel):
|
| 15 |
+
output_filename: str
|
| 16 |
+
segment_filename: str | None = None
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
@router.post("/api/share")
|
| 20 |
+
async def create_share(payload: SharePayload):
|
| 21 |
+
share_id = secrets.token_urlsafe(12)
|
| 22 |
+
SHARES[share_id] = {
|
| 23 |
+
"output_filename": payload.output_filename,
|
| 24 |
+
"segment_filename": payload.segment_filename,
|
| 25 |
+
"created_at": datetime.utcnow().isoformat() + "Z",
|
| 26 |
+
}
|
| 27 |
+
return JSONResponse(content={"share_id": share_id})
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
@router.get("/api/share/{share_id}")
|
| 31 |
+
async def get_share(share_id: str):
|
| 32 |
+
data = SHARES.get(share_id)
|
| 33 |
+
if not data:
|
| 34 |
+
return JSONResponse(content={"error": "Sesión compartida no encontrada"}, status_code=404)
|
| 35 |
+
return JSONResponse(content=data)
|
backend/services/__pycache__/gradio_client_service.cpython-312.pyc
CHANGED
|
Binary files a/backend/services/__pycache__/gradio_client_service.cpython-312.pyc and b/backend/services/__pycache__/gradio_client_service.cpython-312.pyc differ
|
|
|
backend/services/__pycache__/image_service.cpython-312.pyc
CHANGED
|
Binary files a/backend/services/__pycache__/image_service.cpython-312.pyc and b/backend/services/__pycache__/image_service.cpython-312.pyc differ
|
|
|
backend/uploads/1-275136.jpg
ADDED
|
backend/uploads/demo-room.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
backend/uploads/demo-room_edit_1a845a92.jpg
ADDED
|
backend/uploads/demo-room_edit_1a845a92_edit_578a8993.jpg
ADDED
|
backend/uploads/demo-room_edit_1bf348a5.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4_edit_e89c0b46.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4_edit_e89c0b46_edit_4d9e827f.jpg
ADDED
|
backend/uploads/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4_edit_e89c0b46_edit_4d9e827f_edit_fa40f959.jpg
ADDED
|
backend/uploads/demo-room_edit_3755debd.jpg
ADDED
|
backend/uploads/demo-room_edit_3755debd_edit_cdb044f5.jpg
ADDED
|
Git LFS Details
|
backend/uploads/demo-room_edit_3755debd_edit_cdb044f5_edit_cc649bbc.jpg
ADDED
|
Git LFS Details
|
backend/uploads/demo-room_edit_54633c31.jpg
ADDED
|
backend/uploads/demo-room_edit_54633c31_edit_24c2f1e8.jpg
ADDED
|
backend/uploads/demo-room_edit_82e85445.jpg
ADDED
|
backend/uploads/demo-room_edit_82e85445_edit_878ffaa4.jpg
ADDED
|
backend/uploads/demo-room_edit_99428b3a.jpg
ADDED
|
backend/uploads/demo-room_edit_99428b3a_edit_7c7271fd.jpg
ADDED
|
backend/uploads/demo-room_edit_99428b3a_edit_7c7271fd_edit_83dc006f.jpg
ADDED
|
backend/uploads/demo-room_edit_d6398299.jpg
ADDED
|
backend/uploads/demo-room_edit_d6398299_edit_ebcf4a91.jpg
ADDED
|
backend/uploads/masks/1-275136.jpg_labels.png
ADDED
|
backend/uploads/masks/1-275136.jpg_labels_meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"segments": [{"index": 1, "type": "wall", "label": "Pared 1", "area_ratio": 0.0087}, {"index": 2, "type": "object", "label": "Objeto 1", "area_ratio": 0.0011}, {"index": 3, "type": "object", "label": "Objeto 2", "area_ratio": 0.0024}, {"index": 5, "type": "object", "label": "Objeto 3", "area_ratio": 0.0}, {"index": 6, "type": "object", "label": "Objeto 4", "area_ratio": 0.0}, {"index": 7, "type": "wall", "label": "Pared 2", "area_ratio": 0.0167}, {"index": 8, "type": "object", "label": "Objeto 5", "area_ratio": 0.0005}, {"index": 9, "type": "object", "label": "Objeto 6", "area_ratio": 0.0}, {"index": 10, "type": "object", "label": "Objeto 7", "area_ratio": 0.0001}, {"index": 11, "type": "wall", "label": "Pared 3", "area_ratio": 0.1844}, {"index": 12, "type": "wall", "label": "Pared 4", "area_ratio": 0.4059}]}
|
backend/uploads/masks/demo-room.jpg_labels.png
CHANGED
|
|
backend/uploads/masks/demo-room.jpg_labels_meta.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"segments": [{"index": 1, "type": "
|
|
|
|
| 1 |
+
{"segments": [{"index": 1, "type": "window", "label": "Ventana 1", "area_ratio": 0.0992}, {"index": 3, "type": "window", "label": "Ventana 2", "area_ratio": 0.0711}, {"index": 4, "type": "window", "label": "Ventana 3", "area_ratio": 0.0519}, {"index": 5, "type": "floor", "label": "Piso 1", "area_ratio": 0.0444}, {"index": 6, "type": "floor", "label": "Piso 2", "area_ratio": 0.1092}, {"index": 8, "type": "profile", "label": "Perfil 1", "area_ratio": 0.004}, {"index": 10, "type": "object", "label": "Objeto 1", "area_ratio": 0.004}, {"index": 12, "type": "wall", "label": "Pared 1", "area_ratio": 0.0163}, {"index": 13, "type": "window", "label": "Ventana 4", "area_ratio": 0.0684}, {"index": 14, "type": "object", "label": "Objeto 2", "area_ratio": 0.0001}, {"index": 15, "type": "object", "label": "Objeto 3", "area_ratio": 0.0}, {"index": 16, "type": "window", "label": "Ventana 5", "area_ratio": 0.1105}, {"index": 17, "type": "window", "label": "Ventana 6", "area_ratio": 0.0246}, {"index": 18, "type": "window", "label": "Ventana 7", "area_ratio": 0.1643}]}
|
backend/uploads/masks/demo-room_edit_1a845a92_edit_578a8993_labels.png
ADDED
|
backend/uploads/masks/demo-room_edit_1a845a92_labels.png
ADDED
|
backend/uploads/masks/demo-room_edit_1bf348a5_labels.png
ADDED
|
backend/uploads/masks/demo-room_edit_267f76ba_edit_27e4cf8c_edit_c43f50c5_edit_5f339c23_edit_78bb10a0_edit_5fb5fdca_edit_73c8bbe7_edit_fd8980e4_edit_e89c0b46_edit_4d9e827f_edit_fa40f959_labels.png
ADDED
|