244 points · by geox · 2y ago · 181 comments
I can't figure out how to try this thing. The closest I got was this sentence:
"To get started with Imagen 2 on Vertex AI, find our documentation or reach out to your Google Cloud account representative to join the Trusted Tester Program."
1. Go to console.cloud.google.com
2. Go to model garden
3. Search imagegeneration
4. End up at https://console.cloud.google.com/vertex-ai/publishers/google...
And for whatever reason that is where the documentation is.
Sample request
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
"https://us-central1-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/us-central1/publishers/google/models/imagegeneration@002:predict"
Sample request.json {
"instances": [
{
"prompt": "TEXT_PROMPT"
}
],
"parameters": {
"sampleCount": IMAGE_COUNT
}
}
Sample response {
"predictions": [
{
"bytesBase64Encoded": "BASE64_IMG_BYTES",
"mimeType": "image/png"
},
{
"mimeType": "image/png",
"bytesBase64Encoded": "BASE64_IMG_BYTES"
}
],
"deployedModelId": "DEPLOYED_MODEL_ID",
"model": "projects/PROJECT_ID/locations/us-central1/models/MODEL_ID",
"modelDisplayName": "MODEL_DISPLAYNAME",
"modelVersionId": "1"
}
Disclaimer: Haven't actually tried sending a request...Of course it became immediately obvious to me why the model isn't public. It's just not as good as advertised, that's why. Google should stop deceiving the public.
What a shitshow.
Results: https://imgur.com/a/JIiuDt9
Results (these are the only two images I generated): https://imgur.com/a/JIiuDt9
It also includes a link to the TTP form, although the form itself seems to make no reference to Imagen being part of the program anymore, confusingly. (Instead indicating that Imagen is GA.)
Generally Available?
Open AI really shows us how it's done, or the way Mistral just dumps a torrent on everyone. That's marketing i can respect.
>> generally available for Vertex AI customers on the allowlist (i.e., approved for access).
And also be prepared to wait somewhere between 6- inf months ... at this point the google cloud account reps can't even grease the wheels for us
I can only compare it to Stable Diffusion. But Imagen2 seems significant more advanced.
Try to do anything with text and SDxl. It's not easy and often messes up. I don't think you can get a clean logo with multiple text areas on sdxl.
Look at the prompt and image of the robin. That is mighty impressive.
I wouldn't say this until we are able to try it for ourselves. As we know, Google is prone to severe cherry picking and deceptive marketing.
Overselling is not a winning strategy, especially when others are shipping genuinely good products.
Every time Google show off something new the first thing people now ask is what part Google faked (or extreme cherry picking).
dalle 3 gets things right most of the time
Now, from a designer perspective, honestly, I don't care too much who's the provider of the image, since one will have to anyway work more on it. So designers, illustrators, etc are not the target for such platforms, even though it seems counter-intuitive. If you ask me which system was the source for an image used for a poster last 12 months... well, I may remember, but is not of a paramount importance to the end result. After an year of active usage of DALLE2/3, SDXL, Midjourney (which is also SD of some sort) I can confidently state that there is much more work to do and a lot of prompting, to actually get something unique and something worth being used. Sadly the time taken is proportionate to working with actual real artist. Of course - the latter is likely to be hit by this new innovation, but perhaps not so much.
From the perspective of s.o. integrating text-ot-image - which is yet to be seen in a reasonable manner, like for a quest game with generative images - the API flexibility and cost would be the most important qualifier. Even then it may actually be better to run SD/XL. From cost perspective - all these services are still very pricey to be used for anything more serious than few one-shot images.
Instead they use
>The robin flew from his swinging spray of ivy on to the top of the wall and he opened his beak and sang a loud, lovely trill, merely to show off. Nothing in the world is quite as adorably lovely as a robin when he shows off - and they are nearly always doing it.
And show off the result being a photograph of a robin, cool. SDXL[0] can do the exact same thing given the same prompt, in fact even SD1.5 would be able to easily[1].
"A flying squirrel gliding between trees": It won't be able to do it. Just telling it "flying squirrel" will often generate squirrels with bat wings coming off their backs.
Ahh, but that's just a tiny, specific thing missing from the data set! Surely that'll get fixed eventually as they add more training data...
"A fox girl hugging a bunny girl hugging a cat girl": The only way to make this work is with fancy stuff like Segment Anything (SAM) working with Stable Diffusion. Alternative prompts of the same thing:
"A fox girl and a bunny girl and a cat girl all hugging each other"
It's such a simple thing; generative AI can make three people hugging each other no problem. However, trying to get it to generate three different types of people in the same scene is really, really hard and largely dependent on luck.
The flying squirrel one, was spot on, it showed an image of the trees, and a squirrel with wings, which kind of looned like bat wings.
The 3 girls hugging each other however worked fairly well, it always created 3 different types of persons, but they never hugged each other. Either two of these 3 hugged each other, or no one hugged someone.
Would be a lot easier if AfterDetailer could handle dynamic prompts.
One low-level issue is how long everything has to take because of tooling. Engineers have way too much patience for overcomplicated garbage and tend to obsess over pointless details. Kind of in the opposite direction of coasting, but still a real problem.
Ambition trickles downwards and is killed upwards.
I'm guessing that number included product/program managers, not just "people managers".
[1] https://cloud.google.com/vertex-ai/docs/generative-ai/image/...
My kids found it organically and were happily creating all sorts of DALL·E 3 images.
I was hoping to see some research development but nothing.
> Imagen 2’s dataset and model advances have delivered improvements in many of the areas that text-to-image tools often struggle with, including rendering realistic hands and human faces and keeping images free of distracting visual artifacts.
[1] https://github.com/GoogleCloudPlatform/generative-ai/blob/ma...
[2] https://console.cloud.google.com/vertex-ai/publishers/google...
That last picture is still so horribly bad it's no wonder Google made it almost impossible to access this tech.
How did Google drop the ball on AI like this when they pioneered the entire field?
Yet another documentation release by googling, promising impressive things that we cannot actually use, while the competition is readily available.
"Generative AI" is a learned, lossy compression codec. You should not be surprised that the range of outputs for a given input seems limited.
- https://cloud.google.com/vertex-ai (marketing page)
- https://cloud.google.com/vertex-ai/docs (docs entry point)
- https://console.cloud.google.com/vertex-ai (cloud console)
- https://console.cloud.google.com/vertex-ai/model-garden (all the models)
- https://console.cloud.google.com/vertex-ai/generative (studio / playground)
VertexAI is the umbrella for all of the Google models available through their cloud platform.
It still seems there is confusion (at google) about this being TTP or GA. Docs say both, the studio has a request access link.
more... this page has a table with features and current access levels: https://cloud.google.com/vertex-ai/docs/generative-ai/image/...
Seems that some features are GA while others are still in early access, in particular image generation is still EA, or what they call "Restricted GA"
Is this just an end-run around incompetent security teams or something?
In addition to the models, you'll find a host of day-2 features like model monitoring and experiment tracking. Having to vet and pick from 100+ new SaaS's for these is a nice to not have problem.
Why bother using a product from a company that is notorious for failing to commit to most of their services, when you can run something which produces output that is pretty close (and maybe better) and is free to run and change and train?
Stable Diffusion is the Linux-on-the-desktop of diffusion models IMO
(I agree w/ your comment on trusting Google - pretty sure they'll just phase this off eventually anyway, so I wouldn't bother trying it)
Then this: https://civitai.com/
And I have completely abandoned DALLE and will likely never use it again.
Linux entered the market at a time when paid alternatives were fully established and concentrated, servicing users/companies for years who became used to working with them. No paid txt2img offering comes anywhere close to market dominance for image generation. They don't offer anything that isn't available with free alternatives (they actually offer less) and are highly restrictive in comparison. Anyone who is doing anything beyond disguised DALLE/Imagen clients, has absolutely no incentives to use a paid service.
This makes the image much more usable without editing.
(DALL-E pretends to do that, but it's actually just using GPT-4 Vision to create a description of the image and then prompting based on that.)
Live editing tools like https://drawfast.tldraw.com/ are increasingly being built on top of Stable Diffusion, and are far and away the most interesting way to interact with image generation models. You can't build that on DALL-E 3.
But it clearly didn't win in many scenarios, especially those require text to be precise, and that happens to be more important in commercial setting, to clear up those gibberish texts generated by OSS stable diffusion seems tiring by itself.
If you're just generating something for fun then DallE/MJ is probably sufficient, but if you're doing a project that requires specific details/style/consistency you're going to need way more tools. With SD/A*1111 you can use a specific model (one that generates images with an Anime style for instance), use a ControlNet model for a specific pose, generate hundreds of potential images (without having to pay for each), use other tools like img2img/inpaint to hone your vision using the images you like, and if you're looking for a specific effect (like a gif for instance), you can use the many extensions created by the community to make it happen.
I guess that turns out to be not as important for end users as you'd think.
Anyway, DeepFloyd/IF has great comprehension. It is straightforward to improve that for Stable Diffusion, I cannot tell you exactly why they haven't tried this.
Also not sure if it can be extended with LORAs or by turning it into a video/3D model the same way an LDM can.
Because it costs $0.02 per image instead of $1000 on a graphics card and endless buggering around to set up.
*it also takes like 15 mins to setup up (this includes loading the models).
i'm one of the founders
Still, Stable Diffusion is losing the usability, tooling and integration game. The people who care to make interfaces for it mostly treat it as an expert tool, not something for people who have never heard of image generating AI. Many competing services have better out-of-the-box results (for people who don't know what a negative prompt is), easier hosting, user friendly integrations in tools that matter, better hosted services, etc.
To add insult to injury, they have nice press releases and demos of their latest AI but aren't easily accessible or available until next year. The press and Wallstreet love gob it up and the stock rises. Is it just for them?
OpenAI services are available in Canada but as an individual, $27/mo for ChatGPT Plus and then paying per use for the API is kinda a hard sell for me.
I'm needing a hardware refresh soon, so I think i'm just going to run the open source stuff locally once I get around to figuring out how to set that all up.
This has recently been resolved though, with a compromised deal, so hopefully these services will soon be available here
But I still agree with you - would rather have seen Google not give in to this sort of thing at all.
It was very different for Meta - they already don't like sending people away from their site so it was much easier for them to hold out.
FWIW I think I have 5+ google accounts. Have had them since gmail was in beta and have never been banned
> As always, you are in control of your data with ChatGPT.
Which is a flat-out lie. You can allegedly opt-out of them using your data for training, but you are still sending your data to a private corporation for processing/etc. which makes it totally unsuitable for handling sensitive or restricted data.