brownvc / deep-synth

Public code release for our SIGGRAPH 2018 paper "Deep Convolutional Priors for Indoor Scene Synthesis"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I render door and window data

JackW987 opened this issue · comments

commented

Thanks for your wonderful works about deal with suncg data.
I have some problem about TopDownView.render() function.
when I render bedroom , I get the (visualization,(floor,wall,nodes)),but I want to get the (floor,wall,window,door,nodes),I can't find options that can make window and door information add in the tuple.So how can I render door and window data in the bedroom dataset.
Looking forward to your reply.
job

If I recall correctly, doors and windows are part of nodes.This (

self.door_window_nodes = []
for node in nodes:
category = RenderedScene.category_map.get_final_category(node["modelId"])
if category in ["door", "window"]:
node["category"] = category
self.door_window_nodes.append(node)
elif load_objects:
node["category"] = RenderedScene.cat_to_index[category]
self.object_nodes.append(node)
) is an example that handles them.

commented

If I recall correctly, doors and windows are part of nodes.This (

self.door_window_nodes = []
for node in nodes:
category = RenderedScene.category_map.get_final_category(node["modelId"])
if category in ["door", "window"]:
node["category"] = category
self.door_window_nodes.append(node)
elif load_objects:
node["category"] = RenderedScene.cat_to_index[category]
self.object_nodes.append(node)

) is an example that handles them.

Thanks for your reply! I get it