压缩示例图片
@@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_20" project-jdk-name="Python 3.10 (ComfyUI_windows_portable)" project-jdk-type="Python SDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/ComfyUI_Text_Translation_zh_CN.iml" filepath="$PROJECT_DIR$/.idea/ComfyUI_Text_Translation_zh_CN.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -7,6 +7,10 @@
|
||||
## 效果如下
|
||||
<img src="images/image1.png" />
|
||||
|
||||
### 在 [StableSwarmUI](https://github.com/Stability-AI/StableSwarmUI) 中使用 ComfyUI 作为后端的效果如下:
|
||||
|
||||
<img src="images/image11.png" />
|
||||
|
||||
## 说明
|
||||
- 该节点采用了[腾讯翻译API](https://cloud.tencent.com/product/tmt)进行文本翻译。
|
||||
- 可能会许多人需要使用这种类型的节点,但我目前尚未找到相关的开放资源,所以把这个分享给大家。
|
||||
@@ -111,7 +115,17 @@
|
||||
|
||||
所有的步骤都操作完啦,可以愉快的创作呦!
|
||||
|
||||
### 3、其他
|
||||
### 4、更新日志
|
||||
2023-8-27
|
||||
|
||||
 去除“翻译开关”的默认值,以便适配 [StableSwarmUI](https://github.com/Stability-AI/StableSwarmUI)
|
||||
|
||||
2023-8-22
|
||||
|
||||
 初始提交,节点采用了[腾讯翻译API](https://cloud.tencent.com/product/tmt)进行文本翻译。
|
||||
|
||||
|
||||
### 5、其他
|
||||
我对比了阿里、百度、有道、腾讯这些翻译API,其中腾讯每月免费可用的量是最大的,所以选择用它。
|
||||
|
||||
至于为什么没有选择免费的API,只是觉得这些API稳定性稍差,便没有考虑。
|
||||
|
||||
|
Before Width: | Height: | Size: 742 KiB After Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 31 KiB |
@@ -64,7 +64,7 @@ class TencentTextTranslation:
|
||||
"required": {
|
||||
"text_trans": ("STRING", {"multiline": True}),
|
||||
"text_normal": ("STRING", {"multiline": True}),
|
||||
"trans_switch": (["enabled", "disabled"], {"default": "enabled"}),
|
||||
"trans_switch": (["enabled", "disabled"], ),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||