Comments (5)
Move dream.py from scripts to main folder , one step higher in folder structure, so its nexxt to main,py
IMO thats should be default structure for windows version
If that wont work move all files from script sfolder to where main.py is
That solved this error for me
from invokeai.
Hopefully 1blackbar's solution will work. Python running on Windows is a little mysterious to me. @DrakeFruit, if you have the chance, could you also try opening dream.py in Notepad and remove the very first line which starts with #!/usr/bin/env python? This is a Linux thing and may be confusing the Windows interpreter.
from invokeai.
This is happening to me too. Running python ./scripts/txt2img.py --prompt x
works fine in the original repo, but python ./scripts/dream.py
throws this error unless I move it out into the main directory. Removing the shebangs didn't help.
Running python -m scripts.dream
seems to work though.
I don't work with Python much but I'm pretty sure that when you run a script, it's only supposed to add the directory of the script to the pythonpath, not the current directory, so I'm surprised the scripts/ setup works at all. From what I gather you're supposed to do something like this with a setup like that:
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
Adding that to the top of dream.py does seem to fix it.
from invokeai.
thanks, I did everything you all suggested and was confused why it wasn't working, turns out that simplet2i was actually missing somehow.
from invokeai.
from invokeai.
Related Issues (20)
- [enhancement]: Compact view for models list
- [bug]: invokeai-model-install.py download from https://civitai.com dont work in Invoke 4.0rc1 HOT 1
- [enhancement]: Add more image data to queue API
- [bug]: run or ckpt model to diffusers format give this error vr 4.0rc1 HOT 5
- [enhancement]: Call saved workflows via API
- [bug]: [4.0.0rc1] using TAESD as VAE throws error HOT 2
- [enhancement]: support non-mmap BLAKE3 hashing HOT 1
- [bug]: Model load events contain non-serializable data HOT 1
- [bug]: [4.0.0rc1]: Recalling LoRa Settings does not remove additional LoRas
- [bug]: submitting trigger phrase form with no values "submits" and breaks UI
- [bug]: ControlNet regression HOT 3
- [bug]: Depth anything preprocesssor error
- [bug]: unable to kill app during model initial registration HOT 1
- [bug]: `clip-vit-large-patch14` not found when converting a model, (CONVERT_MODEL_ROOT is set before the CLI args are applied)
- [bug]: gradient denoising causes artifacts in combination with LCM HOT 6
- [bug]: The image is shifted in canvas mode HOT 1
- [bug]: Black Images NVIDIA T1000 8GB HOT 3
- [bug]: outpainting and inpainting It gives a very bad result v4.0rc2 HOT 11
- [bug]: The aspect ratio setting and preview don't change when generation parameters are loaded from saved model defaults.
- [bug]: Model manager requires web page refresh to show the newly added models. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from invokeai.