pytorch-lesson-zh
pytorch-lesson-zh copied to clipboard
AlexNet.ipynb FC Layer Param number Wrong
hi, When creating Class AlexNet, self.fc goes like this:
self.fc = nn.Sequential( nn.Linear(11256, 4096), nn.ReLU(inplace=True), nn.Dropout(0.5), nn.Linear(4096, 4096), nn.ReLU(inplace=True), nn.Dropout(0.5), nn.Linear(4096, n_class) # AlexNet上面是1000 ...如果测试的话用MNIST则可以使用10 )
but the first nn.Linear should be nn.Linear(66256,4096). When pytorch update to 1.0 some of the code in the project need to be changed like tensor.data[0] . THX.
Sorry the first nn.Linear should be 11256 ,becouse of the CIFAR10 resize of 96
yeah, some of the code were out of date. I will take some time to update them. THX ~