Change path to weights directory

Hello experts,

I wonder if there is a way to change the path where the weight files are stored after training.
It’s my understanding that these files will be saved in the $PWD/dataloader name/weights/ directory but my local area is very limited in space and these files are very large so I’m trying to store them somewhere else in the network. My current solution is to just use the path to this other directory as the data loader name but it doesn’t look great (something like …/…/…/…/…/work/u/username/more stuff) so is there a cleaner way to do this?

Julia Iturbe.

You could run from the directory where you have space, then $PWD is already correct.

Yes, that’s a good solution but not really practical for my case. I have one script to run the training which can run on different data sets located in different places and I want it to store the output on that same directory from which it took the input data. In the end I just added a command at the end of the script to move the file somewhere else. Thanks though.