Skip to content

Commit

Permalink
Remove pretrained folder causing file buildup
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAAndrew committed Oct 5, 2021
1 parent 1c8385e commit a5a11d1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions application/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,9 @@ def train_post():
metadata_path = os.path.join(paths["datasets"], dataset_name, METADATA_FILE)
audio_folder = os.path.join(paths["datasets"], dataset_name, AUDIO_FOLDER)
checkpoint_folder = os.path.join(paths["models"], dataset_name)
pretrained_folder = os.path.join(paths["pretrained"], dataset_name)

if request.files.get("pretrained_model"):
os.makedirs(pretrained_folder, exist_ok=True)
transfer_learning_path = os.path.join(pretrained_folder, "pretrained.pt")
transfer_learning_path = os.path.join("data", "pretrained.pt")
request.files["pretrained_model"].save(transfer_learning_path)
else:
transfer_learning_path = None
Expand Down
Binary file removed libdeepspeech.so
Binary file not shown.
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def load_paths():
paths = {
"datasets": os.path.join("data", "datasets"),
"models": os.path.join("data", "models"),
"pretrained": os.path.join("data", "pretrained"),
"hifigan": os.path.join("data", "hifigan"),
"results": os.path.join("data", "results"),
"languages": os.path.join("data", "languages"),
Expand Down

0 comments on commit a5a11d1

Please sign in to comment.