Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zh-CN Language site #34

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions zh-CN/get_started/gettingstarted.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "现在开始"
description: "学习如何下载模型并学习如何生产图像"
---

## 观看教程

<iframe height="415" src="https://player.bilibili.com/player.html?isOutside=true&aid=1650423248&bvid=BV1D7421N7xN&cid=1432133457&p=1" title="BiliBili video player"
scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"
style={{ width: "100%", borderRadius: "0.5rem" }}></iframe>
## 快速开始

1. 下载一个 checkpoint 文件. 可能是 [Stable Diffusion v1.5](https://modelscope.cn/models/ai-modelscope/stable-diffusion-v1-5/resolve/master/v1-5-pruned-emaonly.ckpt)。将文件保存在 `ComfyUI/models/checkpoints`。

1. 刷新 ComfyUI。

1. 点击 `加载默认` 按钮以使用默认工作流。

1. 在 `加载 Checkpoint` 节点,选择您刚才下载的模型。

1. 点击 `提示词队列` 并查看生成的图片。 输入不同的提示词以生成不同的图像。
19 changes: 19 additions & 0 deletions zh-CN/get_started/introduction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: 导语
description: "由社区编写的 ComfyUI 教程. 点击 [此处](https://github.com/drip-art/docs) 贡献。"
---

<img
className="block dark:hidden"
src="/images/comfyui_screenshot.png"
alt="Hero Light"
/>
<img
className="hidden dark:block"
src="/images/comfyui_screenshot.png"
alt="Hero Dark"
/>

## [ComfyUI](https://github.com/comfyanonymous/ComfyUI)

最强大且模块化的 stable diffusion GUI 和后端. 由 [comfyanonymous](https://github.com/comfyanonymous) 、[阿卡林刘](https://github.com/AkarinLiu) 和其他 [贡献者](https://github.com/comfyanonymous/ComfyUI/graphs/contributors).
56 changes: 56 additions & 0 deletions zh-CN/get_started/manual_install.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: "手动安装"
---

import GitClone from "/snippets/git-clone.mdx";
import Conda from "/snippets/conda.mdx";
import PipInstall from "/snippets/pip-install.mdx";
import InstallGpuDependencies from "/snippets/install-gpu-dependencies.mdx";
import RunComfy from "/snippets/run-comfy.mdx";

<Tabs>
<Tab title="Windows">
### 克隆此仓库

<GitClone />

<Warning>如果您尚未安装 Microsoft Visual C++ Redistributable,请点击 [此处](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170) 安装。</Warning>


### 安装依赖

1. <Conda />
1. <InstallGpuDependencies />
1. <PipInstall />
1. <RunComfy />
</Tab>
<Tab title="Linux">

### 克隆此仓库

<GitClone />

### 安装依赖

1. <Conda />
1. <InstallGpuDependencies />
1. <PipInstall />
1. <RunComfy />
</Tab>

<Tab title="MacOS">

### 克隆此仓库

Open [Terminal application](https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac).

<GitClone />

### 安装依赖

1. <Conda />
1. <InstallGpuDependencies />
1. <PipInstall />
1. <RunComfy />
</Tab>
</Tabs>
50 changes: 50 additions & 0 deletions zh-CN/get_started/pre_package.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: "二进制压缩包"
---

import GitClone from "/snippets/git-clone.mdx";
import Conda from "/snippets/conda.mdx";
import PipInstall from "/snippets/pip-install.mdx";
import InstallGpuDependencies from "/snippets/install-gpu-dependencies.mdx";
import RunComfy from "/snippets/run-comfy.mdx";

<Tabs>
<Tab title="Windows">
支持英伟达显卡或CPU运行。 其他显卡请尝试手动安装。

<Steps>
<Step title="下载">
<a className="prose" href="https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia.7z" style={{ display: 'inline-block', backgroundColor: '#0078D6', color: '#ffffff', padding: '10px 20px', borderRadius: '8px', borderColor: "transparent", textDecoration: 'none', fontWeight: 'bold'}}>
<p className="prose" style={{ margin: 0, fontSize: "0.8rem" }}>Windows 下载</p>
</a>
</Step>

<Step title="解压">
使用 [7-Zip](https://7-zip.org/) 解压。
</Step>
<Step title="运行">
要使用英伟达显卡运行,请运行 `run_nvidia_gpu` 脚本。

仅使用 CPU 运行,请运行 `run_cpu` 脚本。
</Step>
</Steps>
</Tab>
<Tab title="Linux">
## Linux


<Warning>
Linux 二进制压缩包尚不可用,请尝试手动安装。
</Warning>

</Tab>

<Tab title="MacOS">

## MacOS

<Warning>
MacOS 二进制压缩包尚不可用,请尝试手动安装。
</Warning>
</Tab>
</Tabs>
12 changes: 12 additions & 0 deletions zh-CN/snippets/amd-install.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
```

或者您可以安装 nightly 版本的 PyTorch。

<Accordion title="安装 Nightly 版本">
<Warning>安装 Nightly 版本 (可能需要承担更多风险)</Warning>
```
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.0
```
</Accordion>
64 changes: 64 additions & 0 deletions zh-CN/snippets/cli-reference/models.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
**Usage**:

```console
$ comfy model [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.

**Commands**:

* `download`: Download a model to a specified relative...
* `list`: Display a list of all models currently...
* `remove`: Remove one or more downloaded models,...

### `download`

Download a model to a specified relative path if it is not already downloaded.

**Usage**:

```console
$ download [OPTIONS]
```

**Options**:

* `--url TEXT`: The URL from which to download the model [required]
* `--relative-path TEXT`: The relative path from the current workspace to install the model. [default: models/checkpoints]
* `--help`: Show this message and exit.

### `list`

Display a list of all models currently downloaded in a table format.

**Usage**:

```console
$ list [OPTIONS]
```

**Options**:

* `--relative-path TEXT`: The relative path from the current workspace where the models are stored. [default: models/checkpoints]
* `--help`: Show this message and exit.

### `remove`

Remove one or more downloaded models, either by specifying them directly or through an interactive selection.

**Usage**:

```console
$ remove [OPTIONS]
```

**Options**:

* `--relative-path TEXT`: The relative path from the current workspace where the models are stored. [default: models/checkpoints]
* `--model-names TEXT`: List of model filenames to delete, separated by spaces
* `--help`: Show this message and exit.
Loading