Skip to content

Commit

Permalink
Merge pull request #219 from bacetiner/master
Browse files Browse the repository at this point in the history
Addressed a minor bug in FacadeParser
  • Loading branch information
bacetiner authored Jul 24, 2024
2 parents 3fd92db + 0535cc8 commit e5a0280
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions brails/modules/FacadeParser/FacadeParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# Barbaros Cetiner
#
# Last updated:
# 01-09-2024
# 07-23-2024

import math
import torch
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit e5a0280

Please sign in to comment.