darabos / ai-alchemy

An element merging game powered by AI
12 stars 0 forks source link

Is there a way to run this on windows? #1

Closed iChristGit closed 10 months ago

iChristGit commented 10 months ago

The last part is giving me error on Windows 11, is there a way to run it? i have comfy installed

darabos commented 10 months ago

I've only tried it on Linux, but if Comfy can run on your system then I think we can get this to run too. What error did you get?

iChristGit commented 10 months ago

I've only tried it on Linux, but if Comfy can run on your system then I think we can get this to run too. What error did you get?

Thank you for the help! I installed all pip requirments, and I get this for the run.sh file: C:\Users\User\Downloads\ai-alchemy-main>CONFIG=elemental.yml ./run.sh 'CONFIG' is not recognized as an internal or external command, operable program or batch file.

darabos commented 10 months ago

'CONFIG' is not recognized as an internal or external command,

Ah, right. How do you set environment variables in Windows... Maybe something like this?

set CONFIG=elemental.yml
curl "https://unpkg.com/vue@3.3.10/dist/vue.esm-browser.js" > vue.js
uvicorn server:app --reload --host 0
iChristGit commented 10 months ago

uvicorn server:app --reload --host 0

I did all the commands (CMD) I get this error: INFO: Will watch for changes in these directories: ['C:\Users\User\Downloads\ai-alchemy-main'] ERROR: [Errno 11001] getaddrinfo failed

I made sure ComfyUI is working on a different CMD window.

darabos commented 10 months ago

That might be related to the --host 0 flag. Try without?

I can try this on Windows myself later tonight. For all I know these could be the first few errors out of 100. 😅

iChristGit commented 10 months ago

That might be related to the --host 0 flag. Try without?

I can try this on Windows myself later tonight. For all I know these could be the first few errors out of 100. 😅

Now it works! without --host 0 It downloads models and tokenizers, and it says Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) Il wait for download to finish and ill check the URL

iChristGit commented 10 months ago

image

Its working! So, the needed commands on windows, after running comfyui:

pip install -r requierments.txt
set CONFIG=elemental.yml
curl "https://unpkg.com/vue@3.3.10/dist/vue.esm-browser.js" > vue.js
uvicorn server:app --reload 

You can add it to readme maybe? after you confirm it works also in your windows install. (I have Win11, so maybe you should check on W10/W7)

iChristGit commented 10 months ago

Also, how can i change to a different style? like the animals one you shown in the images?

darabos commented 10 months ago

Fantastic! I will add it to the readme!

Also, how can i change to a different style? like the animals one you shown in the images?

Instead of set CONFIG=elemental.yml change it to some other yml file in the configs directory. Make your own config!

iChristGit commented 10 months ago

Fantastic! I will add it to the readme!

Also, how can i change to a different style? like the animals one you shown in the images?

Instead of set CONFIG=elemental.yml change it to some other yml file in the configs directory. Make your own config!

Amazing! thank you for this project, will introduce it to my son, im sure he will be hooked!

darabos commented 10 months ago

I changed the code so you can choose the config on the UI instead of setting CONFIG. (3cc75afd8bcdeb0b73c705cf8fb5f0ec7ef9b20f) This way I don't have to make the readme more complex. 😅 Thanks!