GithubHelp home page GithubHelp logo

Comments (6)

traveller59 avatar traveller59 commented on July 21, 2024

sorry for late reply.

  1. target collision is estimated in noise_per_object, if collision happens, current noise is dropped and try next noise until valid noise is found.
  2. I haven't tried this because I don't think this can increase performance.

from second.pytorch.

godspeed1989 avatar godspeed1989 commented on July 21, 2024

Thanks!
For question 1, do you mean the function noise_per_object_v3_ in second.core.preprocess file?
I am afraid can't figure out your explanation from it.
Could you give me a little more tips?

from second.pytorch.

traveller59 avatar traveller59 commented on July 21, 2024

the function noise_per_object_v3_ first generate noises with shape [num_boxes, num_try, noise_ndim], then apply noise sequentially. For every box, this function firstly compute location after apply noise, then test collision between this box and other boxes, if collision exists, then drop this noise and try next one.

from second.pytorch.

godspeed1989 avatar godspeed1989 commented on July 21, 2024

Thank you very much.
The collision detection and selection are done in function noise_per_box_v2_

from second.pytorch.

godspeed1989 avatar godspeed1989 commented on July 21, 2024

Sorry to bother you again.

I notice in all .config files, global_random_rotation_range_per_object under database_sampler are all set to [0,0]
Which means _enable_global_rot are always False.

self._enable_global_rot = False
if global_rot_range is not None:
if not isinstance(global_rot_range, (list, tuple, np.ndarray)):
global_rot_range = [-global_rot_range, global_rot_range]
else:
assert shape_mergeable(global_rot_range, [2])
if np.abs(global_rot_range[0] -
global_rot_range[1]) >= 1e-3:
self._enable_global_rot = True

and prep.noise_per_object_v3_ will never be called.

if self._enable_global_rot:
# place samples to any place in a circle.
prep.noise_per_object_v3_(
boxes,
None,
valid_mask,
0,
0,
self._global_rot_range,
num_try=100)

That's wired. Does this function really useful?

Thank you in advance.

from second.pytorch.

godspeed1989 avatar godspeed1989 commented on July 21, 2024

Sorry to bother you again.
But i still want to know the answer about my last question. :)

from second.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.