Giter Site home page Giter Site logo

Comments (9)

Steve-Tod avatar Steve-Tod commented on September 2, 2024

Not very sure about that. Cause I don't see copy in that lineπŸ˜‚ Can you try to debug by printing the mesh_pose_list_path before the line?

from giga.

WeiChengTseng avatar WeiChengTseng commented on September 2, 2024

I use pdb to print the value of mesh_pose_list_path, and the result is

mesh_pose_list_path='./data/data_packed_train_raw/mesh_pose_list/000000239c3e45008bde52d1a78d5c12.npz'

It seems that the code is correct since it correctly gets .npz file. My random guess is the format of .npz files is not shared by different computation infrastructures. I believe the correct is correct since I can use the scripts provided by the repo. to generate synthetic data and retrieve the occupancy of the generated synthetic data. However, using exactly the same dataset is still essential when comparing ML approaches πŸ˜‚

Is it possible to obtain your raw data that is not saved in .npz?

from giga.

Steve-Tod avatar Steve-Tod commented on September 2, 2024

I save the data directly to .npz with np.savez_compressed() as in here. Is it possible that the problem is with the version of numpy? I'm using 1.19.2.

from giga.

WeiChengTseng avatar WeiChengTseng commented on September 2, 2024

I also use numpy==1.19.2 πŸ˜‚.
After some testing, I think that the issue is not caused by the version of numpy. I guess the issue is caused by saving vgn to .npz fille.

I use your data generation script (generate_data_parallel.py) to create synthetic dataset, and here is a normal .npz

array([['data/urdfs/packed/train/Sauerkraut_800_tex_visual.obj',
        0.728894702126209,
        <vgn.utils.transform.Transform object at 0x7f6639ae03d0>],
       ['data/urdfs/packed/train/nutrigrain_apple_cinnamon_visual.obj',
        0.7023577187764145,
        <vgn.utils.transform.Transform object at 0x7f6639ae0430>],
       ['data/urdfs/packed/train/pringles_bbq_visual.obj',
        0.8754874818703685,
        <vgn.utils.transform.Transform object at 0x7f6639ae0460>]],
      dtype=object)

We can find that the .npz files contain vgn object, but the vgn package is installed locally which may also depend on the computation infrastructure. Therefore, the vgn objects saved with np.savez_compressed() are not valid across different devices. I also verify this hypothesis via creating a dataset with one computer and load the dataset with another one, and a similar issue happens.

from giga.

Steve-Tod avatar Steve-Tod commented on September 2, 2024

I see your point. That's a possible cause. Maybe I should store the 4X4 transformation matrix rather than this Transform object.πŸ€”

from giga.

WeiChengTseng avatar WeiChengTseng commented on September 2, 2024

I think that is a feasible solution. It will be wonderful if you can provide your dataset in that format.

from giga.

RolandZhu avatar RolandZhu commented on September 2, 2024

Hi, thanks for open-source the code! I encountered the same problem that .npz in the raw dataset cannot be loaded here.
Any idea how I can resolve this issue without generating the dataset again?

from giga.

Steve-Tod avatar Steve-Tod commented on September 2, 2024

Sorry, I forgot to translate the data. I'll work on it in a few days.

from giga.

Steve-Tod avatar Steve-Tod commented on September 2, 2024

Hi guys, I've updated the data and the code. Now we save and load the transformation matrix instead of the Transform object for the mesh poses. And I update the data. Note that only raw data need to be updated.

Please pull the new commit and try the new data and give me feedback, thank you!

from giga.

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.