case 1 : 없는 layer 무시 model.load_state_dict(torch.load(opt.saved_model), strict=False) case 2 : layer 에서의 size mismatch #... import logging logger = logging.getLogger() logger.setLevel(logging.INFO) formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s') stream_handler = logging.StreamHandler() stream_handler.setFormatter(formatter) logger.addHandler(stream_handler) #... class ..