-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add MultiBox API #8382
Add MultiBox API #8382
Conversation
9fe86bf
to
f8e5d58
Compare
f8e5d58
to
49c50c9
Compare
48ff4b0
to
4a0a08f
Compare
4a0a08f
to
99c9dbf
Compare
python/paddle/v2/fluid/nets.py
Outdated
@@ -107,6 +108,38 @@ def __extend_list__(obj): | |||
return pool_out | |||
|
|||
|
|||
def img_conv_with_bn(input, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not wrap this API in Fluid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
from tensor import concat | ||
from ops import reshape | ||
from nn import transpose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import ops
import nn
下面调用:ops.reshape
ops.transpose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
031f88a
to
2e4cbde
Compare
2e4cbde
to
e9fa7a7
Compare
MultiBox Detector)<https://arxiv.org/abs/1512.02325>`_ . | ||
|
||
Args: | ||
inputs(list): The list of input Variables, the format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list|tuple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Args: | ||
inputs(list): The list of input Variables, the format | ||
of all Variables is NCHW. | ||
num_classes(int): The number of calss. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
calss --> classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
inputs(list): The list of input Variables, the format | ||
of all Variables is NCHW. | ||
num_classes(int): The number of calss. | ||
min_sizes(list, optional, default=None): The length of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list --> list|tuple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
inputs(list): The list of input Variables, the format | ||
of all Variables is NCHW. | ||
num_classes(int): The number of calss. | ||
min_sizes(list, optional, default=None): The length of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
length --> number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
of all Variables is NCHW. | ||
num_classes(int): The number of calss. | ||
min_sizes(list, optional, default=None): The length of | ||
min_size is used to compute the the number of prior box. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
to min_ratio and max_ratio. | ||
max_sizes(list, optional, default=None): The length of max_size | ||
is used to compute the the number of prior box. | ||
min_ratio(int): If the min_sizes is None, min_ratio and min_ratio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min_ratio --> max_ratio ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
and max_size according to min_ratio and max_ratio. | ||
flip(bool, optional, default=False): Whether to flip | ||
aspect ratios. | ||
name(str, optional, None): Name of the prior box layer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(str|None)
compute the number of prior box. | ||
base_size(int): the base_size is used to get min_size | ||
and max_size according to min_ratio and max_ratio. | ||
flip(bool, optional, default=False): Whether to flip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool|None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
act=conv_act, | ||
use_cudnn=use_cudnn) | ||
|
||
if conv_with_batchnorm: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please double check here.
7f99f6a
to
f1ba425
Compare
054fcdc
to
58ec4ea
Compare
58ec4ea
to
8ea2288
Compare
5248729
to
6e79d01
Compare
fix #8399