toutjavascript / FoooXus-Fooocus-Extender

Manage Models, Styles and Loras of your Fooocus app
31 stars 1 forks source link

error when trying to launch Foooxus #1

Open MokkaBoss1 opened 5 months ago

MokkaBoss1 commented 5 months ago

Hi,

I tried to follow your guide about "how to install" and "how to use" and get an error at the end

image

any ideas?

Mokkaboss1

toutjavascript commented 5 months ago

Hi

I am not a python expert. Did you have errors when installing requirements ?

MokkaBoss1 commented 5 months ago

No, I did not.

I suspect an incompatibility with a pyrhon version. Are there any specific versions if python your code was tested on?

Regards

Mokkaboss1

On Tue, 13 Feb 2024 at 08:10, TJS @.***> wrote:

Hi

I am not a python expert. Did you have errors when installing requirements ?

— Reply to this email directly, view it on GitHub https://github.com/toutjavascript/FoooXus-Fooocus-Extender/issues/1#issuecomment-1940681559, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAPFHJGUGYAVMVMTFHUV2SLYTMNWDAVCNFSM6AAAAABDFNHJ5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBQGY4DCNJVHE . You are receiving this because you authored the thread.Message ID: @.***>

toutjavascript commented 5 months ago

I am working on python 3.11.8

I will add a console export of all versions modules to compare with requirements

MokkaBoss1 commented 5 months ago

Ok, thanks.

I’ll also try an 11.8 virtual environment this evening.

Mokkaboss1

On Tue, 13 Feb 2024 at 09:26, TJS @.***> wrote:

I am working on python 3.11.8

I will add a console export of all versions modules to compare with requirements

— Reply to this email directly, view it on GitHub https://github.com/toutjavascript/FoooXus-Fooocus-Extender/issues/1#issuecomment-1940891611, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAPFHJE5YSNRJ7KR5H2EFXLYTMWUNAVCNFSM6AAAAABDFNHJ5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBQHA4TCNRRGE . You are receiving this because you authored the thread.Message ID: @.***>

toutjavascript commented 5 months ago

So it seems distutils module is removed since python 3.12 I will try to find a workaround

MokkaBoss1 commented 5 months ago

Ok that explains my error. In the mean time I will downgrade to 3.11 and see what happens.

Many thanks

On Wed, 14 Feb 2024 at 09:28, TJS @.***> wrote:

So it seems distutils module is removed since python 3.12 I will try to find a workaround

— Reply to this email directly, view it on GitHub https://github.com/toutjavascript/FoooXus-Fooocus-Extender/issues/1#issuecomment-1943376152, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAPFHJCJAFZZYLCCXJODQL3YTR7TZAVCNFSM6AAAAABDFNHJ5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBTGM3TMMJVGI . You are receiving this because you authored the thread.Message ID: @.***>

toutjavascript commented 5 months ago

Yep, it should be ok in 3.11 Thanx to you to help me publish it

MokkaBoss1 commented 5 months ago

I installed 3.11 and managed to launch Foooxus. So one step forward.

When I queue the style illustration images I get a lot of errors in the Fooocus log window. It seems to be missing a file:

FileNotFoundError: No such file or directory: "C:\Fooocus_win64_2-1-14\Fooocus\models\checkpoints\sdXL_v10VAEFix.safetensors"

I will download this file and try again.

Mokkaboss1

MokkaBoss1 commented 5 months ago

downloaded the standard model (which I had previously removed) and now the images are generating.

you might want to add to the description these 2 points: 1) python 3.11 2) use of standard SDXL model https://civitai.com/models/101055/sd-xl

thanks

Mokkaboss1

toutjavascript commented 5 months ago

Cool Thanks for information.

You can change sdXL_v10VAEFix.safetensors in config.json

I will add a control at start to avoid that disappointment

I am working hard to make terminal very much more informative : Capture d’écran 2024-02-14 à 15 58 09

toutjavascript commented 5 months ago

Hello @MokkaBoss1

I have published a new release. Could you have a look ?

Thanks

MokkaBoss1 commented 5 months ago

I'll test it tonight. I had one additional thought if the "how to use" steps could be included in some kind of .bat file that you just need to double-click once fooocus is running that would be great.

  1. Move to Fooxus root directory
  2. venv\Scripts\activate
  3. python foooxus.py

do you think that could work?

thanks

Mokkaboss1

toutjavascript commented 5 months ago

Yes, I think it could be done

I will add it Thanks

MokkaBoss1 commented 5 months ago

I reinstalled foooxus to check your new flow and it worked.

[image: image.png]

I would just make it super clear in the line that starts with "A new config.json ...." that people should use the correct path where their fooocus is stored (sounds obvious) but some poor soul will fall into this trap"

Also it seems you have to use "//" rather than"/" in the path for it to work properly.

thanks

Mokkaboss1

On Thu, 15 Feb 2024 at 13:09, TJS @.***> wrote:

Hello @MokkaBoss1 https://github.com/MokkaBoss1

I have published a new release. Could you have a look ?

Thanks

— Reply to this email directly, view it on GitHub https://github.com/toutjavascript/FoooXus-Fooocus-Extender/issues/1#issuecomment-1946067255, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAPFHJGBBNDYRTH2Z4JCDOTYTYCJJAVCNFSM6AAAAABDFNHJ5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWGA3DOMRVGU . You are receiving this because you were mentioned.Message ID: @.***>

toutjavascript commented 5 months ago

Hi @MokkaBoss1

It seems your picture is not loaded

I will add your proposals to readme

MokkaBoss1 commented 5 months ago

sorry about that (the picture). I think it should be clear from the text what I meant :-)

I had another idea to use the images generated by Foooxus to replace the thumbnails in Fooocus (cat pictures)

these are 128x128 pixels rather than 512x512 pixels which I could easily downsize using Affinity designer batch feature. The only issue I faced was the way the images are named.

For example Fooxus generates "fooocus-v2_s4.jpg" but the fooocus thumbnails are named "fooocus-v2.jpg"

I was looking for a way to rename them all so Fooocus would see them.

Just an idea :-)