Comments (12)
@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.
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.
@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.
OK very cool. Happy dance
from fooocus-mre.
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.
OK thanks. BTW am loving generate forever
from fooocus-mre.
@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.
But what if I don't want them to be first. I think I want my custom one first.
from fooocus-mre.
@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.
...
from fooocus-mre.
Actually the current menu gives me 3 choice
- None with a check mark, I set it to None in settings.jon
- cinematic-default
- Favorites Style, which is the only entry in "sdxl_styles_1.json"
Where did #2 "cinematic-default" come from?
from fooocus-mre.
@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)
- JugernautXL not recognized HOT 2
- I get an error when I launch the tool - 'Lora file not found!' HOT 2
- Generates without any problem first time, then runs out of ram.
- The installation of V2.0.78.5 failed many times and the following error message appeared. What is the reason? HOT 1
- weird preview generating problem here and in the main repo
- My boss, MRE version 2.1 ready? HOT 12
- load_settings, e: 'utf-8' codec can't decode byte 0xd7 in position 1206: invalid continuation byte HOT 1
- Extreme RAM usage on colab
- fooocus-MRE loads model on every startup HOT 1
- All of a sudden
- How to use SDXL CHECKPOINTS that are in subfolders?
- [FIXed] Colab Error WARNING[XFORMERS] HOT 1
- running an error message
- Error while deserializing header: HeaderTooSmall
- ERROR: Failed building wheel for pygit2sudo
- paths.json not recognized
- Colab Error – xFormers wasn't build with CUDA support
- Ordering of Models and Loras
- Running different models similar to running different styles
- complaints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fooocus-mre.