Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use of embedding correctly (like: easynegative.pt) #704

Answered by stduhpf
ysnrfd asked this question in Q&A
Discussion options

I want to know how to use embeddings in sdcpp. Please guide me. For example, I use the following command:

sd.exe -m ./models/wm_lcm.safetensors --cfg-scale 1 -H 768 -W 512 --seed 16319 --sampling-method lcm --lora-model-dir ./loras --steps 10 -p "(masterpiece, best quality, highres), 1girl, solo, stormtrooper, armor, helmet, sexy, girl, female, blonde hair, lora:lite_stormtrooper:1" -n ", (EasyNegativeV2)" -o ./output/0118.png --vae-tiling --embd-dir ./emb/EasyNegativeV2.

please help me 🙏🙏🙏

You must be logged in to vote

There are some known issues with detecting trigger words/pseudo tokens for embeddings #602

I think the main issue here is you're using --embd-dir ./emb/EasyNegativeV2 instead of just --embd-dir ./emb/? (I'm assuming the embedding file is located at ./emb/EasyNegativeV2.pt and not ./emb/EasyNegativeV2/EasyNegativeV2.pt)

Replies: 1 comment 1 reply

Comment options

There are some known issues with detecting trigger words/pseudo tokens for embeddings #602

I think the main issue here is you're using --embd-dir ./emb/EasyNegativeV2 instead of just --embd-dir ./emb/? (I'm assuming the embedding file is located at ./emb/EasyNegativeV2.pt and not ./emb/EasyNegativeV2/EasyNegativeV2.pt)

You must be logged in to vote
1 reply
Comment options

No, all my embedding files are in the emb folder.
path: C:\Users\ysnrfd\Desktop\sdcpp\emb

I wanted to know how to use embeddings in the prompt and negative prompt.

I’m using the build sd-master-10feacf-bin-win-vulkan-x64.zip, and I run it using CMD.

full command for run:

C:\Users\ysnrfd\Desktop\sdcpp>sd.exe -m ./models/wm_lcm.safetensors --cfg-scale 1 -H 512 -W 512 --seed 16319 --sampling-method lcm --lora-model-dir ./loras --steps 10 -p "(masterpiece, best quality, highres), 1girl, solo, stormtrooper, armor, helmet, sexy, girl, female, blonde hair, lora:lite_stormtrooper:1" --negative-prompt "(worst quality, low quality:1.4), (bad hands), bad hands, bad face, bad imgae, bad, bad-hands-5,easynegative2" -o ./output/0121.png --vae-tiling --diffusion-fa --embd-dir ./emb

I’m using Intel HD Graphics 520 for generating images.

Answer selected by ysnrfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /