Closed vibss2397 closed 5 years ago
The total number of parameters should be around 16M. The channels of Conv in RDB are not the same as those in ESRGAN implementation. https://github.com/xinntao/ESRGAN/blob/b7c263b8c8f201a9123921d83dfe9bd73b38ec0c/RRDBNet_arch.py#L14-L23
Hey @xinntao correct me if I'm wrong but in pytorch conv2d the first argument is input channels while the second one is the output channels, while in keras the argument filter is only for output channels, which according to your code must be the same
Yes, your understanding of pytorch is right.
For the rdb_block, the output channel in pytorch code is gc=32
, while in your code, the output channel is filters=64
.
wow thanks the parameters are way down now and i can train it in the original configuration. Thanks :)
Hi, so i was building out an esrgan on my own and tried to keep it as faithful to the paper as possible. However, the thing is that the number of parameters is quite large(55M for 16 rrdb blocks) . I wanted to ask if what i was doing was right or is there some error, below i have attached my architecture for my rrdbnet