Skip to content

Commit

Permalink
✨ wildcard完全支持
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulinyv committed Oct 25, 2024
1 parent ae87a10 commit f9fdb24
Show file tree
Hide file tree
Showing 6 changed files with 500 additions and 292 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
|:---:|:---:|:---:|:---:|
| 教程说明 | 本项目的介绍及使用教程 | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/15.png?raw=true) | 请仔细阅读 |
| 文生图 | 使用 Gradio 为 NovelAI 写的一个用户界面, 除了界面不同, 其它完全等同于使用 NovelAI 网站 | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/1.png?raw=true) | 生成的图片将保存到 `./output/t2i` 文件夹 |
| 随机蓝图 | 通过随机组合 `./files/favorite` 中的 tag 生成一张蓝图或无限生成蓝图, 负面提示词将随机选择 favorite negative belief 中的负面提示词, 其它参数将使用 env 配置 | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/3.png?raw=true) | 关于固定项目, 后三个文本框需要填写 favorite 中对应的键值, 当填写**固定动作****固定角色**时, 需要对应的**动作类型****出处**, **留空时随机**, 关于随机蓝图的配置, 请查看 WebUI 配置设置页面的其它部分 |
| 随机蓝图 | 通过随机组合 `./files/favorite` 中的 tag 生成一张蓝图或无限生成蓝图 | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/3.png?raw=true) | 关于固定项目, 后三个文本框需要填写 favorite 中对应的键值, 当填写**固定动作****固定角色**时, 需要对应的**动作类型****出处**, **留空时随机**, 关于随机蓝图的配置, 请查看 WebUI 配置设置页面的其它部分 |
| 随机图片 | 通过读取 `./file/prompt` 中的 `*.txt` 文件并追加输入的提示词作为提示词无限生成图片, 负面提示词将随机选择 favorite negative belief 中的负面提示词, 其它参数将使用 env 配置, 当文件夹下的所有 `*.txt` 文件均生成过一次后或点击停止生成后, 则将停止运行 | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/4.png?raw=true) | 关于随机图片的配置, 请查看 WebUI 配置设置页面的其它部分 |
| Vibe | 等同于使用 NovelAI 网站, 我为它添加了批量功能 | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/16.png?raw=true) | 需要准备一些图片到同一文件夹, 图片名称需要重命名为 `(任意(不含下划线)_(信息提取强度, 浮点型(0, 1))_(参考强度, 浮点型(0, 1)).png)` 的格式, 例如 `hoshino-hinata_1.0_0.6`|
| 图生图 | 等同于使用 NovelAI 网站, 支持任何图片, 另外, 我为它添加了批量图生图 | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/2.png?raw=true) | 生成的图片将保存到 `./output/i2i` 文件夹, 但会在 `./output` 文件夹内生成一张名为 `temp.png` 的临时图片, 可以删除, 批量处理时, 请将图片放到同一个文件夹, 例如: `./output/choose_to_i2i` |
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
|:---:|:---:|:---:|:---:|
| Tutorial | Introduction and usage tutorial for this project | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/15.png?raw=true) | Please read carefully |
| Text-to-Image | A user interface for NovelAI using Gradio, functionally identical to using the NovelAI website except for the interface | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/1.png?raw=true) | Generated images will be saved to the `./output/t2i` folder |
| Random NSFW Image | Generates an NSFW image or infinitely generates NSFW images by randomly combining tags from `./files/favorite`. Negative prompt words will be randomly selected from the negative belief section in favorite. Other parameters will use the env configuration | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/3.png?raw=true) | For fixed items, the last three text boxes need to be filled with the corresponding key values from favorite. When filling in **fixed action** or **fixed character**, the corresponding **action type** and **source** are required. **Leave blank for random**. For the configuration of random NSFW images, please check other parts of the WebUI configuration settings page. |
| Random NSFW Image | Generates an NSFW image or infinitely generates NSFW images | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/3.png?raw=true) | For fixed items, the last three text boxes need to be filled with the corresponding key values from favorite. When filling in **fixed action** or **fixed character**, the corresponding **action type** and **source** are required. **Leave blank for random**. For the configuration of random NSFW images, please check other parts of the WebUI configuration settings page. |
| Random Image | Infinitely generates images using prompts from `*.txt` files in `./file/prompt` appended with user input, negative prompt words will be randomly chosen from the negative beliefs in favorite | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/4.png?raw=true) | For configuration of random images, please refer to the other parts of the WebUI configuration settings page |
| Vibe | Functionally identical to using NovelAI website, added batch functionality | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/16.png?raw=true) | Prepare some images in the same folder, rename images to `(any(not containing underscores))_(information extraction strength, float(0, 1))_(reference strength, float(0, 1)).png)` format, e.g., `hoshino-hinata_1.0_0.6`.|
| Image-to-Image | Functionally identical to using NovelAI website, supports any image, added batch processing | ![image](https://github.com/zhulinyv/Semi-Auto-NovelAI-to-Pixiv/blob/main/files/images/2.png?raw=true) | Generated images will be saved to the `./output/i2i` folder, a temporary image named `temp.png` will be generated in the `./output` folder, can be deleted, for batch processing, place images in the same folder, e.g., `./output/choose_to_i2i` |
Expand Down
Loading

0 comments on commit f9fdb24

Please sign in to comment.