Hi !
I’m new to pytorch and try to run IDSGAN. (https://github.com/imoken1122/IDSGAN)
I got RunTime error(below) during running IDS-WGAN.py
Traceback (most recent call last):
File “C:/논문/IDSGAN-master/IDSGAN-master/IDS_WGAN.py”, line 47, in
ids_model.load_state_dict(param)
File “C:\anaconda3\envs\tutorial\lib\site-packages\torch\nn\modules\module.py”, line 830, in load_state_dict
self.class.name, “\n\t”.join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for Blackbox_IDS:
size mismatch for layer.6.weight: copying a param with shape torch.Size([33, 66]) from checkpoint, the shape in current model is torch.Size([16, 66]).
size mismatch for layer.6.bias: copying a param with shape torch.Size([33]) from checkpoint, the shape in current model is torch.Size([16]).
size mismatch for layer.9.weight: copying a param with shape torch.Size([16, 33]) from checkpoint, the shape in current model is torch.Size([16, 16]).
Waiting for your help. Thanks.