Git Product home page Git Product logo

stable-diffusion-webui-advance-prompt-tuning's Introduction

Hello ~

Libra11 github stats Top Langs

Libra11 github stats Top Langs



stable-diffusion-webui-advance-prompt-tuning's People

Contributors

aimidi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stable-diffusion-webui-advance-prompt-tuning's Issues

Train APT embedding failed with TypeError: only integer tensors of a single element can be converted to an index

Using WEBUI Commit hash: 7ba3923d5b494b7756d0b12f33acb3716d830b9a, installed via extensions tab.

Full call stack:
Arguments: ('elysia', '0.005', 1, 'D:\Stable Diffussion\stable-diffusion-webui\elysia', 'textual_inversion', 'D:\Stable Diffussion\stable-diffusion-webui\textual_inversion_templates\subject_filewords.txt', 512, 512, 100000, 100, 100, False, False, '', '', 65, 15, 11, -1.0, 512, 768, '5', 'D:\Stable Diffussion\stable-diffusion-webui\models\convnext\checkpoint-best_t5.pth', True, True, 0.2, 1) {}
Traceback (most recent call last):
File "D:\Stable Diffussion\stable-diffusion-webui\modules\ui.py", line 185, in f
res = list(func(*args, **kwargs))
File "D:\Stable Diffussion\stable-diffusion-webui\webui.py", line 54, in f
res = func(*args, **kwargs)
File "D:\Stable Diffussion\stable-diffusion-webui\extensions\stable-diffusion-webui-advance-prompt-tuning\advance_prompt_tuning\ui.py", line 22, in train_advance_prompt_tuning_embedding
embedding, filename = apt.train_apt_embedding(*args)
File "D:\Stable Diffussion\stable-diffusion-webui\extensions\stable-diffusion-webui-advance-prompt-tuning\advance_prompt_tuning\advance_prompt_tuning.py", line 436, in train_apt_embedding
output = apt_sd_model(x, c_in, scale=negative_scale_rate)
File "D:\Stable Diffussion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "D:\Stable Diffussion\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 879, in forward
return self.p_losses(x, c, t, *args, **kwargs)
File "D:\Stable Diffussion\stable-diffusion-webui\extensions\stable-diffusion-webui-advance-prompt-tuning\advance_prompt_tuning\advance_prompt_tuning.py", line 261, in p_losses_hook
model_output = e_t_uncond + scale * (e_t - e_t_uncond)
TypeError: only integer tensors of a single element can be converted to an index

使用WEIBUI中的extension安装,点击Train APT embedding时报错

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.