在Google Colab运行Automatic1111的SD1.5~2.1时遇tcmalloc无效指针错误求助
在Google Colab使用Automatic1111 UI运行Stable Diffusion 1.5~2.1时遇到tcmalloc指针错误的求助
我在Google Colab上使用Automatic1111 UI运行Stable Diffusion 1.5至2.1版本时,出现以下错误,推测是之前测试0.9版本时破坏了环境,该错误与内存分配释放及底层库相关:
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x5a3426b059d0
已尝试的解决操作:
- 更新核心库:
!pip install pyngrok --upgrade !pip install gradio --upgrade - 更新无效后,尝试卸载所有已安装库:
import pkg_resources import subprocess # 获取已安装的包列表 dists = [d for d in pkg_resources.working_set] for dist in dists: cmd = f"pip uninstall -y {dist.project_name}" process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = process.communicate() if output: print(output.decode()) if error: print(error.decode())
我不慎删除了原本的Notebook,但即使改用Automatic1111仓库关联的官方托管Google Colab Notebook,仍出现相同错误。
请问有人知道该错误的原因或可行的解决方法吗?感谢解答!
内容的提问来源于stack exchange,提问作者badgerhong
相关产品推荐
相关产品推荐

