Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./yolo_mark.cmd #10

Open
Abduoit opened this issue Jul 13, 2017 · 12 comments
Open

./yolo_mark.cmd #10

Abduoit opened this issue Jul 13, 2017 · 12 comments

Comments

@Abduoit
Copy link

Abduoit commented Jul 13, 2017

I have two issues
First, when I run yolo_mark.cmd file I get the following error

abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/darknet/Yolo_mark/x64/Release$ ./yolo_mark.cmd
Example how to start marking bouded boxes for training set Yolo v2
./yolo_mark.cmd: line 4: yolo_mark.exe: command not found
./yolo_mark.cmd: line 7: pause: command not found

Second,
When I want to train it, I use darknet.exe detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23
the file could be not found !!!

@AlexeyAB
Copy link
Owner

  1. Do you use Linux or Windows?

  2. Did you successfully compiled Yolo_mark by using MSVS2015 and OpenCV 2.4.x?

  3. Where is created file yolo_mark.exe, is there Yolo_mark/x64/Release/?

@Abduoit
Copy link
Author

Abduoit commented Jul 13, 2017

Thanks for reply @AlexeyAB
1- I am using Linux
2- Yes I compiled it correctly, using OpenCV 2.4.9. I saw the images of airplanes and birds

3- I don't have file yolo_mark.exe , there is file yolo_mark.cmd in /home/abdulrahman/Yolo_mark/x64/Release

@AlexeyAB
Copy link
Owner

From the manual: https://github.com/AlexeyAB/Yolo_mark#yolo_mark

To test, simply run

  • on Windows: x64/Release/yolo_mark.cmd
  • on Linux ./linux_mark.sh

So run ./linux_mark.sh

@Abduoit
Copy link
Author

Abduoit commented Jul 13, 2017

I already ran it, i saw my own images without bounding boxes, cuz I haven't trained yet,

I need to train it with my custom images, I think I did something wrong with the following step (3.2), I think I put the files in wrong directory. Could u tell me what does this mean near with executable darknet-file

3.2 Put files: yolo-obj.cfg, data/train.txt, data/obj.names, data/obj.data, darknet19_448.conv.23 and directory data/img near with executable darknet-file, and start training: darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23

So when I run this

darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23

I got

abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/Yolo_mark/x64/Release$ darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23
bash: darknet: command not found

@AlexeyAB
Copy link
Owner

I already ran it, i saw my own images without bounding boxes, cuz I haven't trained yet,

At first you should mark all of your images by ./linux_mark.sh


darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23

On linux you should run binary files in a such way: ./darknet instead of darknet

@Abduoit
Copy link
Author

Abduoit commented Jul 13, 2017

screenshot from 2017-07-13 16-52-03

should I run ./darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23 from ~/Yolo_mark/x64/Release$

As you see in the above pic there is no file ./darknet how can I run it

@AlexeyAB
Copy link
Owner

For Linux - you should download Darknet for Linux: https://github.com/pjreddie/darknet
Compile it, find the runable file darknet, put near all files and run ./darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23

@Abduoit
Copy link
Author

Abduoit commented Jul 13, 2017

I have Darknet, it works properly
So I put the runable file darknet as in this pic
11

I ran ./darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23
I got this pic
12

@AlexeyAB
Copy link
Owner

Put files: yolo-obj.cfg, data/train.txt, data/obj.names, data/obj.data, darknet19_448.conv.23 and directory data/img near with executable darknet-file, but not vice versa :)

https://github.com/AlexeyAB/Yolo_mark#yolo_mark

3.2 Put files: yolo-obj.cfg, data/train.txt, data/obj.names, data/obj.data, darknet19_448.conv.23 and directory data/img near with executable darknet-file, and start training: darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23

Also read this: https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects

@SheebanWasi
Copy link

When I use to train coco-data sheebans-Air:data sheeban$ detector train cfg/coco.data cfg/yolov3.cfg darknet53.conv.74 -bash: detector: command not found
I am in data directory because when I use sheebans-Air:data sheeban$ ./darknet detector train cfg/coco.data cfg/yolov3.cfg darknet53.conv.74 it throws error darknet directory not found

@lalithkumawat
Copy link

1. Do you use Linux or Windows?

2. Did you successfully compiled Yolo_mark by using MSVS2015 and OpenCV 2.4.x?

3. Where is created file `yolo_mark.exe`, is there `Yolo_mark/x64/Release/`?

not able to compile .sln in vs in windows :(

@sky93
Copy link

sky93 commented Mar 18, 2020

Can anybody provide a .exe file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants