Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running finetune.py #83

Open
nisha-philip opened this issue Nov 1, 2023 · 0 comments
Open

Error while running finetune.py #83

nisha-philip opened this issue Nov 1, 2023 · 0 comments

Comments

@nisha-philip
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant