yunshengtian / Assemble-Them-All

[SIGGRAPH Asia 2022] Assemble Them All: Physics-Based Planning for Generalizable Assembly by Disassembly
http://assembly.csail.mit.edu
MIT License
139 stars 15 forks source link

/subdivide_batch.py // edge_length_dict // dose not exist #8

Closed Ludwig-Karl closed 11 months ago

Ludwig-Karl commented 11 months ago

Hello, thank you very much for the work you have done. Can you help me with subdeviding the meshes.

for all processes I get this:

Process Process-6: Traceback (most recent call last): File "/opt/conda/envs/assembly/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/opt/conda/envs/assembly/lib/python3.7/multiprocessing/process.py", line 99, in run self._target(*self._args, *self._kwargs) File "/mnt/Assemble-Them-All/utils/parallel.py", line 6, in parallel_worker result = worker(args) File "/mnt/Assemble-Them-All/assets/subdivide.py", line 98, in subdivide_assembly new_mesh = subdivide_to_size(mesh, max_edge) File "/mnt/Assemble-Them-All/assets/subdivide.py", line 34, in subdivide_to_size longest_edge_length = edge_length_dict[longest_edge] KeyError: (12338, 12300)

yunshengtian commented 11 months ago

Hi @Ludwig-Karl ,

This error is because the dependency library sortedcontainers in subdivide.py seems to have issues on different platforms. I will later post a shared link to the subdivided meshes.

yunshengtian commented 11 months ago

Link to subdivided two-part dataset: https://drive.google.com/uc?id=1Ws3Cduh81iCqvVZ3pRskUIhDgZvgOyu0 Link to subdivided multi-part dataset: https://drive.google.com/uc?id=1dQRH5K4GCd1HebkWqHd4LuazWaIvEdtA

yunshengtian commented 11 months ago

I'll close it if there is no further issues