GithubHelp home page GithubHelp logo

stable_diffusion_webui_embedding_estimate's People

Contributors

tekitou898009890 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

stable_diffusion_webui_embedding_estimate's Issues

scheduler arguments

それぞれのスケジューラごとにパラメータ・引数が違うので、それごとに設定する方法

fp32 fp16

現状fp16だと0.0040あたりでloss値が振動するが、起動オプションで
'--no-half --precision full'
と付けると0.004050あたりで振動するようになった。ただここまで来ると画質の変化はほとんどない。
fp32/16の選択が出来るようにしたい。

leaf non-leaf

optimizer = Adam([input_tensor], lr=gr_late)

input_tensorにはleaf-tensrが必要だが、tensorにrequires_grad=Trueつけてそのまま入力すると
torch\optim\optimizer.py", line 515, in add_param_group
raise ValueError("can't optimize a non-leaf Tensor")
ValueError: can't optimize a non-leaf Tensor
となるが、it_opt = input_tensor.detach().requires_grad_(True)
と代入すると通るが、この後のパラメータ更新において、input_tensorが更新されないので、そこを直す

lora使用時にエラー

loraを使おうとするとエラーが出てwebui自体が止まる。

ただloraを使いつつ推定できるならloraからtiへの変換ということができそう。

LOSS_BACKWARD every steps

逆伝播を各stepごとに行う。

各stepごとのscheduleはiの数値を指定して入力に前回のdenoisedされた結果を用いる。

backwardによる膨大な計算量を必要とせず任意ステップまでembeddingを学習できる

transformerの限界

これの平均値からloss値を求めるため例えば2トークンを見たい場合そこのloss値が与える影響が少なくなる。

ゆえに範囲を限定する。

大きすぎるトークン数の場合は分割して処理した方がいいか。

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.