yuqinie98 / PatchTST

An offical implementation of PatchTST: "A Time Series is Worth 64 Words: Long-term Forecasting with Transformers." (ICLR 2023) https://arxiv.org/abs/2211.14730
Apache License 2.0
1.37k stars 248 forks source link

Error while running finetune.py #83

Open nisha-philip opened 8 months ago

nisha-philip commented 8 months ago

Hi, I've tried to run the self supervised model. First I've run the pretrain.py file on Google colab, which works. After running the pretrain file, I've tried to run the finetune model, but an error saying directory found is being returned.

The command used is !python patchtst_finetune.py --dset ettm1 --pretrained_model PatchTST

FileNotFoundError: [Errno 2] No such file or directory: '/content/drive/MyDrive/PatchTST-main/PatchTST_self_supervised/saved_models/ettm1/masked_patchtst/based_model/ettm1_patchtst_finetuned_cw512_tw96_patch12_stride12_epochs-finetune20_model1.pth' is the error message displayed.

The path of the file saved in the mounted drive is main/PatchTST_self_supervised/saved_models/ettm1/masked_patchtst/based_model/patchtst_pretrained_cw512_patch12_stride12_epochs-pretrain10_mask0.4_mode/content/drive/MyDrive/PatchTST-l1.pth

Do the default values need to be changed in the finetune code?