Commit a2b46fb1 authored by Leon Wu's avatar Leon Wu
Browse files

Create clear previous results script

parent 65bcce84
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
# assuming running from audiolm-pytorch-training and results in audiolm-pytorch-results

import os
import shutil

results_folder = "../audiolm-pytorch-results"
if not os.path.isdir(results_folder):
	raise AssertionError("didn't find results_folder, no results to clear out")

shutil.rmtree(f"{results_folder}/coarse_results")
shutil.rmtree(f"{results_folder}/fine_results")
shutil.rmtree(f"{results_folder}/semantic_results")
shutil.rmtree(f"{results_folder}/soundstream_results")