hnc-cad
hnc-cad copied to clipboard
How to sample cond with onshape models
I don't understand how we're supposed to sample conditionally from our own onshape model, even with a trained conditional generator.
I tried to use it to complete my onshape creations, following the procedure from skexgen:
- I first download the json file with DeepCAD onshape parser
- transformed the json files into obj files and normalize then with your SkexGen procedure.
- finally, I applied the data_process/convert.py file from this repo (with format 'model').
The problem comes from the fact that to be used, the data must have all its solid_uid, profile_uids and loop_uids in the codebook. From what I could understand, the solid_uid is just the order in which the model appears in the DeepCAD dataset and the others uids derive directly from it.
I tried to force the uids to be contained in the codebooks but obviously the results are not great even with a mid-trained model (~125 epochs).
What is the correct procedure to complete our own OnShape models? I'd be very interested in knowing if such a procedure exists.