alexandersokol / sd-model-organizer

model organizer extension for stablediffusion-web-ui
97 stars 13 forks source link

[BUG]: CSS or... What's going on? #36

Open Blaadick opened 1 year ago

Blaadick commented 1 year ago

What with or without the other plugins, on any theme, with any option to import the model. It does not work.

OS: win 11 SD WebUi: v1.4.0 Browser: Microsoft Edge

Records list card image

and any other tab of this plugin

alexandersokol commented 1 year ago

Hello, I've just checked extension on the same environment and everything looks good. Do you have any other custom css styles for sd-webui or extensions?

Blaadick commented 1 year ago

Yes, I am using Lobe Theme. I assumed it was breaking the Model Organizer, but after disabling Lobe Theme nothing has changed.

On Sun, Jul 2, 2023, 23:23 Alexander Sokol @.***> wrote:

Hello, I've just checked extension on the same environment and everything looks good. Do you have any other custom css styles for sd-webui or extensions?

— Reply to this email directly, view it on GitHub https://github.com/alexandersokol/sd-model-organizer/issues/36#issuecomment-1616808161, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5LKLRSAJL7ALRLBXWUXKHDXOHKFVANCNFSM6AAAAAAZ3I3R6Q . You are receiving this because you authored the thread.Message ID: @.***>

alexandersokol commented 1 year ago

Well, I tried both lobe theme and quick css, and it broke css styles for model organizer and few other extensions I have, and reverting changes to default has no effect. I will try to found out how it could be fixed.

alexandersokol commented 1 year ago

Fresh installation of Lobe theme and model orginizer works well. Did you use anything else f or theming?

image
Blaadick commented 1 year ago

I only use Lobe Theme for WebUi design. I tried downloading WebUi and Model Organizer again, but it had no effect. Perhaps there is something wrong with something outside of WebUi. What information can I provide to better understand the problem?

alexandersokol commented 1 year ago

To be honest I'm not sure that problem is in css styles. Your screenshot looks like they weren't loaded at all. If it is possible you can try to find javascript/main.js file in the extensions dir, find and uncomment the following line:

function log(text) {
    // console.log(text)
}

And can you also attach your webui start parameters if you use any?

Blaadick commented 1 year ago

Fixed it! The extension couldn't find the paths to some files, due to changing the local directory name during installation.

Screenshot 2023-07-05 110902

alexandersokol commented 1 year ago

Great! Did you change dir path to extensions somewhere in the code or with argument?

Blaadick commented 1 year ago

I renamed the plugin folder in the stable-diffusion-webui\extensions

Blaadick commented 1 year ago

Only now I realize I've given little to no information. Well, when downloading the plugin, I set its folder to a custom name ModelOrganizer, but when loading, the plugin is looking for css files in the sd-model-organizer folder. Because of this, the error with css loading occurs.

ceruleandeep commented 11 months ago

@alexandersokol your method of using file= URLs to load content does not work if the extension is installed anywhere other than a subdirectory of stable-diffusion-webui. For instance, if user has relocated their data dir with --data-dir /disk2/sd/userdata or sth, it will not work. Or as @Blaadick finds, it is not possible to rename the repository.

I tried to fix this, but I don't know how a1111 expects extensions to load content dynamically. Probably it expects that you will not! You can fix the css loading easily by moving it to the root dir of the extension, then a1111 will handle the loading for you. But I don't know how to fix tinymce loading.

I gave up and cloned the repo into stable-diffusion-webui/extensions. This is the only extension I have that requires this.

Thank you for an excellent extension!