Skip to content

Commit

Permalink
organization cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklabhay committed Aug 7, 2024
1 parent 1b8c29d commit 7c9a191
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Deep Convolution Audio Generation (WIP)

Implementing Deep Convolution to generate audio using generative and autoencoding networks
Implementing Deep Convolution to generate audio using a generative network

## Directories

- `model`: Model save and generated output location
- `src`: Source code for models
- `model`: Trained model and generated audio
- `src`: Model source code
- `utils`: Model and data utilities
2 changes: 0 additions & 2 deletions src/dcgan_architecture.py → src/architecture.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import torch
import torch.nn as nn

# sys.path.append("../utils") # get this working & fix file structure
from utils.helpers import N_CHANNELS, N_FRAMES, N_FREQ_BINS

# Constants Constants
Expand Down
4 changes: 2 additions & 2 deletions src/dcgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import torch.optim as optim
from torch.utils.data import DataLoader, TensorDataset, random_split

from dcgan_architecture import (
from architecture import (
BATCH_SIZE,
Discriminator,
Generator,
)
from dcgan_train import training_loop
from train import training_loop
from utils.helpers import (
compiled_data_path,
get_device,
Expand Down
2 changes: 1 addition & 1 deletion src/dcgan_generate.py → src/generate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import torch
from dcgan_architecture import Generator, LATENT_DIM
from architecture import Generator, LATENT_DIM
from utils.helpers import amplitudes_to_wav, get_device, graph_spectrogram

# Initialize Generator
Expand Down
3 changes: 1 addition & 2 deletions src/dcgan_train.py → src/train.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import torch

from architecture import LATENT_DIM
from utils.helpers import save_model
from dcgan_architecture import LATENT_DIM


N_EPOCHS = 10
Expand Down
6 changes: 3 additions & 3 deletions src/utils/helpers.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os
import librosa
import scipy
import soundfile as sf
import numpy as np
import os
import plotly.graph_objects as go
import plotly.subplots as sp
import scipy
import soundfile as sf
import torch

# Constants
Expand Down

0 comments on commit 7c9a191

Please sign in to comment.