Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from emirthab/main
Browse files Browse the repository at this point in the history
Fix Mac Slicon Problems
  • Loading branch information
Tiger14n committed Jul 17, 2023
2 parents 1c5d925 + a4271c1 commit 3b0ed16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rvcgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def on_button_click():

def browse_file():
filepath = filedialog.askopenfilename (
filetypes=[("Audio Files", "*.wav;*.mp3")])
filetypes=[("Audio Files", ["*.mp3","*.wav"])])
filepath = os.path.normpath(filepath) # Normalize file path
input_audio_entry.delete(0, tk.END)
input_audio_entry.insert(0, filepath)
Expand Down
2 changes: 1 addition & 1 deletion vc_infer_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def pipeline(
pitch = pitch[:p_len]
pitchf = pitchf[:p_len]
pitch = torch.tensor(pitch, device=self.device).unsqueeze(0).long()
pitchf = torch.tensor(pitchf, device=self.device).unsqueeze(0).float()
pitchf = torch.tensor(pitchf, device=self.device, dtype=torch.float32).unsqueeze(0).float()
t2 = ttime()
times[1] += t2 - t1
for t in opt_ts:
Expand Down

0 comments on commit 3b0ed16

Please sign in to comment.