File size: 2,025 Bytes
cda809b
 
701a276
0295d63
cda809b
 
 
 
 
 
 
 
 
 
bca6f02
 
 
 
cda809b
 
bca6f02
 
 
 
e0f8924
bca6f02
4a8355e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181ca1e
4a8355e
 
bca6f02
 
 
 
 
cda809b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
license: mit
library_name: diffusers
pipeline_tag: text-to-image
---

# Mann-E Dreams

<p align="center">
  <img src="./collage.png" width=512 height=512 />
</p>

## Description

This is the newest SDXL based model from [Mann-E](https://mann-e.com) platform, which is a generative AI startup based in Iran. This model used thousands of midjourney generated images in order to make it possible to make high-quality images. Also, we've used a lot of tricks in order to make it possible to make the model as fast as SDXL Turbo or any other model which claims to be fast. 

The model has been mostly developed by Founder and CEO of Mann-E, [Muhammadreza Haghiri](https://haghiri75.com/en) and a team of four. We spent months on collecting the data, labeling them and training this model. The model is _mostly uncensored_ and tested with Automatic1111. 

## Model Settings

- CLIP Skip: 1 or 2 are both fine. 1 gives better results.
- Steps: 6-10. Usually 8 is perfect.
- CFG Scale: 2-4.
- Scale: 768x768 and 832x832 are just fine. Higher isn't tested. For 16:9 just try 1080x608
- Sampler : DPM++ SDE Karras

## Use it with diffusers

```py
from diffusers import DiffusionPipeline, DPMSolverSinglestepScheduler
import torch

pipe = DiffusionPipeline.from_pretrained(
    "mann-e/Mann-E_Dreams", torch_dtype=torch.float16
).to("cuda")

#This is equivalent to DPM++ SDE Karras, as noted in https://huggingface.co/docs/diffusers/main/en/api/schedulers/overview
pipe.scheduler = DPMSolverSinglestepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True)

image = pipe(
  prompt="a cat in a bustling middle eastern city",
  num_inference_steps=8,
  guidance_scale=3,
  width=768,
  height=768,
  clip_skip=1
).images[0]
image.save("a_cat.png")
```

## Additional Notes

- SDXL 1.0 LoRas are working just fine with the model.
- ControlNet, IPAdapter, InstantID are just fine. 

## Donations

- __Tron/USDT (TRC20)__ : `TPXpiWACUZXtUszDbpLeDYR75NQTwngD8o`
- __ETH (ERC20)__: `0x44e262f121b88bcb21caac3d353edd78c3717e08`