Instructions to use MAI-Lab/GEM-Flux-Nudity with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MAI-Lab/GEM-Flux-Nudity with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MAI-Lab/GEM-Flux-Nudity", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| license: other | |
| license_name: flux-1-dev-non-commercial-license | |
| license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md | |
| language: | |
| - en | |
| base_model: | |
| - black-forest-labs/FLUX.1-dev | |
| pipeline_tag: text-to-image | |
| tags: | |
| - unlearning | |
| - concept-erasure | |
| - nudity | |
| - safety | |
| ## GEM - FLUX (nudity-erased) | |
| This is a fine-tuned checkpoint of the original FLUX.1 [dev] model using the GEM concept erasure method from the paper "GEM: Geometric Erasure by Contrastive Velocity Matching in Rectified Flows" (ICML'26 Spotlight). | |
| The target was "nudity" and the anchor "fully dressed". This model is thus a "safer" version of the original, because explicit content is suppressed. It is not the original checkpoint from the paper, but a reproduction. No other architectural changes have been made. | |
| ## License & Attribution | |
| This model is a **modified derivative** of [FLUX.1 \[dev\]](https://huggingface.co/black-forest-labs/FLUX.1-dev) by Black Forest Labs Inc. | |
| > **The FLUX.1 [dev] Model is licensed by Black Forest Labs Inc. under the | |
| > [FLUX.1 [dev] Non-Commercial License](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md). | |
| > Copyright Black Forest Labs Inc. | |
| > IN NO EVENT SHALL BLACK FOREST LABS INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR | |
| > OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
| > FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.** | |
| ### Usage Restrictions | |
| This derivative is released under the same | |
| [FLUX.1 [dev] Non-Commercial License v1.1.1](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md). | |
| **Commercial use is not permitted.** Permitted uses include personal research, | |
| experimentation, hobby projects, and non-production evaluation by commercial entities. | |
| This model is **not** an official product of Black Forest Labs Inc. and has not | |
| been endorsed, approved, or validated by Black Forest Labs Inc. |