Comments (5)
你好,你可以在项目的Python环境下尝试运行下面的脚本:
import torch
print(torch.cuda.is_available())
a = torch.randn((1000,1000)).to('cuda')
for i in range(10000):
a = a * a
在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?
from projz_renpy_translation.
你好,你可以在项目的Python环境下尝试运行下面的脚本:
import torch print(torch.cuda.is_available()) a = torch.randn((1000,1000)).to('cuda') for i in range(10000): a = a * a在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?
你好,我运行你给的代码,报了个异常:AssertionError: Torch not compiled with CUDA enabled
from projz_renpy_translation.
你好,你可以在项目的Python环境下尝试运行下面的脚本:
import torch print(torch.cuda.is_available()) a = torch.randn((1000,1000)).to('cuda') for i in range(10000): a = a * a在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?
你好,我运行你给的代码,报了个异常:AssertionError: Torch not compiled with CUDA enabled
应该是pytorch和cuda版本不对应,可以把环境中pytorch重新卸载在安装对应显卡版本的pytorch:https://github.com/abse4411/projz_renpy_translation#3%E5%AE%89%E8%A3%85cuda%E6%94%AF%E6%8C%81%E7%9A%84pytorch
from projz_renpy_translation.
你好,你可以在项目的Python环境下尝试运行下面的脚本:
import torch print(torch.cuda.is_available()) a = torch.randn((1000,1000)).to('cuda') for i in range(10000): a = a * a在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?
你好,我运行你给的代码,报了个异常:AssertionError: Torch not compiled with CUDA enabled
应该是pytorch和cuda版本不对应,可以把环境中pytorch重新卸载在安装对应显卡版本的pytorch:https://github.com/abse4411/projz_renpy_translation#3%E5%AE%89%E8%A3%85cuda%E6%94%AF%E6%8C%81%E7%9A%84pytorch
我的CUDA版本是12.2,pytorch好像没有对应版本。所以可以安装了12.1版本的:pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121。不知道是不是这个问题
from projz_renpy_translation.
你好,你可以在项目的Python环境下尝试运行下面的脚本:
import torch print(torch.cuda.is_available()) a = torch.randn((1000,1000)).to('cuda') for i in range(10000): a = a * a在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?
你好,我运行你给的代码,报了个异常:AssertionError: Torch not compiled with CUDA enabled
应该是pytorch和cuda版本不对应,可以把环境中pytorch重新卸载在安装对应显卡版本的pytorch:https://github.com/abse4411/projz_renpy_translation#3%E5%AE%89%E8%A3%85cuda%E6%94%AF%E6%8C%81%E7%9A%84pytorch
我的CUDA版本是12.2,pytorch好像没有对应版本。所以可以安装了12.1版本的:pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121。不知道是不是这个问题
建议使用你当时可以跑SD环境来安装pytorch。
from projz_renpy_translation.
Related Issues (20)
- 角色名内包含old导致文本不会被判断为新文本以进行翻译 HOT 7
- 彩云小译似乎更新了页面前端导致脚本无法定位到文本框 HOT 1
- 彩云小译似乎更新了页面前端导致脚本无法定位到文本框 HOT 2
- REMOVE_MARKS功能無效 HOT 1
- 用generate命令生成翻译rpy文件内容不全 HOT 4
- apply命令提示error: module 'distutils' has no attribute 'util' HOT 4
- 有一些游戏无法新建任务 HOT 2
- 能否将自定义翻译做成类似于XUnity.AutoTranslator那样 HOT 2
- 打开提示问题 HOT 2
- 无法翻译问题,提示No translations of language {lang} No untranslated lines to update. HOT 3
- 不好意思請問一下有關翻譯語言部分 HOT 9
- 即时翻译server_ui打开之后提示错误,translator无法运行 HOT 4
- 初步試用跟心得 HOT 37
- 蹲大佬 HOT 4
- 翻译文本为空时不会自动跳过 HOT 4
- Note: [savehtml] 请用MS Edge进行网页翻译,不要使用Chrome。
- 执行loadexcel命令过程中报错AttributeError: 'float' object has no attribute 'strip' HOT 2
- 当角色名内有引号时翻译有误 HOT 5
- 能否使用谷歌的文档翻译功能进行快速批量翻译 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from projz_renpy_translation.