Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wall representation #21

Open
simonsapiel opened this issue Aug 18, 2020 · 0 comments
Open

Wall representation #21

simonsapiel opened this issue Aug 18, 2020 · 0 comments

Comments

@simonsapiel
Copy link

What is the correct way to interpret the House modules wall representation? This wasn't clear whilist looking at the source code for house.py. In the source it seems to be generated by the following block

for w in self.new_walls:
      end_points = w.end_points.round().astype('int').tolist()
      if w.name == "Wall":
            self.representation['walls'].append([end_points, ['wall', 1, 1]])
      else:
            self.representation['walls'].append([end_points, ['wall', 2, 1]])

Trying this with a sample data point I got that

house.representation['walls']

returns

[[[[25, 260], [474, 260]], ['wall', 1, 1]],
 [[[474, 260], [474, 680]], ['wall', 1, 1]],
 [[[468, 787], [468, 997]], ['wall', 1, 1]],
 [[[235, 997], [468, 997]], ['wall', 1, 1]],
 [[[25, 1003], [230, 1003]], ['wall', 1, 1]],
 [[[25, 260], [25, 1003]], ['wall', 1, 1]],
 [[[24, 62], [24, 241]], ['wall', 1, 1]],
 [[[474, 62], [474, 241]], ['wall', 1, 1]],
 [[[39, 71], [460, 71]], ['wall', 2, 1]],
 [[[235, 745], [235, 997]], ['wall', 1, 1]],
 [[[235, 745], [400, 745]], ['wall', 1, 1]],
 [[[40, 745], [230, 745]], ['wall', 1, 1]],
 [[[411, 691], [411, 776]], ['wall', 1, 1]],
 [[[411, 776], [477, 776]], ['wall', 1, 1]],
 [[[477, 691], [477, 776]], ['wall', 1, 1]],
 [[[411, 691], [477, 691]], ['wall', 1, 1]]]

so the question is that should I interpret the first two lists as (xmin, ymin), (xmax, ymax)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant