GithubHelp home page GithubHelp logo

Comments (3)

MartinSmeyer avatar MartinSmeyer commented on May 12, 2024 3

Hi @wangg12 ! :-)
Objects are dropped onto the plane, maybe the title of the example is a bit misleading. For some objects the probability of staying upright is really small (however I certainly saw the duck and can upright before). If the goal is to generate a dataset for pose estimation with a bias towards upright objects, you could (1) select the initial poses to be upright before falling (rot_sampler in the config) (2) lower the dropping height (3) use the on_surface_sampler for placing the objects onto the plane before activating physics (4) reduce cube size --> physics --> increase cube size --> physics.

I guess (3) could make most sense to you?

from blenderproc.

ideas-man avatar ideas-man commented on May 12, 2024

@wangg12 What do you mean by "standing"?
If I understood it correctly, then I would say that they are not supposed to.

    {
      "module": "object.ObjectPoseSampler",
      "config":{
        "objects_to_sample": {
          "provider": "getter.Entity",
          "conditions": {
            "cp_physics": True
          }
        },
        "pos_sampler":{
          "provider":"sampler.Uniform3d",
          "max":[0.2, 0.2, 0.6],
          "min":[-0.2, -0.2, 0.2]
        },
        "rot_sampler":{
          "provider":"sampler.UniformSO3"
        }
      }
    },
    {
      "module": "object.PhysicsPositioning",
      "config": {
        "min_simulation_time": 3,
        "max_simulation_time": 10,
        "check_object_interval": 1,
        "solver_iters": 25,
        "steps_per_sec": 100
      }
    },

These two modules are responsible for physics positioning and the resulting object pose depends on the outcome of running these two modules.

  • object.ObjectPoseSampler samples poses for objects in a bounding box;
  • object.PhysicsPositioning toggles a somewhat realistic physics animation - objects fall down.
    If you want to preserve the orientation of the object right after loading and just place them on the ground, then you may need to make some mods to the config file for sure. From the top of my head I would say that maybe try manipulators.EntityManipulator and just move the objects manually (or maybe look at the object.OnSurfaceSampler + sampler.UpperRegionSampler).

from blenderproc.

wangg12 avatar wangg12 commented on May 12, 2024

For "standing", I mean the bottom of the object should be on the ground. I was just wondering, for the example in this repo, is it possible to get such standing poses for these objects? If so, what's the probability? In my observation, almost all of my rendered images didn't show such cases.

from blenderproc.

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.