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

Training images #4

Open
HarshRangwala opened this issue Apr 17, 2020 · 2 comments
Open

Training images #4

HarshRangwala opened this issue Apr 17, 2020 · 2 comments

Comments

@HarshRangwala
Copy link

HarshRangwala commented Apr 17, 2020

  1. How many training images did you collect before converting them into a .npz file?
  2. What does this line mean exactly? I feel like its meaning corresponds to the number of photos I should collect otherwise I will get an error during training phase?
    image_array1 = np.zeros((1,38400),'float')
    Please answer soon. Its urgent!!

Thank you.

@kkmehta03
Copy link
Owner

kkmehta03 commented Apr 23, 2020

Hey Harsh!

  1. It's been a while, but I think we collected close to about 3000 images in total for each direction.
  2. So image_array1 is actually a numpy array initialised with the total number of pixels.
    Say, you have a color (implying that it's 3 channel) image of size 120 * 320, then your
    image_array1 = np.zeros((1,115200), 'float')
    I remember that 38400 is a product for a single channel image (black and white), where the pixel size was 120 * 320 pixels.
    Since you're using labelling code, I think this could suffice for you

@HarshRangwala
Copy link
Author

HarshRangwala commented Apr 24, 2020

Okay. Thank you! I got the idea.
Sorry but I am a little confused between

np.zeros((1,115200), 'float' and np.zeros((1, 38400), 'float'

If I choose the wrong number then I get an error during model training (saying something like vale needs to be the same).
could you please explain how can one decide which correct number to choose i.e how to derive the meaning of the number?

To add an example:
lets say I collect 1k or 3k image samples of each direction how should I decide to choose the image_array? just wanna understand that.

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

2 participants