- Jun 16, 2018
- 76
- 76
I installed python but its telling me python not found launch unsuccesful
I installed python but its telling me python not found launch unsuccesful
Restarting did it. So it all compiled. I have a separate folder of AI graphics and pregmod, do I keep it that way? What do I enter into the URL for API URL? Do I need to run compile every time before playing?Did you choose the "Add to PATH" option when installing?Nevermind, you didn't. It was there, somewhere. Try reinstalling Python. Edit: Maybe also try restarting.
How do you tell it to load a model?First, download one of the latest alpha of pregmod. It's not that hard to find. Next, get the Automatic1111 web UI working assuming your system meets the requirements (16 GB RAM, 2 GB+ VRAM, NVidia GPU recommended).You must be registered to see the linkswhich is still valid AFAIK. Alternatively, just install the needed Python version (3.10.6) and download theYou must be registered to see the links. Expand the zip where you want, open webui-user.bat and let it run, download and install everything needed. Go toYou must be registered to see the linksand find a model with an aesthetic you like, photorealistic, anime, cartoon, whatever. Download and put said model in /models/Stable-diffusion. Once the WebUI is done installing and loading, tell it to load whichever model you've picked.
Once the model loading is done, quit and duplicate the webui-user.bat file and rename it; this is the one you will be using with pregmod. Change the commandline arguments to the following, assuming no other arguments are already present:
Save, close, then launch the .bat. Once it's done loading, open pregmod, go to the options and select the AI image generation option. If it's working, you should see the stable diffusion console window start working. The rest of the options are dependent upon your system resources and the model (and aesthetic) you ended up picking so I can't really direct you any further.
Is it really that hard to install the mod?I have a new routine. I drank two cups of tea today to finally install this pregmod, but my head is aching from all the details and now I've decided to do it later. This is the third or fourth time I've said "I'll do it later".
Edit: Somehow I managed to get it to work.
I saw the comments talking about AI and compiling and shit when I hadn't even downloaded the game.Is it really that hard to install the mod?
I did it once after drinking 5 beers.
The webui-user.bat file in the Stable Diffusion WebUI folder is how you will start the AI process running; the AI art generation system is completely separate from pregmod and will be running in the background either generating images upon request or waiting for requests to arrive. Its location on your hard drive in relation to pregmod does not matter; all that matters is whether or not you gave it the commandline arguments as specified earlier that will allow it to hear any generation requests pregmod sends it. Yes, you will need to start the AI system every time before you play pregmod and this is not compiling.Restarting did it. So it all compiled. I have a separate folder of AI graphics and pregmod, do I keep it that way? What do I enter into the URL for API URL? Do I need to run compile every time before playing?
Easiest way is through the webui, located atHow do you tell it to load a model?
Thanks. The visuals help a lot. So the guide on the top says to download 1.4 ai model and gives us a link and tells us to rename it. Step 3 and 4 hereThe webui-user.bat file in the Stable Diffusion WebUI folder is how you will start the AI process running; the AI art generation system is completely separate from pregmod and will be running in the background either generating images upon request or waiting for requests to arrive. Its location on your hard drive in relation to pregmod does not matter; all that matters is whether or not you gave it the commandline arguments as specified earlier that will allow it to hear any generation requests pregmod sends it. Yes, you will need to start the AI system every time before you play pregmod and this is not compiling.
Easiest way is through the webui, located atYou must be registered to see the linksorYou must be registered to see the linkswhenever the AI system has started up sufficiently.
View attachment 3756992
Click for a drop-down list of the models you have avaliable, click on a model to load it. Whenever the AI system starts it will open the last model you told it to use. If you only have one model then it will default to that model. If you have no models it'll download a model for you (probably SD 1.5). When you see a message like this in the console window it's done loading and ready to go.
View attachment 3757000
You will need a model; which one you go for is entirely up to you. Renaming it/them is optional. The model used will determine the aesthetic of what it generates and every model has different capabilities. The ones suggested on Rentry are not required, though again you will need at least one model for Stable Diffusion/the AI art generation system to work. There's lots of models everywhere andThanks. The visuals help a lot. So the guide on the top says to download 1.4 ai model and gives us a link and tells us to rename it. Step 3 and 4 hereYou must be registered to see the links
does that mean we need to download another model from somewhere else or is this one of
Those?
Awesome. Thanks! I got the AI to work, it opens aYou will need a model; which one you go for is entirely up to you. Renaming it/them is optional. The model used will determine the aesthetic of what it generates and every model has different capabilities. The ones suggested on Rentry are not required, though again you will need at least one model for Stable Diffusion/the AI art generation system to work. There's lots of models everywhere andYou must be registered to see the linksis a pretty decent repository.
Things to keep in mind:
- The ability to generate NSFW stuff varies greatly between models; some do it at the drop of a hat, others need to be finagled to do so. Given how it will be pregmod generating the prompts and not you, pick a model that's geared towards lewdity if you can.
- Avoid any and all XL models - I don't know your hardware and setup, you most likely don't know what you're doing with the AI system so let's just not touch that.
- LoRAs/Lycoris are NOT what you want; they are tiny models designed to do specific things. The models you want are also called checkpoints, have file extension .safetensors and are generally 2-6 GB in size.
- Do you want anime, cartoon or realistic titties? Models tend to be aimed towards a specific aesthetic, so keep that in mind when choosing one. I can make a few suggestions for anime and realistic models if needed.
- Slaves in Free Cities can vary greatly in appearance and ethnicity and many models are not very good at differentiating between ethnicities. If that matters to you it's something to be aware of.
That command is for ForgeUI which is not what you are using. You are using the Automatic1111 UI. Don't use commands for another environment.I copied the webui-user.bat and added the line set to:
COMMANDLINE_ARGS=--listen --port=7860 --api --enable-insecure-extension-access --cors-allow-origins *
and
COMMANDLINE_ARGS=--listen --port=7860 --api --enable-insecure-extension-access --cors-allow-origins
What comes to mind is you're already running the AI system thus the port is taken, you have something else on your system taking the port or you did something strange to the arguments in the webui-user.bat file. Double check your arguments.When I use saitamas line of it gives me this error:
That command is for ForgeUI which is not what you are using. You are using the Automatic1111 UI. Don't use commands for another environment.
What comes to mind is you're already running the AI system thus the port is taken, you have something else on your system taking the port or you did something strange to the arguments in the webui-user.bat file. Double check your arguments.
The parameterI copied the webui-user.bat and added the line set to:
COMMANDLINE_ARGS=--listen --port=7860 --api --enable-insecure-extension-access --cors-allow-origins *
and
COMMANDLINE_ARGS=--listen --port=7860 --api --enable-insecure-extension-access --cors-allow-origins
And receive this error in the renamed edited startup file
launch.py: error: argument --cors-allow-origins: expected one argument
--cors-allow-origins
requires one argument. In this case, the argument that you want is *
to indicate that the requests to the UI can come from any address. So the *
in the first line is mandatory. The second line is incorrect and will always trigger the error that you have reported. Do not use the second line in your batch file.--cors-allow-origins=*
.I had someone try to help me trough discord but they couldn’t figure out what the issue was. Maybe it’s my firewall or whatever, he sent me his own file etc but still couldn’t get it to work. The ai generates images on the website but not in game. If anyone knows what the issue could be LmkThe parameter--cors-allow-origins
requires one argument. In this case, the argument that you want is*
to indicate that the requests to the UI can come from any address. So the*
in the first line is mandatory. The second line is incorrect and will always trigger the error that you have reported. Do not use the second line in your batch file.
To reduce the risk of errors, I recommend using an equals sign instead of a space between the parameter and its value, so that it is more obvious that the value is not optional. You should consider ending your command line with--cors-allow-origins=*
.
Dm me on discord. hookerooI found this game today, got amazed that there's an AI generator with Pregmod... But today, I am a defeated man.
I just spent the last 5 hours trying to fix the unfixable and.... I should go sleep now. I can start the AI but images will not appear in game. As someone said above, the User.bat file would be the one used but... I can't make it work. Before it was some bs, now it says it cannot download Torch even though the Run.bat already downloaded it. If I try and make the argument via notepad on the User.bat file, this time, the Run.bat will not run. I've tried countless times to clean install Python and webui but nothing works.
Now, if nobody can help me with this, I might just have to forget about this game forever.
Ugh
i need sleep
Sent a friend request, name is KishiP(kishiphio) on discord.Dm me on discord. hookeroo
Idk, it wasn't supposed to be hard at first, had a guide to follow and all as well directly via Free Cities.... Until nothing worked as prescribed in the guideToo bad his first discovery got ruined by setting up the non-beginner friendly AI setup, the game ran perfectly fine with ol reliable vector paperdoll, i've only tried the webgl once but iirc that one is also easy to setup no need for complicated technical expertise