Giter VIP home page Giter VIP logo

Comments (4)

czq142857 avatar czq142857 commented on July 20, 2024 1

Hi Supriya,

You were using an old version of the point sampling code. Please use the correct version provided in this repo. Here's the link: https://github.com/czq142857/IM-NET/tree/master/point_sampling

You need to prepare 256^3 voxels to use that code. You also need to rewrite a few lines to read .binvox files instead of .mat files.

The old point-sampling code can be used if you wish so. You just need to make sure the points are scaled correctly. Specifically, rewrite this line in modelAE.py according to the sampling resolution (note the number 256):

			self.data_points = (data_dict['points_'+str(self.sample_vox_size)][:].astype(np.float32)+0.5)/256-0.5

Best,
Zhiqin

from im-net-pytorch.

supriya-gdptl avatar supriya-gdptl commented on July 20, 2024

Thank you so much for the help @czq142857 !

I am using 2_gather_256vox_16_32_64.py to sample point-value pairs. I noticed that, you are transforming coordinates from Shapenet.v1 to Shapenet.v2 on line 104. What is the purpose of this conversion? The ready-to-use dataset is based on ShapeNetCore.v1 or ShapeNetCore.v2 dataset?

Also, just want to confirm, I don't need to use flood-filling code to make the mesh watertight, as 2_gather_256vox_16_32_64.py uses voxel carving for this purpose. Is that right?

Thank you for your time.

from im-net-pytorch.

czq142857 avatar czq142857 commented on July 20, 2024

The conversion does not have a lot of meaning. You can use either Shapenet v1 or v2 coordinates based on your preferences.

The ready-to-use dataset is based on ShapeNetCore.v1, but in ShapeNetCore.v2 coordinates.

Right. You do not need to use flood-filling code to make the mesh watertight, as 2_gather_256vox_16_32_64.py uses voxel carving for this purpose.

from im-net-pytorch.

supriya-gdptl avatar supriya-gdptl commented on July 20, 2024

Thank you for the help!

from im-net-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.