Skip to content

Instantly share code, notes, and snippets.

@butchland
Last active August 15, 2021 04:55
Show Gist options
  • Save butchland/e67c2e4d18245d0e039b7edf94f5d47f to your computer and use it in GitHub Desktop.
Save butchland/e67c2e4d18245d0e039b7edf94f5d47f to your computer and use it in GitHub Desktop.
#!/bin/bash
# colab check to cd to default "/content" directory
[ -d "/content" ] && cd /content
mkdir -p $HOME/.fastai/data
mkdir -p $HOME/.torch/models
ln -s $HOME/.fastai/data
ln -s $HOME/.torch/models
# colab default dir in content
[ -d sample_data ] && rm -rf sample_data
echo "fastai data model setup done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment