debug
Browse files- .idea/workspace.xml +2 -2
- preprocess.py +1 -0
.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$/
|
| 10 |
</list>
|
| 11 |
<option name="SHOW_DIALOG" value="false" />
|
| 12 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -99,7 +99,7 @@
|
|
| 99 |
<updated>1742573353560</updated>
|
| 100 |
<workItem from="1742573355153" duration="587000" />
|
| 101 |
<workItem from="1742806974298" duration="2741000" />
|
| 102 |
-
<workItem from="1742810431420" duration="
|
| 103 |
</task>
|
| 104 |
<servers />
|
| 105 |
</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$/preprocess.py" beforeDir="false" afterPath="$PROJECT_DIR$/preprocess.py" afterDir="false" />
|
| 10 |
</list>
|
| 11 |
<option name="SHOW_DIALOG" value="false" />
|
| 12 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
|
|
| 99 |
<updated>1742573353560</updated>
|
| 100 |
<workItem from="1742573355153" duration="587000" />
|
| 101 |
<workItem from="1742806974298" duration="2741000" />
|
| 102 |
+
<workItem from="1742810431420" duration="14639000" />
|
| 103 |
</task>
|
| 104 |
<servers />
|
| 105 |
</component>
|
preprocess.py
CHANGED
|
@@ -33,6 +33,7 @@ def preprocess(audio_file):
|
|
| 33 |
frames += [y[int(start_sample):int(start_sample) + win_len]]
|
| 34 |
y_win = np.stack(frames, axis=0)
|
| 35 |
tensor = torch.from_numpy(y_win)
|
|
|
|
| 36 |
|
| 37 |
print(f'preprocessed track - shape {tensor.shape}')
|
| 38 |
return tensor
|
|
|
|
| 33 |
frames += [y[int(start_sample):int(start_sample) + win_len]]
|
| 34 |
y_win = np.stack(frames, axis=0)
|
| 35 |
tensor = torch.from_numpy(y_win)
|
| 36 |
+
tensor = tensor.float()
|
| 37 |
|
| 38 |
print(f'preprocessed track - shape {tensor.shape}')
|
| 39 |
return tensor
|