I assume summary loops over all registered modules inside the model and prints them out.
Since you’ve registered resnet18 as self.base_model and again its first three layers as self.layer0 in an nn.Sequential container, these modules will be printed as duplicates.