Open xzitlou opened 1 year ago
upscale doesn't use stable diffusion, it uses realesrgan. I would like to support other super-resolution algorithms in the future though.
Using a stable diffusion model to upscale can be done via tile/details controlnet. I'll leave this open so we can make it easy to do that using the upscale command.
Thanks @brycedrennan for your help, sorry for being so bothersome, but do you have an example of how to use it with the mentioned configuration? Thanks.
If you're just wanting to make big generations then the current master branch (unreleased) will work very well now.
imagine blueberries --size 1080p --upscale
will produce a well-composed 8k image. The stable diffusion upscaling happens automatically to get the image to 1080p and then the upscale flag takes it to 8k.
To upscale an existing image... let me see. I'll try a few things and get back to you in a minute.
Love to see all the sites you've made with the tool. Would love to learn more about your setup. Reach out on discord sometime.
imagine --init-image tests/data/dog.jpg --control-mode details --init-image-strength 0.5 --size 2048 "a dog" --no-compose-phase --upscale
Dog@512
Dog@8192
@brycedrennan quick question, what is the model you use in this command?
# generate kitchen remodel ideas
🤖🧠> imagine --control-image kitchen.jpg -w 1024 -h 1024 "{_interior-style_} kitchen" --control-mode depth -r 100 --init-image 0.01 --upscale --steps 35 --caption-text "{prompt}"
since no model is specified the default models are used:
Thanks for your response, can specify a model like openjourney
or the other availables?
yep specify whatever model you want for the base model. --model
You should get much better looking results for large images from the currently unreleased version but the api has changed somewhat.
Awesome! Thanks @brycedrennan
aimg upscale /root/work/*.jpg
has been working tremendously in former versions.
14.0.1 produces this:
Traceback (most recent call last):
File "/usr/local/bin/aimg", line 6, in
that's no good! Sounds like something is pretty wrong. I'll fix tonight.
Yeah a bunch of files were missing from the package. I've added them back and more importantly added a test so this doesn't happen again. 14.0.3 is working. @bluusun
Awesome thanks! Will check. Will wait to make newest version productive for a bit.
aimg version 14.1.1
aimg uspcale Usage: aimg [OPTIONS] COMMAND [ARGS]... Try 'aimg --help' for help.
Error: No such command 'uspcale'.
aimg uspcale /root/work
Usage: aimg [OPTIONS] COMMAND [ARGS]...
🤖🧠ImaginAIry.
Pythonic generation of images via AI
Options: --help Show this message and exit.
Commands: colorize Colorize images using AI. describe Generate text descriptions of images. edit Edit an image via AI. edit-demo Make some fun pre-set edits to input photos. imagine Generate images via AI. model-list Print list of available models. server Run a HTTP API server. system-info Display system information. upscale Upscale an image 4x using AI. version Print the version. videogen AI generate a video from an image
What am I missing?
uspcale
upscale
OMG :)
Hi, is there a way to use the upscale feature with another model? I tried: