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

Size of training samples? #1

Open
anusharao55 opened this issue Nov 15, 2016 · 3 comments
Open

Size of training samples? #1

anusharao55 opened this issue Nov 15, 2016 · 3 comments

Comments

@anusharao55
Copy link

Should the images be of size 21x21? Because when I try to load the training images, I get the following error followed by a segmentation fault:

"Warning: Image size differs from 21x21 (ignoring sample)"

Also, what should be the format of the POS_SAMPLE_FILE and NEG_SAMPLE_FILE be?

I created 2 text files as described below:

POS_SAMPLE_FILE.txt
image_path number_of_object_instances object_location_in_the_image

NEG_SAMPLE_FILE.txt
image path

@dilpreetdan
Copy link

Could you find an answer to this: Also, what should be the format of the POS_SAMPLE_FILE and NEG_SAMPLE_FILE be?

@alexdemartos
Copy link
Owner

alexdemartos commented May 16, 2017

Hi,

the format of positive and negative sample files is the B/W values (can be floats from 0 to 1) of each sample, one per line. E.g. If base resolution is 21x21, each line of the samples file should have 441 float values:

0.25 0.03 0.04 0.55 0.88 [...] (sample 1)
0.00 0.10 0.19 0.05 0.98 [...] (sample 2)
etc.

@Samad08
Copy link

Samad08 commented Apr 13, 2023

Hello,
I am also having this problem with the base-resolution. How to choose a number that will fit ?

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

4 participants