From 926c3f8978f354812f6b982abf61d0feb33fe766 Mon Sep 17 00:00:00 2001 From: bacetiner Date: Wed, 24 Jul 2024 07:41:51 -0700 Subject: [PATCH] Addressed a minor bug in the FacadeParser --- brails/modules/FacadeParser/FacadeParser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/brails/modules/FacadeParser/FacadeParser.py b/brails/modules/FacadeParser/FacadeParser.py index a18ebb0..d79c8b5 100644 --- a/brails/modules/FacadeParser/FacadeParser.py +++ b/brails/modules/FacadeParser/FacadeParser.py @@ -37,7 +37,7 @@ # Barbaros Cetiner # # Last updated: -# 01-09-2024 +# 07-23-2024 import math import torch @@ -569,8 +569,8 @@ def get_depth_map(depthfile, imsize, bndangles): doorPoly = gen_bbox(doorContour) x,y = doorPoly.exterior.xy - angleBottomDoor = ((imHeight/2 - max(y))/(imHeight/2))*math.pi/facadeParserv2 - ffe = depthmap_cl_depths[0]*math.sin(angleBottomDoor) - depthmap_cl_depths[-1]*math.sin(angleBottom))*3.28084 + angleBottomDoor = ((imHeight/2 - max(y))/(imHeight/2))*math.pi + ffe = depthmap_cl_depths[0]*math.sin(angleBottomDoor) - depthmap_cl_depths[-1]*math.sin(angleBottom)*3.28084 if ffe<0: ffe = 0 @@ -590,7 +590,7 @@ def get_depth_map(depthfile, imsize, bndangles): self.predictions = self.predictions.round({'roofeaveheight': 1, 'buildingheight': 1, - 'roofpitch': 2}, + 'roofpitch': 2, 'firstfloorheight': 1}) # Unload the model from GPU