Error Training Vision Encoder Decoder for Image Captioning

damerajee
Sat, 08 Jun 2024 14:40:39 +0000

btw it should not be

model.resize_token_embeddings(len(tokenizer))

it should be

model.decoder.resize_token_embeddings(len(tokenizer))