bearpaw / PyraNet

Code for "Learning Feature Pyramids for Human Pose Estimation" (ICCV 2017)
Apache License 2.0
221 stars 58 forks source link

confusing code #9

Open argman opened 6 years ago

argman commented 6 years ago

local ResidualUp = n >= 2 and ResidualPyramid or Residual

as i am not familar with lua, what does this mean ? if n >=2 use res_pyra and others residual? but the parameters of the two function is not the same

xiashh commented 6 years ago

If n >= 2, then ResidualUp = ResidualPyramid Else, ResidualUp = Residual