CaNet
CaNet copied to clipboard
Some questions about the code
Error when the code runs to ‘turn off’ function, should model.module be modified to the model? The pytorch model does not seem to have the '.module' attribute, only the '.modules'.
https://github.com/icoz69/CaNet/blob/fdce9462d03ff93bc11f4795df94fbbf60b1c8ca/train.py#L103
Did you comment this line? When single GPU is available, using model=nn.DataParallel(model,[0]
) may fix this problem.
0 and 1 are their GPU devices. If you have just one device, [0] will work as you described.