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
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] 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. 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. 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.
- Downloads last month
- -
Model tree for MAI-Lab/GEM-Flux-Nudity
Base model
black-forest-labs/FLUX.1-dev