Closed linzhiqiu closed 3 years ago
Did you ever figure this out?
@linzhiqiu @beluis3d These lines are ensuring that the weights can be loaded by the model created previously from torchvision. Since it works by assigning weights by matching the names, the prefix from saved weights is being trimmed. I don't think there should be any issue with the number of GPUs and that code.
I noticed that in "main_lincls.py", the default loading script is written as
Could someone explain what these lines are doing? My experiments show that this won't work if we have only a single GPU.