683 points · by CuriouslyC · 2y ago · 226 comments
what we did at fal is take the model and run it on our inference engine optimized to run these kinds of models really really fast. feel free to give it a shot on the playgrounds. https://fal.ai/models/fal-ai/flux/dev
Bummer. After seeing what was generated in the blog post I was excited to try it! Now feeling disappointed.
I was hoping it'd be more like https://play.go.dev.
Good luck.
"a woman lying on her back wearing a blouse and shorts."
But it wouldn't render the image - i instead got a NSFW warning. That's one way to hide the fact that it cannot render it properly i guess...
PS: after a few tries it rendered "a woman lying on her back" correctly.
Remarkably better than the "DrawThings" iPhone app (my only reference point).
Also, everybody should remember that these models are not copyrightable and you should never agree to any license for them...
Thanks for pointing that out @Hizonener
Never underestimate the value of getting hordes of unpaid workers to refine your product. (See also React, others)
I'd prefer "false advertising" - it's more direct and without the culture war baggage.
That said, I don't think outputs of the model are derivative works of it, any more than the model is a derivative of its training data, so it's not clear to me they can actually enforce what you do with them.
Are you talking about https://en.wikipedia.org/wiki/Database_right or plain old copyright?
I'm no IP lawyer, but I've always thought that copyright put "requirements" on the artefact (i.e the threshold of originality), not the process.
In my jurisdiction we have database rights, meaning that you get IP protections for the artefact based on the work put into the process. For example a database of distances between adress pairs or something is probably not copyrightable, but can be protected under database rights if enough work was done to compile the data.
EDIT: Saw in another place in thread speaking about the https://en.wikipedia.org/wiki/Sweat_of_the_brow doctrine, relates to Database rights. (Neither of which notably are not applicable in the U.S)
It would be nice here if you give some examples of what you call open source model. Please ;) Because the impression is that these things do not exist, it's just a dream which does not deserve such a nice term..
However, plenty of open source software exists. The fact that open source models don't exist doesn't excuse attempts to falsely claim the prestige of the phrase "open source".
The Llama models aren't. Some of the Mistral models are (the Apache 2 ones). Microsoft Phi-3 is - it's MIT.
I'd suggest re-wording the blog post intro, it reads as if it was created by Fal.
Specific phrases to change:
> Announcing Flux
(from the title)
> We are excited to introduce Flux
> Flux comes in three powerful variations:
This section also comes across as if you created it
> We invite you to try Flux for yourself.
Reads as if you're the creator
This library is quite well known, 3rd most starred project in Julia: https://juliapackages.com/packages?sort=stars.
It has been around since, at least, 2016: https://github.com/FluxML/Flux.jl/graphs/code-frequency.
I hope this one doesn't stir as much discussion. It has 4000 stars, there isnt a large mass of people who view the world through the lens of "Flux is ML library". No one will end up in a "who is on first?" discussion because of it. If this line of argument is held sacrosanct, it ends up in an infinite loop until everyone gives up and starts using UUIDs.
Flux A is the ML library
Flux B is the T2I model
Flux C is the React library
Flux D is the physics concept of power per unit area
Flux E is the goo you put on solder
also search engines are context aware, if your search history is full of julia questions, it will know what you're searching for
If it's unlimited or "throttled for abuse," say that. Right now, I don't know if I can try it six times or experiment to my heart's desire.
I’d bet that fine art training would further improve the compositional skills of the model, plus it would open up a range of uses that are (to me at least) a bit more interesting than just illustrations.
Does it respond to any names? I noticed SD3 removed all names to prevent recreating famous people but as a side effect lost the very powerful ability to infer styles from artist names too.
It is very fast and very good at rendering text, and appears to have a text encoder such that the model can handle both text and positioning much better: https://x.com/minimaxir/status/1819041076872908894
A fun consequence of better text rendering is that it means text watermarks from its training data appear more clearly: https://x.com/minimaxir/status/1819045012166127921
I could write “with text that says Shutterstock” in the prompt but that doesn’t necessairly mean the dataset contains that
The image linked has a traditional www watermark in the lower-left as well. Even something innocous as a "Super Mario 64" prompt shows a copyright watermark: https://x.com/minimaxir/status/1819093418246631855
It's like GRRM complaining that LLMs can reproduce chunks of text from his books "they fed my novels into it" Oh yeah? It's definitely not all the parts of your book quoted in millions of places online, including several dedicated wiki style sites? That wouldn't be it, right?
https://www.vanityfair.com/verso/static/vanity-fair/assets/l...
There is a PR to that repo for a diffusers implementation, which may run on a cheap L4 GPU w/ enable_model_cpu_offload(): https://huggingface.co/black-forest-labs/FLUX.1-schnell/comm...
* NVIDIA Jetson AGX Orin Dev. Kit with 64 GB shared RAM.
* Default configuration for flux-dev. (FP16, 50 steps)
* 33GB GPU RAM usage.
* 4 minutes 20 seconds per image at around 50 Watt power usage.
(available without sign-in) FLUX.1 [schnell] (Apache 2.0, open weights, step distilled): https://fal.ai/models/fal-ai/flux/schnell
(requires sign-in) FLUX.1 [dev] (non-commercial, open weights, guidance distilled): https://fal.ai/models/fal-ai/flux/dev
FLUX.1 [pro] (closed source [only available thru APIs], SOTA, raw): https://fal.ai/models/fal-ai/flux-pro
Well, I was wondering about bias in the model, so I entered "a president" as the prompt. Looks like it has a bias alright, but it's even more specific than I expected...
[0] https://fal.media/files/elephant/gu3ZQ46_53BUV6lptexEh.png
>FLUX.1 [schnell]: A distilled version of the base model that operates up to 10 times faster
It should also be noted that "schnell" is the German word for "fast".
> Models
> We are offering three models:
> FLUX.1 [pro] the base model, available via API
> FLUX.1 [dev] guidance-distilled variant
> FLUX.1 [schnell] guidance and step-distilled variant
something about pro must be better than dev or it wouldn't be made API-only, but what exactly, how does guidance distilling affect pro it and what quality remains in dev?
If this runs locally, this is very very close to that in terms of both image quality and prompt adherence.
I did fail at writing text clearly when text was a bit complicated. This ideogram image's prompt for example https://ideogram.ai/g/GUw6Vo-tQ8eRWp9x2HONdA/0
> A captivating and artistic illustration of four distinct creative quarters, each representing a unique aspect of creativity. In the top left, a writer with a quill and inkpot is depicted, showcasing their struggle with the text "THE STRUGGLE IS NOT REAL 1: WRITER". The scene is comically portrayed, highlighting the writer's creative challenges. In the top right, a figure labeled "THE STRUGGLE IS NOT REAL 2: COPY ||PASTER" is accompanied by a humorous comic drawing that satirically demonstrates their approach. In the bottom left, "THE STRUGGLE IS NOT REAL 3: THE RETRIER" features a character retrieving items, complete with an entertaining comic illustration. Lastly, in the bottom right, a remixer, identified as "THE STRUGGLE IS NOT REAL 4: THE REMI
Otherwise, the quality is great. I stopped using stable diffusion long time ago, the tools and tech around it became very messy, its not fun anymore. Been using ideogram for fun but I want something like ideogram that I can run locally without any filters. This is looking perfect so far.
This is not ideogram, but its very very good.
If this thing can mint memes with captions in it on a single node I guess that’s the weekend gone.
Thanks for the useful review.
See: https://www.reddit.com/r/StableSwarmUI/comments/1ei86ar/flux... (SwarmUI is cross platform and runs on macs, and linux)
Would love to see an AI company attack engineering diagrams head on, my current hunch is that they just aren't in the training dataset (I'm very tempted to make a synthetic dataset/benchmark)
SD2 was more consistent about the word appearing in the image. "hat" would add hats more reliably. Context started to matter a little bit.
SD3 seems to be getting a lot better at the idea of scene composition, so now specific entities can be prompted to wear hats. Not perfect, but noticeably improved from SD2.
Extrapolating from that, we're still a few generations from being able to describe things with the precision of an engineering diagram - but we're heading in the right direction at a rapid clip. I doubt there needs to be any specialist work yet, just time and the improvement of general purpose models.
That seems like a good use for a speech driven assistant that know how to use PC desktop software. Just talk to a CAD program and say what you want. This seems like a long way off but could be very useful.
Prompt: two square boxes at a distance of 3.5mm. Both boxes have the same size, 10cm.
"An upside down house" -> regular old house
"A horse sitting on a dog" -> horse and dog next to eachother
"An inverted Lockheed Martin F-22 Raptor" -> yikes https://fal.media/files/koala/zgPYG6SqhD4Y3y_E9MONu.png
"A horse sitting on a dog" doesn't work but "A dog sitting on a horse" works perfectly.
> Convey compassion and altruism through scene details.
I have seen a lot of promises made by diffusion models.
This is in a whole different world. I legitimately feel bad for the people still a StabilityAI.
The playground testing is really something else!
The licensing model isn’t bad, although I would like to see them promise to open up their old closed source models under Apache when they release new API versions.
The prompt adherence and the breadth of topics it seems to know without a finetune and without any LORAs, is really amazing.
Gave me a credit of 2USD to play with.
The best prompt adherence on the market right now BY FAR is DALL-E 3 but it still falls down on more complicated concepts and obviously is hugely censored - though weirdly significantly less censored if you hit their API directly.
I quickly mocked up a few weird/complex prompts and did some side-by-side comparisons with Flux and DALL-E 3. Flux is impressive and significantly performant particularly since both the dev/shnell models have been confirmed by Black Forest to be runnable via ComfyUI.
> The fastest image generation model tailored for local development and personal use
Versus flux pro or dev models
Several iterations and these were the best I got out of schnell, dev and pro respectively for the following prompt:
"a fantasy creature with the body of a dragon and a beachball for a head, hybrid, best quality, shadows and lighting, fantasy illustration muted"
This is missing from the image. The generated image looks well, but while reading the prompt I was surpised it was missing
So your censorship investigation (via boobs) is testing a completely different, unrelated, model.
(Also you can download the model itself to check the local behaviour without extra filters. Unfortunately I don't have time to do it right now, but I'd love to know)
Rest is groping for a reason to make "model is censored [classifier made POST return black image instead of boobs]" something sensical.
...then it's not open source. At least the others are Apache 2.0 (real open source) and correctly labeled proprietary, respectively.
Photo of teen girl in a ski mask making an origami swan in a barn. There is caption on the bottom of the image: "EAT DRUGS" in yellow font. In the background there is a framed photo of obama
https://i.imgur.com/RifcWZc.png
Donald Trump on the cover of "Leopards Ate My Face" magazine
They train them by taking an image with a label, ie, "cat", and then adding some noise to it, run a training step, add more noise, run another step, and so on until the image is total (or near total) noise and still being told it's a cat.
Then, when you want to generate "cat", you start with noise, and it finds a cat in the noise and cancels some of the noise repeatedly. If you're able to watch an image get generated, sometimes you'll even see two cats on top of each other, but one ends up fading away.
Turns out, these denoisers don't require that many parameters, and if your resulting image has a few pixels that are just a tiny bit off color, you won't even notice.
The only reason that diffusion isn't used for text is because text requires discrete outputs.
If a pixel is just slightly the wrong shade of green, nobody really cares.
It looks like this is the case for LLMs, that the training quality of the data has a significant impact on the output quality of the model, which makes sense.
So the real magic is in designing a system to curate that high quality data.
You don't have to speculate on this as you can see that custom models for SDXL for instance perform vastly better than vanilla SDXL at the same number of parameters. It's all data set and tagging.
You can get better results with better data, for sure. And better architecture, for sure. But raw size is really important the difference in quality for models, all else held equal, is HUGE and obvious if you play with them.
Complete and utter UX/first impression fail. I had no desire to actualy try the model after this.
I assume you’re offering this as an API? Would be nice to have pricing page as I didn’t see one on your website.
Reddit message: https://www.reddit.com/r/StableDiffusion/comments/1ehh1hx/an...
Linked image: https://preview.redd.it/dz3djnish2gd1.png?width=1024&format=...
The prompt:
> Photo of Criminal in a ski mask making a phone call in front of a store. There is caption on the bottom of the image: "It's time to Counter the Strike...". There is a red arrow pointing towards the caption. The red arrow is from a Red circle which has an image of Halo Master Chief in it.
Some of the images I generated using schnell model with 8-10 steps using this prompt. https://imgur.com/a/3mM9tKf
This model appears to do well with fingers and hands out of the box.
-not censor it
-not be doing prompt injection
It's very easy, which is why no other firm is capable of it.
Really curious to see what other low-hanging fruits people are finding.
Lets, say that you took an image of a flower in a garden and ai has also generated an image of the same flower. When we see these pics side by side we find a lot of difference between them. Origin of my question was "how can we minimize this difference ?". How we can tell the machine that the more the magnitude of a certain parameter the more real it is, not sure if camera settings could help in this case.
So if you're wanting to experiment and have a 24GB card, have at it!
Result (distilled schnell model) for
"Photo of Criminal in a ski mask making a phone call in front of a store. There is caption on the bottom of the image: "It's time to Counter the Strike...". There is a red arrow pointing towards the caption. The red arrow is from a Red circle which has an image of Halo Master Chief in it."