You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing python train.py --dataset svhn --model wideresnet --learning_rate 0.01 --epochs 160 --cutout --length 20 I get the following error:
Traceback (most recent call last):
File "train.py", line 149, in <module>
dropRate=0.4)
File "Cutout/model/wide_resnet.py", line 58, in __init__
self.block1 = NetworkBlock(n, nChannels[0], nChannels[1], block, 1, dropRate)
File "Cutout/model/wide_resnet.py", line 38, in __init__
self.layer = self._make_layer(block, in_planes, out_planes, nb_layers, stride, dropRate)
File "Cutout/model/wide_resnet.py", line 41, in _make_layer
for i in range(nb_layers):
TypeError: 'float' object cannot be interpreted as an integer
This error stems from the division here. For Python3.x, integer division must be forced like this: n = (depth - 4) // 6
The text was updated successfully, but these errors were encountered:
When executing
python train.py --dataset svhn --model wideresnet --learning_rate 0.01 --epochs 160 --cutout --length 20
I get the following error:This error stems from the division here. For Python3.x, integer division must be forced like this:
n = (depth - 4) // 6
The text was updated successfully, but these errors were encountered: