FoooXus-Fooocus-Extender icon indicating copy to clipboard operation
FoooXus-Fooocus-Extender copied to clipboard

error when trying to launch Foooxus

Open MokkaBoss1 opened this issue 1 year ago • 16 comments

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

MokkaBoss1 avatar Feb 12 '24 21:02 MokkaBoss1

Hi

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

toutjavascript avatar Feb 13 '24 08:02 toutjavascript

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: @.***>

MokkaBoss1 avatar Feb 13 '24 08:02 MokkaBoss1

I am working on python 3.11.8

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

toutjavascript avatar Feb 13 '24 09:02 toutjavascript

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: @.***>

MokkaBoss1 avatar Feb 13 '24 10:02 MokkaBoss1

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

toutjavascript avatar Feb 14 '24 09:02 toutjavascript

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: @.***>

MokkaBoss1 avatar Feb 14 '24 10:02 MokkaBoss1

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

toutjavascript avatar Feb 14 '24 10:02 toutjavascript

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 avatar Feb 14 '24 14:02 MokkaBoss1

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

MokkaBoss1 avatar Feb 14 '24 14:02 MokkaBoss1

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 avatar Feb 14 '24 14:02 toutjavascript

Hello @MokkaBoss1

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

Thanks

toutjavascript avatar Feb 15 '24 13:02 toutjavascript

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

MokkaBoss1 avatar Feb 16 '24 06:02 MokkaBoss1

Yes, I think it could be done

I will add it Thanks

toutjavascript avatar Feb 16 '24 08:02 toutjavascript

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: @.***>

MokkaBoss1 avatar Feb 16 '24 15:02 MokkaBoss1

Hi @MokkaBoss1

It seems your picture is not loaded

I will add your proposals to readme

toutjavascript avatar Feb 16 '24 20:02 toutjavascript

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 :-)

MokkaBoss1 avatar Feb 16 '24 20:02 MokkaBoss1