Round1 vs Round2 PyTorch Model Difference

39 views
Skip to first unread message

Majurski, Michael Paul (Fed)

unread,
Aug 3, 2020, 6:55:29 PM8/3/20
to trojai-c...@list.nist.gov
When moving from Round1 to Round2 dataset models we noticed that the Round2 models are saved as being on the CPU. They needed an explicit copy of the model weights to the GPU.

Loading the model with 'model = torch.load(filepath).cuda()' was enough to get the weights loaded correctly. 

This example trojan 'detector' correctly loads and inferences the Round2 models.


-----------------------------
Michael Majurski
Computer Vision Scientist
NIST | ITL | SSD | ISG
Reply all
Reply to author
Forward
0 new messages