GithubHelp home page GithubHelp logo

Comments (12)

prabindh avatar prabindh commented on September 2, 2024

You could potentially refer to the latest code from the branch darknet-cpp-windows, as it is fixed there (https://github.com/prabindh/darknet/tree/darknet-cpp-windows/src/utils.c). I will pull in the fix to the master after some more productising of the windows branch. Thanks for noting this.

from darknet.

prabindh avatar prabindh commented on September 2, 2024

Could you also update the gcc version being used on your side ?

from darknet.

eisneim avatar eisneim commented on September 2, 2024

@prabindh

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.3.0

from darknet.

eisneim avatar eisneim commented on September 2, 2024

@prabindh the window version's code fixed the issue πŸ‘

from darknet.

eisneim avatar eisneim commented on September 2, 2024

@prabindh just a quick question, i was using original and your fork of darknet-cpp to train my custom datasets(7 classes, 500x500resolution), they all fails randomly with segmentatiion fault after random iterations

[1]    31987 segmentation fault  ./darknet-cpp detector train fsd/fsd.data fsd/yolo-fsd.cfg

I'm not sure whether this is caused by my image files, so i use opencv to convert all my images to jpg, then i try to put tons of printf() in source code to see which step messed up the memory, but still no luck. maybe this time i'll try to use photoshop to batch conversion

any suggestions?
thanks

from darknet.

prabindh avatar prabindh commented on September 2, 2024

from darknet.

eisneim avatar eisneim commented on September 2, 2024

it just failed randomly, i logged out the image and label just before it fails, but i can see no issue.

i wrote a chrome extension for creating annotation: https://github.com/eisneim/dl_annotator scripts folder contains my scripts to generate yolo labels,
each label:

2 0.265196 0.137720 0.570056 0.515504

my scripts ensures each rect box's x,y value must be greater than 0 and less than 1.0
maybe i should check it's order, minX, minY always first

anyway, thanks for your reply

from darknet.

prabindh avatar prabindh commented on September 2, 2024

After looking at https://github.com/eisneim/dl_annotator/blob/master/scripts/yolo_darknet.py, specifically

x = min(x1, x2) / width

It appears that the labelling is incorrect. Please check https://github.com/prabindh/euclid/blob/master/euclid.py for the coordinate format for the bounding boxes of Yolo.

from darknet.

eisneim avatar eisneim commented on September 2, 2024

@prabindh oh my! i just realized x y are center of rectangle! thank you

from darknet.

prabindh avatar prabindh commented on September 2, 2024

Please do not forget to close the issue if it is fixed. Thanks. You can raise a separate issue, for the crash that happens if labels are invalid.

from darknet.

eisneim avatar eisneim commented on September 2, 2024

thanks for your help, i got 30fps results

from darknet.

prabindh avatar prabindh commented on September 2, 2024

Just to let you know, the windows port has now been merged into master. Thx

from darknet.

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.