Code Monkey home page Code Monkey logo

Comments (3)

gustavz avatar gustavz commented on July 23, 2024 1

Hey Victor,

that did the job! Great thanks!
I added sorted() to all os.listdir() functions, as they use arbitary order, just to make sure if there could be similar problems with other python / OS versions.

from handtracking.

victordibia avatar victordibia commented on July 23, 2024

Hi @gustavz ,

Thanks for pointing these out, this feedback is quite insightful.

  • Different Results:
    The main reason the images and bounding boxes are visualized is to catch the exact sort of error you just showed. For some reason, the bounding boxes in your screen shots are not what I observe when I run same code. Below is a link to how the bounding box and polygon.mat is processed at my end.
    ALL boxes are drawn correctly.
    https://www.youtube.com/watch?v=PA0lBI_hp4w&feature=youtu.be

image

  • Mac vs Ubuntu might be the problem:
    As to why bounding boxes are mismatched on your end, one thing I notice immediately is my tests are on a Mac (you are using Ubuntu). As you pointed out, it is possible that there are differences in how python os code processes directories in Ubuntu vs Mac (I did not factor this in .. relatively new to python). I think the fix suggested by @csaldi in issue #3 should work. i.e sorting image_path array in ascending order. My suspicion is that on a mac, the os directory walkthrough code returns files in the sorted ascending order but does not do the same on Ubuntu.

  • Potential Fix:
    I just pushed a fix which sorts the image_path array. I don't have access to an ubuntu machine, but will try to do this over the next couple days.

Let me know if the fix works for you.

Thanks for the feedback!

-V.

from handtracking.

victordibia avatar victordibia commented on July 23, 2024

Great!
Let me know how the results from training with both datasets go!

-V.

from handtracking.

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.