logo elektroda
logo elektroda
X
logo elektroda

[AI] Graphics and image generator on your own computer - web interface for Stable Diffusion

p.kaczmarek2 
📢 Listen (AI):
Fooocus interface for generating images with a cabin in a snowy forest. .
How do I generate images on my own computer? How to change the content of a picture? Is AI able to suggest an interface sketch for a smart home controller? This is what I will try to find out here, all thanks to an easy-to-use web interface based on the Stable Diffusion XL architecture.

Presented here Fooocus is a completely free, open and 100% local (no internet, on your computer) environment for creating images using AI models based on Stable Diffusion. Fooocus offers, among other things:
- image generation based on prompts
- GPT2-based prompt development
- image upscaling, i.e. increasing the resolution
- outpainting, i.e. adding parts of an image outside its frame
- inpainting, i.e. editing part of an image
- variation, i.e. creating different versions of the image
- image prompt
- describe image, i.e. describing the image to the prompt of the selected model
- negative prompt, i.e. what you don't want in the image
- the possibility of integrating LORA add-ons, styles and setting their weights, which gives us greater control over what we generate

Install and run .
Download the package from the repository , extract, run.bat:
Fooocus, python_embedded folders and run.bat file in a computer file explorer. .
In newer versions there will also be separate scripts run_realistic.bat and run_anime.bat, they work in the same way - just select the style of graphics at the start.
After a while in the browser our Fooocus page will open:
Fooocus application interface for image generation on the computer. .
Time to start the fun.

First generations .
I must warn at the outset that the graphics take quite a long time to generate. On mine on an Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 64GB RAM, GeForce GTX 1060 they take about three minutes to generate.
We simply type in the prompt and select the options. Sometimes you have to scramble to get the desired effect. In addition, the keywords used affect the style of the whole image, so it's hard to make one 'series' of graphics. But let's give it a go, first a sample prompt. All generated by my laptop.
Model used: juggernautXL_v8Rundiffusion.safetensors

A cozy cabin in a snowy forest at sunset, warm light glowing from the windows, smoke rising from the chimney
.
A wooden cabin in a snowy forest at sunset, with warm light glowing from the windows and smoke rising from the chimney. A wooden cabin in a snowy forest at sunset with smoke rising from the chimney. Cabin in a snowy forest at sunset with smoke rising from the chimney. .
Pretty good, but why is the chimney on fire?



Futuristic city skyline at night, neon lights reflecting on wet streets, flying cars in the sky
.
Futuristic city at night with neon lights reflecting on wet streets, flying cars in the sky. Futuristic city at night with neon lights reflecting on wet streets and flying cars. Futuristic city at night with neon lights and flying cars over a wet street. .
Colour scheme great, but the sense of vehicles and backgrounds is quickly lost.

.

Astronaut floating peacefully above Earth, with stars and galaxies in the background, contemplative mood
.
Astronaut floating in space with Earth and stars in the background. Astronaut floating in space above Earth, with a galaxy in the background. Astronaut in a spacesuit floating above Earth in outer space. .
Strange details again.

.

A cat café with cozy decor, wooden furniture, and playful cats lounging around while people sip coffee
.
Cat café with cats on shelves and a table. Cozy cat café with wooden furniture where people enjoy coffee. Interior of a cozy cat café with pink decor and cats on the furniture. .
Here you can see the artefacts much more strongly, you often end up like this trying to generate a scene with many characters.

.

A cute fox wearing a small backpack, wandering through an autumn forest filled with orange and red leaves

Illustration of a fox with a backpack walking through an autumn forest. Plush fox with a backpack walking through an autumn forest A cute fox with a backpack walking through an autumn forest covered in orange leaves. .
Quite good, just always a slightly different character.

.

A massive floating island with waterfalls cascading into the clouds, bioluminescent plants glowing softly
.
Floating island with waterfalls and bioluminescent plants. Floating island with waterfalls and bioluminescent plants Floating island with waterfalls and bioluminescent plants. .

.

A colossal mechanical dragon flying over a steampunk city, gears and smoke in the background
.
Mechanical dragon flying over a steampunk city A massive mechanical dragon flying over a steampunk city. Massive mechanical dragon flying over a steampunk city. .


Electronics through the eyes of AI .
Just out of curiosity - does AI know what an Arduino looks like?

	arduino, electronics, table

Two Arduino microcontrollers with wires on a wooden table. Set of electronic components on a brown table, including Arduino boards and multicolored wires. Electronic setup on a wooden table with connected wires and a computer in the background. .
Something must have been in the teaching data, but still the heresy comes out....
And the diagrams?

schematic, full bridge rectifier, graetz, electronics

Complex electrical schematic with distorted text.
Complex electrical schematic with illegible labels. .
I wasn't expecting much, but this font is cool too. Still, this
"RECCTITICIFER".
The next generation has done... a picture of the element:
Three bridge rectifiers with unreadable labels on a gray surface. .
How about AI generating us retro hardware?
unitra, radio, retro, table, receiver

Stylish retro radio with a wooden case and metal knobs. Old Unitra radio with a wooden casing and classic panel. Retro radio on a wooden table with a distinctive round knob. .
Here's maybe another weird experiment....

polish car, fiat 126p, retro, polish city, street

A small retro car driving on a street with historic buildings in the background. An orange retro car parked on a cobblestone street with colorful buildings in the background. Retro car parked on a cobblestone street in a city, with classic architecture in the background.

Inpainting .
Inpainting allows us to modify or completely change part of the image content. For example, we can add a travelling companion to our fox. To use inpainting, turn on the "input image" option and drag the image we want to edit there. We then select the zones we are going to edit.
Animated fox with a backpack walking through an autumn forest .
The prompt I gave was similar to the one before, only now it included the word "owl".
The first two results:
Fox with a backpack in an autumn forest with an owl A plush fox with a backpack walking in an autumn forest. .

Trials of practical application .
Finally, I tried to use this generator to create sketches/proposals of various kinds of devices for a "smart home", for example maybe some kind of heating controller, weather station or some other type of touch panel there. I know that the text of these models does not generate readable text, but maybe some idea will give me?

smart home, ui, design, chart, heater, interface, screenshot
.
User interface on a large screen with charts and text in an unreadable language. Smart home interface display with charts and graphics. Smart control panel on the wall with a graphic interface Smartphone displaying a smart home app user interface. User interface on a mobile device for a smart home. User interface on a mobile device for a smart home. Heater panel interface with charts and indicators Tablet screen displaying a smart home user interface with charts and statistics. Person using a smart home interface on a tablet with charts and icons. Wall-mounted control panel with colorful chart and round dial below. Wall-mounted control panel with colorful chart and round dial below. .
From a distance it still resembles something, the colour scheme is probably ok too, but the text and details are completely wrongly drawn.

Summary .
To was a short presentation showing what images could easily be generated on typical consumer hardware. It didn't turn out to be that difficult at all and the results are pretty good too, although I'm sure opinions will be divided. Out of curiosity I also tried to generate slightly more practical things, but from this angle the model used limps along so I wouldn't expect much from it.
I'll leave the final verdict to you, only here I'll emphasise that all generation is 100% local, as well as highly customisable and modifiable, so it might be worth taking an interest in, if only out of privacy concerns.
Do you use image generators and if so, what for?

About Author
p.kaczmarek2
p.kaczmarek2 wrote 12174 posts with rating 10128 , helped 580 times. Been with us since 2014 year.

Comments

VIGOR_PICTURES 18 Mar 2025 00:22

Cool stuff. I'm going to test it on my "stationary" tomorrow. Especially interesting are these additional options in addition to the usual image generation. Maybe you will get used to it and make your... [Read more]

p.kaczmarek2 18 Mar 2025 07:37

You certainly need to be patient, as generating good graphics can take a little more trying than with ready-made, closed generators that are not available for download. It is also a good idea to disable... [Read more]

speedy9 18 Mar 2025 09:39

I like the owl-shaped backpack the best (something went wrong here ;) ) and that cat: https://obrazki.elektroda.pl/7909671700_1742286449_thumb.jpg https://obrazki.elektroda.pl/5886031800_1742286461_thumb.jpg... [Read more]

VIGOR_PICTURES 18 Mar 2025 09:54

. A while ago I installed myself fooocus with the default models (it actually installed itself). I was most curious to see what the difference in generation time would be between the laptop GTX1060 card... [Read more]

p.kaczmarek2 18 Mar 2025 10:09

. The character's hands (fingers) are a typical example, and as I tested, the wires cause problems too. The more complex the concept the worse, but it also depends what was in the teaching data. I... [Read more]

speedy9 18 Mar 2025 10:24

Lol, good one! Neither Bing nor ChatGPT actually can (both are the DALL E model). Even after pointing out the error and asking to raise the wine level by 100%,. The glass is always half full. [Read more]

OPservator 18 Mar 2025 10:53

Apparently ChatGPT 4o has the ability to generate simple templates for 3D printing, has anyone checked how far this stands out or is suitable? Let's give it a simple phone stand.... [Read more]

speedy9 18 Mar 2025 11:02

There are some such generators, but I haven't tested them, I don't have a printer :) E.g. meshy.ai [Read more]

p.kaczmarek2 18 Mar 2025 11:45

This illustrates how influential the learning data is. By manipulating the learning data, you can strongly influence the performance of the model. It's not so much 'real' intelligence as some people think,... [Read more]

speedy9 18 Mar 2025 11:53

Unfortunately you are right, and this is the biggest threat from any AI. If people start to believe uncritically what AI generates, whether in terms of information or images, it is a very simple way to... [Read more]

andrzejlisek 18 Mar 2025 17:40

In my opinion, a good test of these generators is requests for technical and application graphics, e.g. "spectrum of a high-pressure sodium lamp", "phase diagram of water", "inside of a quartz resonator",... [Read more]

gulson 18 Mar 2025 22:06

There is a lack of a model for technical drawings, let alone diagrams. There's quite a niche here, it will be interesting to see if they ever get around to it. Although it won't be easy, because how do... [Read more]

OPservator 19 Mar 2025 09:07

If the AI were fed with the diagrams described, it might understand something. At the moment, based on a photo, it is able to match a part to a motorbike and even determine the brand, although it does... [Read more]

Belialek 19 Mar 2025 10:24

Playing AI on a graphics card with VRAM=6GB had to end up like this :) On this hardware you run SD 1.4 or 1.5 - i.e. relatively "poorly educated" models, from 2-3 years ago. SDXL 1.0 already needs 8GB... [Read more]

OPservator 19 Mar 2025 10:30

The demand for AI has definitely had a negative impact on GPU prices, which of course is classically lost on gamers. [Read more]

Belialek 19 Mar 2025 10:54

This is influenced by many factors, AI being just (or as much as) one of them. I personally have been unlucky, due to a crash I had to buy graphics in 2022. (peak of cryptocurrency digging + covid) and... [Read more]

OPservator 19 Mar 2025 10:58

I for one regret not selling my RTX 3070 in the peak as used ones were going for 6-7k, I bought it literally before the price spike as it was December 2019 :D . If I sold it then, I'd probably have a... [Read more]

p.kaczmarek2 19 Mar 2025 11:06

I would rather not expect a good AI model for technical drawings/schematics any time soon. Text is easier to generate, because it is enough to predict successive tokens, but a technical drawing? A schematic,... [Read more]

Belialek 19 Mar 2025 11:30

. Not to look far - model o1 for my prompt: "Generate a schematic of an electronic circuit that, when connected to 230V AC power, will blink a red LED in a system of 2 seconds on, 1 second off. To this,... [Read more]

%}