zlacker

[parent] [thread] 12 comments
1. gpm+(OP)[view] [source] 2023-12-13 17:10:29
I think the process is

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...
replies(4): >>kossTK+e01 >>6gvONx+F31 >>zb3+if1 >>gpm+Hm1
2. kossTK+e01[view] [source] 2023-12-13 21:21:31
>>gpm+(OP)
This is giving me ptsd flashbacks from working with gCloud from weird "console" pages hidden deep in some yggdrasil sized tree structure with undocumented apis and labyrinthian authentication processes unknown to everyone even Google themselves.
3. 6gvONx+F31[view] [source] 2023-12-13 21:37:33
>>gpm+(OP)
Once I finally got mostly set up for that, with billing and everything, it said it's only available for a limited number of customers, with a "request access" link to a google form with further links (to enable https://aiplatform.googleapis.com/) which 404.

What a shitshow.

replies(2): >>behnam+z61 >>gpm+Nl1
◧◩
4. behnam+z61[view] [source] [discussion] 2023-12-13 21:53:03
>>6gvONx+F31
Google seems to be desperately trying to show that they’re still relevant in AI, but they always end up with half-assed demos and presentations of products that don’t exist yet.
replies(1): >>KennyB+Ld1
◧◩◪
5. KennyB+Ld1[view] [source] [discussion] 2023-12-13 22:30:53
>>behnam+z61
Isn't "half assed" a fairly accurate description of basically every google product since gmail and Android (and arguably that's been a rolling dumpster fire)

Even calendaring was something that took ages for them to get right. For something like a decade you couldn't move an event from one calendar to another on Android - only via the destop web view.

Google went from being an innovative company to a web version of IBM...a giant lumbering dinosaur that can't get out of its own way, and everyone kinda needs but also deeply loathes

replies(1): >>Grazes+xm1
6. zb3+if1[view] [source] 2023-12-13 22:41:15
>>gpm+(OP)
I can confirm that month ago there was a bug where you could try Imagen just via changing JS variables (but it didn't work for video generation).

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.

◧◩
7. gpm+Nl1[view] [source] [discussion] 2023-12-13 23:19:35
>>6gvONx+F31
Weird, just tried in my terminal and it works fine. My account definitely has no special permissions, I've never requested any, I've probably spent less than $100 total on it (and that almost entirely on domain names).

Results: https://imgur.com/a/JIiuDt9

◧◩◪◨
8. Grazes+xm1[view] [source] [discussion] 2023-12-13 23:24:06
>>KennyB+Ld1
How has Android been a dumpster fire? I don't even think it's arguable.
replies(1): >>Shamel+Vt1
9. gpm+Hm1[view] [source] 2023-12-13 23:25:00
>>gpm+(OP)
Self reply since I can't edit the post anymore. Tried this, the api seems to work just fine to me with no extra permissions.

Results (these are the only two images I generated): https://imgur.com/a/JIiuDt9

◧◩◪◨⬒
10. Shamel+Vt1[view] [source] [discussion] 2023-12-14 00:14:37
>>Grazes+xm1
They may have had the occasional advantage over iOS for a brief period 5-6 years ago. Nowadays they clearly lag behind Apple on everything and even their Pixel line does a half-assed copy/paste of the latest iPhone features (or introduces features which are shiny but have some sort of downside or require cloud processing to work).

Android's advantage has always been that everyone else gets to play. And it's good that we have that. But they aren't exactly the beacon of innovation they think they are or claim to be in marketing copy.

replies(2): >>Grazes+6E1 >>ehnto+2e2
◧◩◪◨⬒⬓
11. Grazes+6E1[view] [source] [discussion] 2023-12-14 01:39:25
>>Shamel+Vt1
This is your opinion with nothing from a technical standpoint.
replies(1): >>Shamel+4r2
◧◩◪◨⬒⬓
12. ehnto+2e2[view] [source] [discussion] 2023-12-14 08:11:24
>>Shamel+Vt1
Especially in regards to Android, feature parity is just not that high on my wishlist. It makes calls, apps run on it, happy days. It's like knowing my car has running gear parity with another brand, when most of us are just using them to drive to work.
◧◩◪◨⬒⬓⬔
13. Shamel+4r2[view] [source] [discussion] 2023-12-14 10:24:50
>>Grazes+6E1
Sure, that’s fair.
[go to top]