Comments (7)
I recently had a few update problems
- Can you please elaborate on what problems you had?
- How did you update (specific steps and actions please)?
- Does the error persist after restarting the application?
from invokeai.
The issue persists after a restart, yes.
I then had the not found issues described in v3.6.3 or so, and I did not want to reinstall the application, because I didn't want to lose all my photos. I used the developer terminal to reinstall invoke via pip (with the correct version). Then I did another update to the recent version, right after the first one. I manually had to merge the old database with the newly generated one, because the updater had issues with that.
I believe it's best if I just reinstall and copy the database, output, models and config folder. Thank you
from invokeai.
Ok, the problem is almost certainly bc you edited the db.
We have a robust, well-tested db migration system in place. In fact, we've had zero bug reports related to db migrations or integrity except when users edit the db themselves. You can safely run the latest installer over the older install and the app will migrate data if needed.
However, now that you have made manual changes to the db, I'm not as confident that the migration system will work as it should.
You mention the "updating having issues with the database". The updater doesn't touch the database. The application itself runs db migrations on first launch. Maybe there was some other problem with the updater.
Moving forward, hopefully you have a backup of the db and the invoke-managed directories from before you edited things. Copy that to a new install location. Download and run the latest installer from the releases, selecting this new install location with the copies. That should get things up and running.
from invokeai.
Hi there again! I luckily found a backup of my database, and I was able to install Invoke again from the latest installer. I downloaded some models (because may have deleted the model folder) and everything seemed great, but then I tried to generate an image.
Error here
100%|██████████████████████████████████████████████████████████████████████████████████| 50/50 [00:05<00:00, 8.80it/s]
E:\InvokeAI\App\.venv\Lib\site-packages\diffusers\models\attention_processor.py:1279: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at ..\aten\src\ATen\native\transformers\cuda\sdp_utils.cpp:263.)
hidden_states = F.scaled_dot_product_attention(
[2024-04-30 19:04:06,189]::[InvokeAI]::ERROR --> Problem saving image record and file: fromisoformat: argument must be str
[2024-04-30 19:04:06,193]::[InvokeAI]::ERROR --> Error while invoking session cbc1d5c1-f21f-4e62-873d-839b0124f152, invocation 495cb849-869b-4815-a187-446da4e3a0b9 (l2i):
fromisoformat: argument must be str
[2024-04-30 19:04:06,193]::[InvokeAI]::ERROR --> Traceback (most recent call last):
File "E:\InvokeAI\App\.venv\Lib\site-packages\invokeai\app\services\session_processor\session_processor_default.py", line 185, in _process
outputs = self._invocation.invoke_internal(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\InvokeAI\App\.venv\Lib\site-packages\invokeai\app\invocations\baseinvocation.py", line 289, in invoke_internal
return self.invoke(context)
^^^^^^^^^^^^^^^^^^^^
File "E:\InvokeAI\App\.venv\Lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "E:\InvokeAI\App\.venv\Lib\site-packages\invokeai\app\invocations\latent.py", line 1041, in invoke
image_dto = context.images.save(image=image)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\InvokeAI\App\.venv\Lib\site-packages\invokeai\app\services\shared\invocation_context.py", line 194, in save
return self._services.images.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\InvokeAI\App\.venv\Lib\site-packages\invokeai\app\services\images\images_default.py", line 92, in create
raise e
File "E:\InvokeAI\App\.venv\Lib\site-packages\invokeai\app\services\images\images_default.py", line 60, in create
self.__invoker.services.image_records.save(
File "E:\InvokeAI\App\.venv\Lib\site-packages\invokeai\app\services\image_records\image_records_sqlite.py", line 378, in save
created_at = datetime.fromisoformat(self._cursor.fetchone()[0])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: fromisoformat: argument must be str
[2024-04-30 19:04:06,194]::[InvokeAI]::INFO --> Graph stats: cbc1d5c1-f21f-4e62-873d-839b0124f152
Node Calls Seconds VRAM Used
main_model_loader 1 0.000s 0.000G
clip_skip 1 0.000s 0.000G
compel 2 1.469s 0.246G
noise 1 0.008s 0.244G
denoise_latents 1 10.739s 1.787G
core_metadata 1 0.000s 1.623G
l2i 1 1.673s 1.623G
TOTAL GRAPH EXECUTION TIME: 13.890s
TOTAL GRAPH WALL TIME: 13.894s
RAM used by InvokeAI process: 3.47G (+2.784G)
RAM used to load models: 2.22G
VRAM in use: 0.303G
RAM cache statistics:
Model cache hits: 7
Model cache misses: 5
Models cached: 5
Models cleared from cache: 0
Cache high water mark: 1.99/4.00G
Yeah, it's the same error as before, so there's some issue.
I then had to check if the issue is present in a fresh installation as well, and what do you want to hear? It worked. That means, somewhere in the files I tried to carry over, is an issue. I tried a bit around with the stuff and came to the conclusion that the database has to be the issue. The file I inputted into the installers' directory was not edited, and it got processed and converted, Seemingly a timestamp issue is occurring, following the exception shown on image generation, it tries to interpret something that's not a timestamp.
Idk, maybe I have to restart my gallery of image, thanks for help
from invokeai.
Ok, glad you have a backup to work from. If you upload your db backup (before the update), I can examine it to try and understand the issue.
from invokeai.
I really don't want to waste your time. I'm glad to still have my images, not in the UI, but at least as files, that's probably enough. And I have already like kinda set up my new environment.
Again I want to thank you, I had very bad experiences in other repos with people, thanks for hearing me out
from invokeai.
No worries, happy to help 👍
from invokeai.
Related Issues (20)
- [enhancement]: Is there a way to make API calls? HOT 6
- [bug]: iPad scroll and zoom is broken by the new compare image feature
- [bug]: Mac M1: Patchmatch not loading because libavcodec.60.dylib can't be found
- ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11 ERROR: Could not find a version that satisfies the requirement python==3.12.4 (from versions: none) ERROR: No matching distribution found for python==3.12.4 [notice] A new release of pip is available: 24.0 -> 24.1.2[bug]: HOT 1
- [bug]: ESRGAN model size error
- [bug]: Need help with installing xformers(xFormers can't load C++/CUDA extensions.) HOT 1
- [bug]: Weird outcome image when using specific SD 1.5 model HOT 1
- [enhancement]: PNG encoding performance
- [bug]: Failed to delete image file HOT 3
- [enhancement]: support for fal/AuraFlow
- [bug]: ValueError: images do not match
- [bug]: VRAM not being released HOT 5
- [enhancement]: Add the option to restart/redo the task in the queue panel
- [bug]: URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (openpose)
- [enhancement]: Add High Resolution fix for SDXL in the Linear Flow HOT 2
- [bug]: webui crashes when using ControlNet HOT 1
- [bug]: Image generation fails with a server error when starting InvokeAI offline. HOT 3
- [bug]: Missing fav icon on Chrome browser tab
- [bug]: Error in Web UI: Model Conversion Failed: 3dCartoonVision_v10 (2) HOT 1
- [enhancement]: reintroduce infinite scroll of images HOT 18
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.