Код: Выделить всё
EMB = ckpt['emb'].cuda()
Код: Выделить всё
KeyError Traceback (most recent call last)
Cell In[3], line 31
28 image_token_len = (vision_config.image_size//vision_config.patch_size)**2
30 _ = model.eval()
---> 31 EMB = ckpt['emb'].cuda()
32 with T.inference_mode(): NULL = model.edit_head(T.zeros(1, 8, 4096).half().to('cuda'), EMB)
33 print('NULL:', NULL.shape)
KeyError: 'emb'
Подробнее здесь: https://stackoverflow.com/questions/791 ... yerror-emb