You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
Reconstruct 3D in 3 simple simple steps! Please see the demo notebook for a working example.
# 1. Load the pre-trained checkpointmodel_3d=VNet()
model_3d.load_state_dict(torch.load("<Path to the Model>"))
model_3d.eval()
# 2. Preprocess an RGB image with associated object mask according to our model's input interfaceinp_img=generate_input_img(
img_rgb,
img_mask,
)
# 3. Obtain 3D prediction!out_mesh=extract_trimesh(model_3d, inp_img, "cuda")
# To save the meshout_mesh.export("out_mesh_pymcubes.obj")
# To visualize the meshout_mesh.show()
If you find the project useful for your research, please consider citing:-
@inproceedings{vasudev2022ss3d,
title={Pre-train, Self-train, Distill: A simple recipe for Supersizing 3D Reconstruction},
author={Vasudev, Kalyan Alwala and Gupta, Abhinav and Tulsiani, Shubham},
year={2022},
booktitle={Computer Vision and Pattern Recognition (CVPR)}
}
ss3d is released under the CC-BY-NC 4.0 license. See LICENSE for additional details. However the Sire implementation is additionally licensed under the MIT license (see NOTICE for additional details).
About
Code release for "Pre-train, Self-train, Distill A simple recipe for Supersizing 3D Reconstruction"