Open manxiaoyu opened 4 months ago
I get this error and dint fix it until now :
> Traceback (most recent call last): > File "main.py", line 262, in <module> > main() > File "main.py", line 216, in main > model = models.SigurdssonModel(config_from, list_lang, fn_cfg=args.config_arch, pretrained_cnn=args.pretrained_cnn, > File "/media/visionx/monica/newproject/globetrotter/models.py", line 273, in __init__ > {f'lang_{i}': nn.Embedding(cfg.vocab_size, cfg.sigurdsson_hid_size, padding_idx=0) > File "/media/visionx/monica/newproject/globetrotter/models.py", line 273, in <dictcomp> > {f'lang_{i}': nn.Embedding(cfg.vocab_size, cfg.sigurdsson_hid_size, padding_idx=0) > AttributeError: 'BertConfig' object has no attribute 'sigurdsson_hid_size'
I have changed some versions like this :
tokenizers 0.7.0 torch 1.13.0 torchaudio 0.13.0 torchvision 0.14.0 tqdm 4.66.2 transformers 2.10.0
I get this error and dint fix it until now :
I have changed some versions like this :