Closed Caesarr007 closed 9 months ago
as follows:
Applying threed_front_bedroom filtering Loading dataset 6812 / 6813 Loading dataset with 3879 rooms Saving training statistics for dataset with bounds: {'translations': (array([-2.7625005, 0.045 , -2.75275 ]), array([2.77844175, 3.6248396 , 2.81854277])), 'sizes': (array([0.03998288, 0.02000002, 0.012772 ]), array([2.8682 , 1.770065, 1.698315])), 'angles': (array([-3.14159265]), array([3.14159265]))} to path_to_output_dir/dataset_stats.txt Applying threed_front_bedroom filtering Loading dataset 6812 / 6813 {'translations': (array([-2.7625005, 0.045 , -2.75275 ]), array([2.77844175, 3.6248396 , 2.81854277])), 'sizes': (array([0.0350001 , 0.02000002, 0.012772 ]), array([2.8682 , 1.770065, 1.698315])), 'angles': (array([-3.14159265]), array([3.14159265]))} Loading dataset with 4041 rooms 1it [00:00, 5.29it/s] Traceback (most recent call last): File "preprocess_data.py", line 271, in main(sys.argv[1:]) File "preprocess_data.py", line 258, in main renderables = get_textured_objects_in_scene( File "/userhome3/wangzheng/ATISS-from-paper/ATISS-master/scripts/utils.py", line 138, in get_textured_objects_in_scene raw_mesh = TexturedMesh.from_file(model_path) File "/userhome3/wangzheng/anaconda3/envs/atiss-from-paper/lib/python3.8/site-packages/simple_3dviz/renderables/textured_mesh.py", line 300, in from_file mtl = read_material_file(mesh.material_file) File "/userhome3/wangzheng/anaconda3/envs/atiss-from-paper/lib/python3.8/site-packages/simple_3dviz/io/init.py", line 27, in read_material_file return { File "/userhome3/wangzheng/anaconda3/envs/atiss-from-paper/lib/python3.8/site-packages/simple_3dviz/io/material.py", line 25, in init self.read(filename) File "/userhome3/wangzheng/anaconda3/envs/atiss-from-paper/lib/python3.8/site-packages/simple_3dviz/io/material.py", line 113, in read self._Ns = float([ IndexError: list index out of range
i presonally think this error happens when rendering objects in the room? but i have no idea how to fix. i can get some results as the paste
hi I solve this problem. lib\site-packages\simple_3dviz\io\material.py ''' self._Ns = float([ float(l.strip().split()[1:][0]) for l in lines if l.strip().startswith("Ns") ][0]) ''' self._Ns = 400
as follows:
Applying threed_front_bedroom filtering Loading dataset 6812 / 6813 Loading dataset with 3879 rooms Saving training statistics for dataset with bounds: {'translations': (array([-2.7625005, 0.045 , -2.75275 ]), array([2.77844175, 3.6248396 , 2.81854277])), 'sizes': (array([0.03998288, 0.02000002, 0.012772 ]), array([2.8682 , 1.770065, 1.698315])), 'angles': (array([-3.14159265]), array([3.14159265]))} to path_to_output_dir/dataset_stats.txt Applying threed_front_bedroom filtering Loading dataset 6812 / 6813 {'translations': (array([-2.7625005, 0.045 , -2.75275 ]), array([2.77844175, 3.6248396 , 2.81854277])), 'sizes': (array([0.0350001 , 0.02000002, 0.012772 ]), array([2.8682 , 1.770065, 1.698315])), 'angles': (array([-3.14159265]), array([3.14159265]))} Loading dataset with 4041 rooms 1it [00:00, 5.29it/s] Traceback (most recent call last): File "preprocess_data.py", line 271, in
main(sys.argv[1:])
File "preprocess_data.py", line 258, in main
renderables = get_textured_objects_in_scene(
File "/userhome3/wangzheng/ATISS-from-paper/ATISS-master/scripts/utils.py", line 138, in get_textured_objects_in_scene
raw_mesh = TexturedMesh.from_file(model_path)
File "/userhome3/wangzheng/anaconda3/envs/atiss-from-paper/lib/python3.8/site-packages/simple_3dviz/renderables/textured_mesh.py", line 300, in from_file
mtl = read_material_file(mesh.material_file)
File "/userhome3/wangzheng/anaconda3/envs/atiss-from-paper/lib/python3.8/site-packages/simple_3dviz/io/init.py", line 27, in read_material_file
return {
File "/userhome3/wangzheng/anaconda3/envs/atiss-from-paper/lib/python3.8/site-packages/simple_3dviz/io/material.py", line 25, in init
self.read(filename)
File "/userhome3/wangzheng/anaconda3/envs/atiss-from-paper/lib/python3.8/site-packages/simple_3dviz/io/material.py", line 113, in read
self._Ns = float([
IndexError: list index out of range
i presonally think this error happens when rendering objects in the room? but i have no idea how to fix. i can get some results as the paste