#!/bin/bash # Clean up stuff that we don't need that takes up lots of disk space. df -h echo echo "Cleaning up checkpoints..." rm checkpoints/*/1_*.pth rm checkpoints/*/2_*.pth rm checkpoints/*/3_*.pth rm checkpoints/*/4_*.pth rm checkpoints/*/5_*.pth rm checkpoints/*/6_*.pth rm checkpoints/*/7_*.pth rm checkpoints/*/8_*.pth rm checkpoints/*/9_*.pth rm checkpoints/*/10_*.pth #rm checkpoints/*/11_*.pth echo "Cleaning up recursive frames..." rm -rf recursive/*/*_0149 echo df -h