Enigma-li / Free2CAD

MIT License
137 stars 21 forks source link

How to Generate 3D CAD Models from 2D Sketches Using Given Model Configuration? #6

Open irfanrah opened 10 months ago

irfanrah commented 10 months ago

Hello,

I've successfully obtained the configuration details for several models, but I'm unclear on how to utilize them for converting 2D sketches into 3D CAD models. Specifically, I'm puzzled about where to input my 2D sketch and how the regNet_300k model can generate a 3D CAD model from a sketch, especially when dealing with unusual shapes.

Here are the input and output specifications for each model:

embedSNet Input and Output Names and Shapes:

gpTFNet_250k Input and Output Names and Shapes:

regNet_300k Input and Output Names and Shapes:

Given these details, could you guide me on the correct process for feeding my 2D sketch into the system and using regNet_300k to create a 3D CAD model? Any insights or examples would be greatly appreciated.

Thank you!

Enigma-li commented 6 months ago

I think you should read about the demo code under the folder dataAndModel. By only running the network is not enough, geometry optimization is needed.

But the signature tells you how to fill in tensors for the network.

irfanrah commented 6 months ago

@Enigma-li, thanks for your reply. However, could you provide a more detailed tutorial on using the available checkpoints model for feeding the 2D sketch and outputting the generated 3D CAD? I still find the README.md confusing. Thank you.