Closed mya2152 closed 1 year ago
Please provide more context
Please provide more context
What OS?
When does this error occur?
Google colab "inference" notebook that's listed on the main GitHub page it's being run through connecting to a colab instance
last night it ran just fine but suddenly the exact same notebook throws up this error now and no longer works all of a sudden
Section where it stops (line15)
import os import glob import json import copy import logging import io from ipywidgets import widgets from pathlib import Path from IPython.display import Audio, display
os.chdir('/content/so-vits-svc')
import torch from inference import infer_tool from inference import slicer from inference.infer_tool import Svc import soundfile import numpy as np
MODELS_DIR = "models"
def getspeakers(): speakers = [] for ,dirs,_ in os.walk(MODELS_DIR): for folder in dirs: cur_speaker = {}
g = glob.glob(os.path.join(MODELS_DIR,folder,'G_*.pth'))
if not len(g):
print("Skipping "+folder+", no G_*.pth")
continue
This issue should be fixed in the colab notebook; however, it requires restarting the runtime prior to running the final cell.
This issue should be fixed in the colab notebook; however, it requires restarting the runtime prior to running the final cell.
I have restarted it and deleted the current sessions instance but still the error persists, if I run it locally will it work on an AMD gpu?
This issue should be fixed in the colab notebook; however, it requires restarting the runtime prior to running the final cell.
I've also got an M1000M laptop GPU which is an NVIDIA chip but the !nvidia-smi command keeps failing and says can't communicate with the NVIDIA driver?
Have you refreshed the notebook page (the new version should say something about restarting the runtime)? This has not been tested on AMD. For NVIDIA you may need to update drivers and install CUDA.
Please provide more context
- What OS?
- When does this error occur?
Windows 10 x64 I've fixed it but now it keeps telling me git isn't installed even though it is.
Are you running through a conda environment? Batch file from .zip release? What specific error message are you getting?
VSCode jupyter notebook extension, inference notebook it's at this step:
FileNotFoundError Traceback (most recent call last) File C:\Python\Python392\lib\site-packages\huggingface_hub\repository.py:569, in Repository.check_git_versions(self) 568 try: --> 569 git_version = run_subprocess("git --version", self.local_dir).stdout.strip() 570 except FileNotFoundError: File C:\Python\Python392\lib\site-packages\huggingface_hub\utils_subprocess.py:61, in run_subprocess(command, folder, check, kwargs) 59 folder = str(folder) ---> 61 return subprocess.run( 62 command, 63 stderr=subprocess.PIPE, 64 stdout=subprocess.PIPE, 65 check=check, 66 encoding="utf-8", 67 errors="replace", # if not utf-8, replace char by � 68 cwd=folder or os.getcwd(), 69 kwargs, 70 ) File C:\Python\Python392\lib\subprocess.py:505, in run(input, capture_output, timeout, check, *popenargs, *kwargs) 503 kwargs['stderr'] = PIPE --> 505 with Popen(popenargs, **kwargs) as process: 506 try: File C:\Python\Python392\lib\subprocess.py:951, in Popen.init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, user, group, extra_groups, encoding, errors, text, umask) 948 self.stderr = io.TextIOWrapper(self.stderr, 949 encoding=encoding, errors=errors) --> 951 self._execute_child(args, executable, preexec_fn, close_fds, 952 pass_fds, cwd, env, 953 startupinfo, creationflags, shell, 954 p2cread, p2cwrite, 955 c2pread, c2pwrite, 956 errread, errwrite, 957 restore_signals, 958 gid, gids, uid, umask, 959 start_new_session) 960 except: 961 # Cleanup if the child failed starting. File C:\Python\Python392\lib\subprocess.py:1420, in Popen._execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_gid, unused_gids, unused_uid, unused_umask, unused_start_new_session) 1419 try: -> 1420 hp, ht, pid, tid = _winapi.CreateProcess(executable, args, 1421 # no special security 1422 None, None, 1423 int(not close_fds), 1424 creationflags, 1425 env, 1426 cwd, 1427 startupinfo) 1428 finally: 1429 # Child is launched. Close the parent's copy of those pipe 1430 # handles that only the child should have open. You need (...) 1433 # pipe will not close when the child process exits and the 1434 # ReadFile will hang. FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
Cell In[6], line 4
1 #@title Setup HF Downloads (run cell and click buttons to download models)
3 from ipywidgets import widgets
----> 4 vul_models = HFModels()
6 def button_eventhandler(but):
7 vul_models.download_model(but.description, "models/"+but.description)
Cell In[3], line 139, in HFModels.init(self, repo, model_dir)
137 def init(self, repo = "therealvul/so-vits-svc-4.0",
138 model_dir = "hf_vul_models"):
--> 139 self.model_repo = huggingface_hub.Repository(local_dir=model_dir,
140 clone_from=repo, skip_lfs_files=True)
141 self.repo = repo
142 self.model_dir = model_dir
File C:\Python\Python392\lib\site-packages\huggingface_hub\utils_validators.py:120, in validate_hf_hub_args.
//
Any ideas?
I see. Is git on your PATH? I do not know how Jupyter VSCode interacts with this.
Already added the Git directory into PATH yet the problem persists. I did restart the kernel as well as restarting the entire IDE. What are you using to run notebooks?
I have only used Colab to run the notebook directly; I have not tested on a local Jupyter platform.
Upon further research it seems that some additional configuration may be needed to use git from VSCode. https://stackoverflow.com/questions/29971624/visual-studio-code-cannot-detect-installed-git
Please try the above and see if any of the solutions work for you.
Solved. Many thanks.
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf