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

YoloV3 and YoloV3-Tiny change input image size in .cfg file #40

Open
jonghoon-park opened this issue Oct 22, 2019 · 5 comments
Open

YoloV3 and YoloV3-Tiny change input image size in .cfg file #40

jonghoon-park opened this issue Oct 22, 2019 · 5 comments

Comments

@jonghoon-park
Copy link

jonghoon-park commented Oct 22, 2019

I had change input image size in .cfg file.
To convert .meta, and .pb file is fine.

but run the detection, it cannot detect any object.
The YoloV3 case:
image size : 800x608 is cannot detected anything.
image size : 608x608 is fine.
The YoloV3-Tiny case:
image size : 640x480 is cannot detected anything.
image size : 608x608 is fine.
image size : 416x416 is fine.

I want to change input image size.
Do i something wrong? Plz Let me know.
Thanks

@ambr89
Copy link

ambr89 commented Oct 30, 2019

Hello,
can you share with me the code to detect image?

@jonghoon-park
Copy link
Author

Hello,
can you share with me the code to detect image?

Hello @ambr89
which do you want code and images?
i use DW2TF recent version of github

Thanks

@ambr89
Copy link

ambr89 commented Oct 31, 2019

Hi @jonghoon-park
with DW2TF you can obtain
yolov3-tiny.pb
yolov3-tiny.ckpt.meta
yolov3-tiny.ckpt.meta
yolov3-tiny.ckpt.data-00000-of-00001

How you can test this new weight?

@jonghoon-park
Copy link
Author

@jonghoon-park
Copy link
Author

tf.placeholder argument will be change 'width, height' to 'height, width'
in source code
def cfg_net(B, H, W, C, net, param, weights_walker, stack, output_index, scope, training, const_inits, verbose):
width = int(param["width"])
height = int(param["height"])
channels = int(param["channels"])
net = tf.placeholder(tf.float32, [None, height, width, channels], name=scope)
return net

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