Coder Social home page Coder Social logo

Comments (5)

hkchengrex avatar hkchengrex commented on August 22, 2024

It is to speed up processing.
If the object is really small it probably cannot be caught in the global step anyway. That being said you can still tune these thresholds for better results.

from cascadepsp.

GOZGOXGOYGO avatar GOZGOXGOYGO commented on August 22, 2024

I'm not sure if here is a little mistake. It seems that the choice value should be of 0, 1, 2 or 3. Thanks.

def get_random_structure(size):
    choice = np.random.randint(4)

    if choice == 1:
        return cv2.getStructuringElement(cv2.MORPH_RECT, (size, size))
    elif choice == 2:
        return cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (size, size))
    elif choice == 3:
        return cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (size, size//2))
    elif choice == 4:
        return cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (size//2, size))

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

Ah, it is a silly mistake. Thank you for pointing it out! ๐Ÿ‘
Luckily it should not cause significant issues.
We will just leave it there and add a comment since our model is already trained with this bug.

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

On second thought I will fix it and add a comment saying that the provided model is trained with the mentioned bug.
I have no idea how this silly bug can sneak into the code...

from cascadepsp.

GOZGOXGOYGO avatar GOZGOXGOYGO commented on August 22, 2024

Thanks! It doesn't matter. This is undoubtedly an outstanding work. Fixing this little bug would theoretically yield better performance.

from cascadepsp.

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.