Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to train SVR #12

Closed
Leerw opened this issue Aug 10, 2020 · 2 comments
Closed

How to train SVR #12

Leerw opened this issue Aug 10, 2020 · 2 comments

Comments

@Leerw
Copy link

Leerw commented Aug 10, 2020

I am confused with how to train if-net in SVR mode, since the human reconstruction data in not available now, I want to apply if-net to my own one-side-view point cloud.
In voxelized_data_shapenet.py

else:
voxel_path = path + '/voxelized_point_cloud_{}res_{}points.npz'.format(self.res, self.pointcloud_samples)
occupancies = np.unpackbits(np.load(voxel_path)['compressed_occupancies'])
input = np.reshape(occupancies, (self.res,)*3)
points = []
coords = []
occupancies = []
for i, num in enumerate(self.num_samples):
boundary_samples_path = path + '/boundary_{}_samples.npz'.format(self.sample_sigmas[i])
boundary_samples_npz = np.load(boundary_samples_path)
boundary_sample_points = boundary_samples_npz['points']
boundary_sample_coords = boundary_samples_npz['grid_coords']
boundary_sample_occupancies = boundary_samples_npz['occupancies']
subsample_indices = np.random.randint(0, len(boundary_sample_points), num)
points.extend(boundary_sample_points[subsample_indices])
coords.extend(boundary_sample_coords[subsample_indices])
occupancies.extend(boundary_sample_occupancies[subsample_indices])

Should I change the voxelized_point_cloud*.npz to voxelized_oneside_point_cloud*.npz created from one-side-view point cloud and keep the boundary_sample.npz as the same created from ground truth mesh?

@jchibane
Copy link
Owner

Hi,

that's exactly correct. :)

Best,
Julian

@jchibane
Copy link
Owner

jchibane commented Aug 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants