Halfish / cs231n

斯坦福 cs231n 作业代码实践
628 stars 226 forks source link

卷积后的特征图长宽计算疑有误 #6

Open lhyfst opened 6 years ago

lhyfst commented 6 years ago

https://github.com/Halfish/cs231n/blob/d355c0c61296d80c7709907271c548d2994e9990/assignment2/cs231n/layers.py#L506-L507

https://github.com/Halfish/cs231n/blob/d355c0c61296d80c7709907271c548d2994e9990/assignment2/cs231n/layers.py#L540-L541

应为:

    out_height = 1 +  (H - pool_height) / stride
    out_width = 1 + (W - pool_width) / stride