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)
- [bug]: Model installation failed (fresh install of 4.2.0) HOT 1
- [bug]: trouble converting SDXL safetensors and ckpt models to Diffusers HOT 8
- [bug]: Memory Management - freeing memory when not generating? HOT 3
- [enhancement]: Preview [ Cover ] for Models an Loras HOT 5
- [bug]: patchmatch failed to load or compile (/usr/lib64/libtiff.so.6: undefined symbol)
- [enhancement]: Use GitHub merge queue
- [enhancement]: add eye dropper new color fill method
- Critical Performance Drop in InvokeAI 4.2.x: Image Generation Slows to a Crawl HOT 6
- [bug]: ModuleNotFoundError: No module named 'controlnet_aux' HOT 1
- [enhancement]: Use mkdocs for invocation docs
- [bug]: Error with starter model dreamshaper 8 and certain schedulers
- [bug]: Error Dependencies HOT 11
- [bug]: Model's "default width/height" settings are not applied in Canvas mode
- [enhancement]: increasing LoRA weight cap HOT 3
- [bug]: When RAM cache is too low, LoRAs are not applied correctly
- [bug]: File paths stored incorrectly
- [bug]: installation if Python higher then 3.11 HOT 1
- [bug]: Nodes unable to connect ModelIdentifierField without a ui_type set to an input ModelIdentifierField with a ui_type set HOT 3
- [enhancement]: Ctrl-A Hotkey to Select All Board Images HOT 1
- [enhancement]: Investigate using `spandrel` for upscaling and image restoration
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.