I resolved it by replacing self.network.forward_features(inputs) with self.network.module.forward_features(inputs).
The problem seems to be that DataParallel does only forward specific function to the encapsulated model. This might also be a problem in other parts of the project (e.g. passers.py line 95).
Dear Ciprian, first of all, thanks for this great project!
I think i found a bug when following the 'Quick Start'-section in the README.md. When running
i receive this AttributeError
originating from the following line https://github.com/cipriancorneanu/dnn-topology/blob/9c50a0883c6bfd92675a67828926196a6f95ffcc/passers.py#L93
I resolved it by replacing
self.network.forward_features(inputs)
withself.network.module.forward_features(inputs)
.The problem seems to be that DataParallel does only forward specific function to the encapsulated model. This might also be a problem in other parts of the project (e.g. passers.py line 95).