davesalvi commited on
Commit
e0f4290
·
1 Parent(s): 15360c7

update code

Browse files
Files changed (2) hide show
  1. .idea/workspace.xml +2 -1
  2. script.py +7 -2
.idea/workspace.xml CHANGED
@@ -6,7 +6,7 @@
6
  <component name="ChangeListManager">
7
  <list default="true" id="23565123-73ab-4f40-a9ef-1086e0c9e1ec" name="Changes" comment="">
8
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/src/audio_utils.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/audio_utils.py" afterDir="false" />
10
  </list>
11
  <option name="SHOW_DIALOG" value="false" />
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -62,6 +62,7 @@
62
  <option name="presentableId" value="Default" />
63
  <updated>1742573353560</updated>
64
  <workItem from="1742573355153" duration="587000" />
 
65
  </task>
66
  <servers />
67
  </component>
 
6
  <component name="ChangeListManager">
7
  <list default="true" id="23565123-73ab-4f40-a9ef-1086e0c9e1ec" name="Changes" comment="">
8
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/script.py" beforeDir="false" afterPath="$PROJECT_DIR$/script.py" afterDir="false" />
10
  </list>
11
  <option name="SHOW_DIALOG" value="false" />
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
 
62
  <option name="presentableId" value="Default" />
63
  <updated>1742573353560</updated>
64
  <workItem from="1742573355153" duration="587000" />
65
+ <workItem from="1742806974298" duration="157000" />
66
  </task>
67
  <servers />
68
  </component>
script.py CHANGED
@@ -1,16 +1,21 @@
1
  import io
2
  import time
 
3
 
4
  import torch
5
  import tqdm.auto as tqdm
6
  from datasets import load_dataset
7
 
 
 
 
8
  from models import Model
9
  from preprocess import preprocess
10
  # from pathlib import Path
11
 
12
  # from src.rawnet_model import RawNet
13
- from src.utils import *
 
14
 
15
  # Import your model and anything else you want
16
  # You can even install other packages included in your repo
@@ -29,7 +34,7 @@ dataset_remote = load_dataset(DATASET_PATH,split = "test",streaming = True)
29
  # load your model
30
  device = "cuda:0"
31
 
32
- ## DEFINE RAWNET2 MODEL
33
  # this_folder = Path(__file__).parent
34
  # config_path = this_folder / 'config' / 'rawnet_config.yaml'
35
  # config = read_yaml(config_path)
 
1
  import io
2
  import time
3
+ import os
4
 
5
  import torch
6
  import tqdm.auto as tqdm
7
  from datasets import load_dataset
8
 
9
+ import numpy as np
10
+ import pandas as pd
11
+
12
  from models import Model
13
  from preprocess import preprocess
14
  # from pathlib import Path
15
 
16
  # from src.rawnet_model import RawNet
17
+ # from src.utils import *
18
+
19
 
20
  # Import your model and anything else you want
21
  # You can even install other packages included in your repo
 
34
  # load your model
35
  device = "cuda:0"
36
 
37
+ # # DEFINE RAWNET2 MODEL
38
  # this_folder = Path(__file__).parent
39
  # config_path = this_folder / 'config' / 'rawnet_config.yaml'
40
  # config = read_yaml(config_path)