nachi1326 commited on
Commit
8a24762
·
verified ·
1 Parent(s): f7942b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,9 +12,9 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
  def separate_audio(mixture):
13
  # Convert mixture to tensor
14
  print(mixture)
15
- encoder_checkpoint = "models/encoder.pth"
16
- decoder_checkpoint = "models/decoder.pth"
17
- masknet_checkpoint = "models/masknet.pth"
18
 
19
  encoder = torch.load(encoder_checkpoint, map_location=device)
20
  decoder = torch.load(decoder_checkpoint, map_location=device)
@@ -24,7 +24,7 @@ def separate_audio(mixture):
24
  # Step 2: Load Hyperparameters
25
 
26
  data_folder = "."
27
- # hparams_file = "data/yamls/sepformer-customdataset.yaml"
28
  overrides = f"data_folder: {data_folder}\noutput_folder: "
29
  hyperparams_file = "yamls/sepformer-customdataset.yaml"
30
  with open(hyperparams_file, "r") as f:
 
12
  def separate_audio(mixture):
13
  # Convert mixture to tensor
14
  print(mixture)
15
+ encoder_checkpoint = "encoder.pth"
16
+ decoder_checkpoint = "decoder.pth"
17
+ masknet_checkpoint = "masknet.pth"
18
 
19
  encoder = torch.load(encoder_checkpoint, map_location=device)
20
  decoder = torch.load(decoder_checkpoint, map_location=device)
 
24
  # Step 2: Load Hyperparameters
25
 
26
  data_folder = "."
27
+ # hparams_file = "sepformer-customdataset.yaml"
28
  overrides = f"data_folder: {data_folder}\noutput_folder: "
29
  hyperparams_file = "yamls/sepformer-customdataset.yaml"
30
  with open(hyperparams_file, "r") as f: