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

Display label correctly #9

Open
hyunkyung12 opened this issue Jan 7, 2018 · 12 comments
Open

Display label correctly #9

hyunkyung12 opened this issue Jan 7, 2018 · 12 comments

Comments

@hyunkyung12
Copy link

I want to display the label in my box.
However, it is displayed in black.
How can I display it?
What files or folders should I change?

1 2

@hyunkyung12
Copy link
Author

I did it ! thank you!

@deepkshikha
Copy link

deepkshikha commented Jan 26, 2018

#hyunkyung12 what have you done to display the label what file you changed??

@hyunkyung12
Copy link
Author

https://github.com/pjreddie/darknet/tree/master/data/labels
Copy the png files here and paste it into the path where the error occurred.
For example, if there is an error that there is no png file in the data folder, paste it into the data folder.

@deepkshikha
Copy link

You are running easy-yolo or other one. I am not understanding why should paste .png in data folder?

@hyunkyung12
Copy link
Author

easy yolo was created to reduce train time in yolo.
I think the creator of easy yolo forgot to copy the data / labels folder while creating a new repository based on yolo's file.
Also, if you look at the source code, you have to specify the location of the label data. Actually, there is no such directory in the easy-yolo repository.
So if you create a folder called data / labels directly, the label will be displayed normally.

@deepkshikha
Copy link

deepkshikha commented Jan 26, 2018 via email

@hyunkyung12
Copy link
Author

in src / image.c,

image **load_alphabet()
{
    int i, j;
    const int nsize = 8;
    image **alphabets = calloc(nsize, sizeof(image));
    for(j = 0; j < nsize; ++j){
        alphabets[j] = calloc(128, sizeof(image));
        for(i = 32; i < 127; ++i){
            char buff[256];
            sprintf(buff, "data/labels/%d_%d.png", i, j);
            alphabets[j][i] = load_image_color(buff, 0, 0);
        }
    }
    return alphabets;
}

Here you can see the directory and format of the files you pasted!

@hyunkyung12 hyunkyung12 reopened this Jan 26, 2018
@deepkshikha
Copy link

deepkshikha commented Jan 26, 2018

@hyunkyung12 Thanks it works for me.

@nidhinkk
Copy link

nidhinkk commented Feb 1, 2018

Got error while executing the make train command.

/home/username/Videos/easy-yolo-master/darknet detector train cfg/easy.data cfg/easy.cfg darknet19_448.conv.23
easy
No input parameters supplied: Success
darknet: ./src/utils.c:193: error: Assertion `0' failed.
Makefile:89: recipe for target 'train' failed
make: *** [train] Aborted (core dumped)

I am new in this training procedures.
I have some confusions in changing the easy.cfg and easy.data files. May they also leads to the error.
Can anybody help. Thank you

@hyunkyung12
Copy link
Author

How did you enter your command?
Since all the command options are specified in the Makefile,
Just type make train to start the train.
If you want to change the command option, you can modify the Makefile.

@nidhinkk
Copy link

nidhinkk commented Feb 1, 2018

While configuring the model what all things needed to be calculated . Currently I am training a single class with images of resolution 640*480. Do I need to change any commands specified in the configure model part.
Thanks for the quick reply

@deepkshikha
Copy link

@hyunkyung12 Is there some way to calculate FPR value which is = FP/(FP+TN) for single class classification. Or can we draw ROC curve for one class.

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

3 participants