🚀 Anything V3
Anything V3 是一款面向動漫愛好者的潛在擴散模型。該模型只需少量提示詞,就能生成高質量、高細節的動漫風格圖像。和其他動漫風格的 Stable Diffusion 模型一樣,它也支持使用 danbooru 標籤來生成圖像。
🚀 快速開始
本倉庫旨在方便進行 Dreambooth 訓練,我已移除了所有在 Diffusers 中未使用的 .ckpt 文件,這將顯著加快設置速度。
✨ 主要特性
- 高質量動漫圖像生成:僅需少量提示詞,就能生成高質量、高細節的動漫風格圖像。
- 支持 danbooru 標籤:和其他動漫風格的 Stable Diffusion 模型一樣,支持使用 danbooru 標籤來生成圖像。
- 多種優化格式支持:可以將模型導出為 ONNX、MPS 等格式。
📦 安裝指南
此模型的使用方法與其他 Stable Diffusion 模型相同。更多信息,請查看 Stable Diffusion。
💻 使用示例
基礎用法
from diffusers import StableDiffusionPipeline
import torch
model_id = "Linaqruf/anything-v3.0"
branch_name= "diffusers"
pipe = StableDiffusionPipeline.from_pretrained(model_id, revision=branch_name, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "pikachu"
image = pipe(prompt).images[0]
image.save("./pikachu.png")
高級用法
你可以根據自己的需求調整提示詞,以生成不同風格的圖像。例如:
from diffusers import StableDiffusionPipeline
import torch
model_id = "Linaqruf/anything-v3.0"
branch_name= "diffusers"
pipe = StableDiffusionPipeline.from_pretrained(model_id, revision=branch_name, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "1girl, white hair, golden eyes, beautiful eyes, detail, flower meadow, cumulonimbus clouds, lighting, detailed sky, garden"
image = pipe(prompt).images[0]
image.save("./anime_girl.png")
📚 詳細文檔
Gradio 支持
我們支持使用 Gradio Web UI 來運行 Anything-V3.0:
在 Spaces 中打開
示例圖像
以下是使用該模型生成的一些圖像示例:
動漫女孩:

1girl, brown hair, green eyes, colorful, autumn, cumulonimbus clouds, lighting, blue sky, falling leaves, garden
Steps: 50, Sampler: DDIM, CFG scale: 12
動漫男孩:

1boy, medium hair, blonde hair, blue eyes, bishounen, colorful, autumn, cumulonimbus clouds, lighting, blue sky, falling leaves, garden
Steps: 50, Sampler: DDIM, CFG scale: 12
風景:

scenery, shibuya tokyo, post-apocalypse, ruins, rust, sky, skyscraper, abandoned, blue sky, broken window, building, cloud, crane machine, outdoors, overgrown, pillar, sunset
Steps: 50, Sampler: DDIM, CFG scale: 12
📄 許可證
該模型為開放訪問,所有人均可使用,並遵循 CreativeML OpenRAIL-M 許可證,該許可證進一步規定了權利和使用方式。CreativeML OpenRAIL 許可證規定:
- 不得使用該模型故意生成或分享非法或有害的輸出或內容。
- 作者對生成的輸出不主張任何權利,你可以自由使用它們,並對其使用負責,且使用不得違反許可證中的規定。
- 可以重新分發權重,並將模型用於商業用途或作為服務使用。如果這樣做,請確保包含與許可證中相同的使用限制,並向所有用戶分享一份 CreativeML OpenRAIL-M 許可證副本(請完整、仔細閱讀許可證)。
請在此閱讀完整許可證