Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to modify or create style #1550

Open
panorios opened this issue Jan 20, 2025 · 5 comments
Open

Unable to modify or create style #1550

panorios opened this issue Jan 20, 2025 · 5 comments

Comments

@panorios
Copy link

After the update (1.30.0) I cant modify or create a style.
All checkpoints and settings are greyed.
I have a modified the (extra_model_paths.yaml) and that does not seems to be the problem since the old styles work fine finding the corresponding models.
I am able to use my previous saved styles but not edit or create new ones.
Is there anything I can try before reinstalling everything?
Thank you.

@Acly
Copy link
Owner

Acly commented Jan 20, 2025

You mean even the buttons to Create/Duplicate styles are disabled? That would be strange.

It sounds like a folder mixup. There is a "Open Folder" button next to style selection settings, where does that lead?

Should be a folder in .../krita/ai_diffusion/styles with only your custom styles.
While the plugin installation should be in .../krita/pykrita/ai_diffusion

@panorios
Copy link
Author

Hi, thank you for your quick reply.

Yes the top buttons work and the folder is the correct one, but everything else is disabled even if i add a new style.

Image

@panorios
Copy link
Author

Here is a style as it is saved, in case it helps.
"name": "jug",
"version": 2,
"architecture": "auto",
"checkpoints": [
"NEW\juggernautXL_v8Rundiffusion.safetensors"
],
"loras": [
{
"name": "Hyper-SDXL-8steps-lora.safetensors",
"strength": 0.8
}
],
"style_prompt": "",
"negative_prompt": "",
"vae": "Checkpoint Default",
"clip_skip": 0,
"v_prediction_zsnr": false,
"self_attention_guidance": false,
"preferred_resolution": 0,
"sampler": "Alternative - Euler A",
"sampler_steps": 10,
"cfg_scale": 2.5,
"live_sampler": "Realtime - Hyper",
"live_sampler_steps": 6,
"live_cfg_scale": 1.8

@Acly
Copy link
Owner

Acly commented Jan 20, 2025

The folder content doesn't look quite right: everything (built-in styles and user styles) are in the same folder. They should be separate as mentioned above.

It looks like your plugin is installed into krita/ai_diffusion directly, rather than krita/pykrita/ai_diffusion

pykrita is the folder for python plugins, tbh I didn't even know it worked if you installed it outside of this folder. But it's likely what leads to all your styles being treated as "built-in".

I'd suggest reinstalling the plugin in the correct location (if you do it from inside krita it should end up there automatically)

You can probably keep parts of the existing folder (styles, settings), but might have to delete the *.py files

@panorios
Copy link
Author

I must have messed up when I was updating manually in previous versions.
Thank you so much for your help and thank you for all your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants