Skip to content

Commit

Permalink
Merge pull request #217 from bacetiner/master
Browse files Browse the repository at this point in the history
Added the updated facade segmentation model
  • Loading branch information
bacetiner authored Jul 18, 2024
2 parents 10274e1 + 587dc90 commit 631341c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions brails/modules/FacadeParser/FacadeParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ def install_default_model(model_path='tmp/models/facadeParser.pth'):

if not os.path.isfile(model_path):
print('Loading default facade parser model file to tmp/models folder...')
torch.hub.download_url_to_file('https://zenodo.org/record/10448047/files/facadeParserv2.pth',
model_path, progress=False)
model_url = 'https://zenodo.org/record/10448047/files/facadeParserv2.pth'
torch.hub.download_url_to_file(model_url, model_path,
progress=False)
print('Default facade parser model loaded')
else:
print(f"Default facade parser model at {model_path} loaded")
Expand Down

0 comments on commit 631341c

Please sign in to comment.