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

Problems with my own dataset #4

Open
niuxiansen2 opened this issue Jul 8, 2019 · 4 comments
Open

Problems with my own dataset #4

niuxiansen2 opened this issue Jul 8, 2019 · 4 comments

Comments

@niuxiansen2
Copy link

hello @ZongxuPan

Is the size of the input image fixed? Why do I encounter the following problems with my own data set?

Traceback (most recent call last):
File "Drbox.py", line 469, in
net.train()
File "Drbox.py", line 284, in train
input_im[k] = im.reshape(IM_HEIGHT, IM_WIDTH, IM_CDIM).astype('float32')
ValueError: cannot reshape array of size 496500 into shape (300,300,3)

@ZongxuPan
Copy link
Owner

hello @ZongxuPan

Is the size of the input image fixed? Why do I encounter the following problems with my own data set?

Traceback (most recent call last):
File "Drbox.py", line 469, in
net.train()
File "Drbox.py", line 284, in train
input_im[k] = im.reshape(IM_HEIGHT, IM_WIDTH, IM_CDIM).astype('float32')
ValueError: cannot reshape array of size 496500 into shape (300,300,3)

Please set IM_HEIGHT and IM_WIDTH as the desired values.

@ZongxuPan
Copy link
Owner

hello @ZongxuPan

Is the size of the input image fixed? Why do I encounter the following problems with my own data set?

Traceback (most recent call last):
File "Drbox.py", line 469, in
net.train()
File "Drbox.py", line 284, in train
input_im[k] = im.reshape(IM_HEIGHT, IM_WIDTH, IM_CDIM).astype('float32')
ValueError: cannot reshape array of size 496500 into shape (300,300,3)

Besides, FEA_HEIGHT4, FEA_WIDTH4, FEA_HEIGHT3, FEA_WIDTH3 are needed to be reset. FEA_HEIGHT4 and FEA_WIDTH4 are the size of the feature map of conv4_3. FEA_HEIGHT3 and FEA_WIDTH3 are the size of the feature map of conv3_3.

@niuxiansen2
Copy link
Author

hello @ZongxuPan
Is the size of the input image fixed? Why do I encounter the following problems with my own data set?
Traceback (most recent call last):
File "Drbox.py", line 469, in
net.train()
File "Drbox.py", line 284, in train
input_im[k] = im.reshape(IM_HEIGHT, IM_WIDTH, IM_CDIM).astype('float32')
ValueError: cannot reshape array of size 496500 into shape (300,300,3)

Besides, FEA_HEIGHT4, FEA_WIDTH4, FEA_HEIGHT3, FEA_WIDTH3 are needed to be reset. FEA_HEIGHT4 and FEA_WIDTH4 are the size of the feature map of conv4_3. FEA_HEIGHT3 and FEA_WIDTH3 are the size of the feature map of conv3_3.

Okay, I understand,Thank you very much!

@niuxiansen2
Copy link
Author

hello @ZongxuPan
Is the size of the input image fixed? Why do I encounter the following problems with my own data set?
Traceback (most recent call last):
File "Drbox.py", line 469, in
net.train()
File "Drbox.py", line 284, in train
input_im[k] = im.reshape(IM_HEIGHT, IM_WIDTH, IM_CDIM).astype('float32')
ValueError: cannot reshape array of size 496500 into shape (300,300,3)

Besides, FEA_HEIGHT4, FEA_WIDTH4, FEA_HEIGHT3, FEA_WIDTH3 are needed to be reset. FEA_HEIGHT4 and FEA_WIDTH4 are the size of the feature map of conv4_3. FEA_HEIGHT3 and FEA_WIDTH3 are the size of the feature map of conv3_3.

When I train with my own data set, I don't know how to set the values of PRIOR_HEIGHTS and PRIOR_WEIGHTS. What is your method?

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