Closed KenanSh closed 1 year ago
Hi @KenanSh,
Am I bit confused with your message and I am not certain what is the problem you are facing...
Here are some remarks that might be helpful:
floor_plan_texture_images
there are only textures for the floors not for the 3D-FUTURE objects.texture.png
. Therefore, you are not supposed to rename them.For more details please refer to the original implementation.
As this issue is not related to ATISS but to simple-3dviz, I am closing it for now, but feel free to reopen it if you don't figure it out.
Best, Despi
Hello, i am getting this issue when executing
preprocess_data.py
the problem appears when i try to put the path to texture directory to the 3D-FRONT-texture folder which has this structure:and so on
this structure gives this error:
(senior) C:\Users\kenan\Desktop\master\scripts>python preprocess_data.py path_to_output_dir D:\Senior\3D-FRONT D:\Senior\3D-FUTURE-model D:\Senior\3D-FUTURE-model\model_info.json D:\test\3D-FRONT-texture --dataset_filtering threed_front_bedroom
main(sys.argv[1:])
File "preprocess_data.py", line 261, in main
render(
File "C:\Users\kenan\Desktop\master\scripts\utils.py", line 183, in render
scene.add(r)
File "C:\Users\kenan\anaconda3\envs\senior\lib\site-packages\simple_3dviz\scenes.py", line 60, in add
renderable.init(self._ctx)
File "C:\Users\kenan\anaconda3\envs\senior\lib\site-packages\simple_3dviz\renderables\textured_mesh.py", line 160, in init
self.material = self._material
File "C:\Users\kenan\anaconda3\envs\senior\lib\site-packages\simple_3dviz\renderables\textured_mesh.py", line 203, in material
self._texture = self._prog.ctx.texture(
File "C:\Users\kenan\anaconda3\envs\senior\lib\site-packages\moderngl__init__.py", line 1771, in texture
res.mglo, res._glo = self.mglo.texture(size, components, data, samples, alignment, dtype, internal_format or 0)
_moderngl.Error: data size mismatch 4194304 != 1048576
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 2487it [2:13:16, 3.22s/it] Traceback (most recent call last): File "preprocess_data.py", line 271, in
also before that i have this structure the original one is files inside many sub folders as follow:
and so on
this structure when executing gives the error:
PermissionError: [Errno 13] Permission denied
However when executing this command on demo file in this path
../demo/floor_plan_texture_images
the code runs correctly but i think i should run the code on the whole textures from dataset not the example ones am i right?