arxyzan / data2vec-pytorch

PyTorch implementation of "data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Language" from Meta AI
MIT License
168 stars 26 forks source link

file type error omegaconf #15

Closed RuchaCB closed 1 year ago

RuchaCB commented 1 year ago

getting the following error

Traceback (most recent call last): File "c:/Users/{}/Downloads/data2vec-pytorch-main/data2vec-pytorch-main/train.py", line 15, in cfg = omegaconf.OmegaConf.load(cfg_path) File "C:\Program Files\Python38\lib\site-packages\omegaconf\omegaconf.py", line 194, in load raise TypeError("Unexpected file type") TypeError: Unexpected file type

do we need to change anything in here? cfg = omegaconf.OmegaConf.load(cfg_path)

arxyzan commented 1 year ago

Hello @RuchaCB How did you run this file? Did you run it by passing --config parameter like so python train.py --config /path/to/config.yaml? You can simply put a print before the line you mentioned to see what path you're passing.