Giter VIP home page Giter VIP logo

Comments (12)

MoonRide303 avatar MoonRide303 commented on June 16, 2024 1

@Jisevind I don't plan adding saving custom styles, cause I want to keep UI as simple as possible, and add only absolutely necessary buttons. But I added support for loading custom styles from JSON files in v1.0.45.1 - you can look at original styles in sdxl_styles folder, and make your own styles in in similar fashion (JSON files from this folder will be loaded on start).

from fooocus-mre.

barepixels avatar barepixels commented on June 16, 2024 1

Just want to get clear:

In "sdxl_styles" folder there are 4 included styles.json.

You can edit but NOT add new styles.json file
NOR rename the existing json files
because these 4 are hardcoded in modules/sdxl_styles.py
Only make changes within the 4 included json files

Is this correct?

from fooocus-mre.

MoonRide303 avatar MoonRide303 commented on June 16, 2024 1

@barepixels You CAN add more files there. Those 4 listed in sdxl_styles.py are just to have those default styles loaded and listed as first.

from fooocus-mre.

barepixels avatar barepixels commented on June 16, 2024 1

OK very cool. Happy dance

from fooocus-mre.

barepixels avatar barepixels commented on June 16, 2024 1

Answer to my own questions:

I made my own style.json "sdxl_styles_1.json" It has just one custom entry
I move the default 4 json files into a sub diretory as backup

Relaunch Fooocus, it did it's update and did not download the missing default 4 json files YAY
and Fooocus style menu only shows 1 entry. YAY

Happy Dance

from fooocus-mre.

barepixels avatar barepixels commented on June 16, 2024 1

OK thanks. BTW am loving generate forever

from fooocus-mre.

Jisevind avatar Jisevind commented on June 16, 2024

@barepixels It seems to load all json files in the styles folder, I was able to create a new json file and add new styles and it shows up in the list.

from fooocus-mre.

barepixels avatar barepixels commented on June 16, 2024

But what if I don't want them to be first. I think I want my custom one first.

from fooocus-mre.

MoonRide303 avatar MoonRide303 commented on June 16, 2024

@barepixels You can rename those files (including default styles) to something like styles_1.json styles_2.json etc. - they will be loaded in alphabetical order of file names, then.

from fooocus-mre.

barepixels avatar barepixels commented on June 16, 2024

...

from fooocus-mre.

barepixels avatar barepixels commented on June 16, 2024

Actually the current menu gives me 3 choice

  1. None with a check mark, I set it to None in settings.jon
  2. cinematic-default
  3. Favorites Style, which is the only entry in "sdxl_styles_1.json"

style

Where did #2 "cinematic-default" come from?

from fooocus-mre.

MoonRide303 avatar MoonRide303 commented on June 16, 2024

@barepixels cinematic-default is the default built-in style of Fooocus - I wanted to keep this one in the code. All the other that came from external sources (sai / twri / diva and mre) are in JSON files.

from fooocus-mre.

Related Issues (20)

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.