PaddleClas icon indicating copy to clipboard operation
PaddleClas copied to clipboard

identity_head.py 和 RecModel 的问题

Open AllenWrong opened this issue 2 years ago • 1 comments

在develop分支

下面是code链接: https://github.com/PaddlePaddle/PaddleClas/blob/6edd612453cdef44b379fdf07fe1244e40750e15/ppcls/arch/gears/identity_head.py#L9 和 https://github.com/PaddlePaddle/PaddleClas/blob/6edd612453cdef44b379fdf07fe1244e40750e15/ppcls/arch/init.py#L104 可能存在冲突

如果self.head是IdentityHead则https://github.com/PaddlePaddle/PaddleClas/blob/6edd612453cdef44b379fdf07fe1244e40750e15/ppcls/arch/init.py#L104这里的y将会是一个dict

AllenWrong avatar Jun 12 '23 05:06 AllenWrong

https://github.com/PaddlePaddle/PaddleClas/blob/6edd612453cdef44b379fdf07fe1244e40750e15/ppcls/arch/gears/init.py#L30 这里没有提供对IndetityHead的支持,是不是IndetityHead被弃用了

AllenWrong avatar Jun 12 '23 05:06 AllenWrong