https://wjunsea.tistory.com/99
__init __ and forward functions for BasicBlock to look like following
instantiate two instances of BasicBlock inside __init __ function of class ResNet . The channels are specified for your convenience.
Train the network for 20 epochs and paste the training graph here:
Remove the residual connection, like the picture below.(you will need to modify the forward function of BasicBlock) retrain the model and see if performance has changed.

✅
Residual Connection을 더하는것은 모든 상황에서 성능을 올리지 않습니다. 애초에 resnet 논문도 깊은 네트워크에서 학습의 안정성을 높인다고 했지, 저희와 같이 shallow 한 network에서도 성능향상을 가져온다는 취지가 아니었습니다.
https://docs.pytorch.org/vision/0.8/transforms.html
trans = transforms.Compose([
transforms.Resize((self.size, self.size)),
**ADD YOUR TRANSFORMS HERE
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.457, 0.407], std=[0.5, 0.5, 0.5]),
])
