Do you know about the generative image AI known as Stable Diffusion 3?
- User
Do you know about the generative image AI known as Stable Diffusion 3?
- Assistant
Stable Diffusion is a type of generative image AI developed to create high-quality images from textual descriptions. Although as of my knowledge cutoff date in October 2023, Stable Diffusion 3 specifically has not been officially released, the previous versions—like Stable Diffusion 1.x and 2.x—have garnered attention for their capabilities in generating detailed and realistic images.
The core technology behind Stable Diffusion involves diffusion models, which are a form of generative model that iteratively improve the quality of generated images. These models learn to reverse a gradual noising process to produce a final image, using large datasets of images paired with text descriptions during training.
Key features typically include:
- Ability to generate high-resolution images based on detailed textual prompts.
- Flexibility to create a variety of artistic styles and objects.
- Adaptability for different applications like art creation, concept design, and more.
If there has been a release of a hypothetical Stable Diffusion 3, it likely comes with further improvements in image quality, faster generation times, and possibly new features or optimizations.
- User
StablityAI has launched Stable Diffusion 3 medium, they have their Stable Diffusion 3 large model only available through their API service, but the medium weights have been fully released. There is also a brand new model not more than a week old called Flux.1, this is a new organization founded by many who did work on the original Stable Diffusion models, they released three versions, the Pro version is only available via their API service, the Dev is a distilled version of the model with the weights released for non-commercial use, and the third version is Schnell, it is further distilled from Dev with the purpose of being a low step model(ie, images can generate in 4 steps), Schnell is fully open for commercial use. The key thing and what I want to dive in to, is their Text Encoders. Stable Diffusion 3 uses three text encoders, they have the CLIP-L and CLIP-G, just like SDXL(a model released by StabilityAI some time after SD2), the third text encoder is an LLM, T5XXL. Flux uses two text encoders, CLIP-L and T5XXL a lot like SD3, but doesn't have CLIP-G. Since T5 is an older Google model, it has been around for awhile now, what I am wonder is, is there a T5XXL or some other T5 that is finetuned with NSFW data at all?
- Assistant
As of the latest information up to October 2023, T5 (Text-To-Text Transfer Transformer) from Google was initially released without specific fine-tuning for NSFW (Not Safe For Work) content. The T5 model has various sizes, ranging from small versions suitable for less resource-intensive tasks to T5-XXL, which is one of the largest and most powerful variants.
The T5-XXL is typically fine-tuned on a wide variety of tasks using data intended to ensure general-purpose effectiveness. Fine-tuning a model for NSFW data, however, would generally be done with caution due to ethical concerns and potential misuse. If such a model exists, it would likely be developed under strict guidelines and not be publicly accessible without restrictions.
- User
Ok, so there isn't a publicly available fine-tune of T5 on NSFW data or any kind? It doesn't have to be specialized for NSFW, just finetuned on a large dataset including NSFW data?
- Assistant
As of my latest information, there isn't a widely recognized or publicly available fine-tuned version of T5 explicitly including NSFW (Not Safe For Work) data in its training set. Most publicly available versions of T5, including T5-XXL, have been trained on large, diverse datasets intended to perform well on a wide range of natural language understanding tasks. These datasets generally strive to avoid contentious or harmful content, including explicit NSFW data, to adhere to ethical standards and ensure the safety of the model's outputs.
- User
Let's say I want to finetune T5 on NSFW data for myself, please break down the details and steps in as much detail as possible of how I would go about doing it? Is there any repositories on github that will allow me to finetune T5? What hardware requirements would I need to finetune(RAM/VRAM)? Can it be finetuned on CPU or is it really only viable on a GPU? How do I structure the training data for training? I have trained LoRAs for Stable Diffusion 1.5 and XL, so I know caption-image pair datasets, but have no experience with text-to-text models like T5. I have a GTX 1080Ti 11GB VRAM, if I cannot do a finetune locally, what about the possibility of training a LoRA for T5 and merging it in to create a new model? Think about it in a step-by-step way to give the best insight starting from scratch of training a new T5 model.
- Assistant
- User
Ok, another question I have since my lack of knowledge is not letting me understand how this would work. An LLM model like T5 takes in a text input, and outputs text. Where as CLIP-L doesn't do that does it? Doesn't CLIP-L tokenize the input prompt into an embedding(vector embedding), which is then used as an input for the UNET in Stable Diffusion? But how would T5 factor in to this?
- Assistant