Giter Site home page Giter Site logo

aa-as-is's Introduction

aa-as-is

img2imgで入力画像をそのまま出力画像にするだけのStable Diffusion web UI(以下sdwebui)用のextensionです。

sdwebui v1.6.0で動作を確認しています。

インストール

sdwebuiの通常のextensionと同じ方法でインストールすることができます。

  1. sdwebuiの「Extensions」タブを開く。
  2. 「Install from URL」タブを開く。
  3. 「URL for extension's git repository」欄に https://github.com/fai-9/aa-as-is と入力する。
  4. 「Install」ボタンを押す。
  5. Installed into /Users/fai-9/local-sd/stable-diffusion-webui/extensions/aa-as-is. Use Installed tab to restart. というメッセージが表示されたら「Reload UI」を押してUIをリロードするか、sdwebuiを再起動する。

使い方

img2imgタブに「As Is」というアコーディオンが追加されるので、「Enable」にチェックを入れてください。

応用

!After Detailerと組み合わせる

!After Detailer(以下ADetailer)は生成画像に含まれる人や人の顔を自動検出して補正するためのextensionです。

ADetailerは一度画像を生成しないと適用できないため、生成画像を加工してから顔を補正したい時にはinpaintで顔の部分をマスクして画像を生成して適用するなど一手間が必要になります。また、そのようにした場合は顔が元々のものと変わってしまうなど、望ましくない副作用が生じることもあります。aa-as-isを使うことで、そのような問題を解消することができます。

ADetailerと組み合わせて画像を直接補正する方法は以下の通りです。

  1. 「img2img」タブを開く。
  2. 「Generation」の「img2img」タブに元画像をアップロードする。
  3. 「Sampling steps」を1にする。(1でなくとも動作しますが、高速化のために1に設定すると良いでしょう)
  4. 「As Is」アコーディオンを開いて「Enable」にチェックを入れる。
  5. 「ADetailer」アコーディオンを開いて「Enable」にチェックを入れる。
  6. ADetailerの各種設定を行う。
    • 「Inpainting」タブの「Use separate steps」についてはチェックを入れて「ADetailer steps」を適切に設定して下さい。(そうしないとstepsが1になってしまいます)
  7. 「Genrate」を押して画像を生成する。

aa-as-is's People

Contributors

fai-9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.