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

how do I input bigger size image ? #19

Open
sakib160205029 opened this issue May 7, 2021 · 1 comment
Open

how do I input bigger size image ? #19

sakib160205029 opened this issue May 7, 2021 · 1 comment

Comments

@sakib160205029
Copy link

how do I input a bigger size image?

I get an error when I put bigger size image :

IndexError Traceback (most recent call last)
in
27 for n in ran:
28 if (i+m)>=0 and (i+m)<=255 and (j+n)>=0 and (j+n)<=255:
---> 29 summ = summ + w[ox+m][oy+n]*img[i+m][j+n]
30 pot[i][j] = summ
31

IndexError: index 217 is out of bounds for axis 0 with size 217

@daydayupzhang
Copy link

have you adjust the parameters 'm' which indicates the input neurons? And you can set 'pixel' to do so.
Here is the example
pixel_x = 50
# pixel_x = 16
m = pixel_x*pixel_x #Number of neurons in first layer

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