ChanLumerico commited on
Commit
5c305b0
·
verified ·
1 Parent(s): 426b5f9

Update model card

Browse files
Files changed (1) hide show
  1. README.md +66 -0
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: lucid
3
+ license: creativeml-openrail-m
4
+ tags:
5
+ - base
6
+ - Stable Diffusion
7
+ - lucid
8
+ datasets:
9
+ - LAION-5B
10
+ pipeline_tag: feature-extraction
11
+ ---
12
+
13
+ # High-Resolution Image Synthesis with Latent Diffusion Models
14
+
15
+ > https://arxiv.org/abs/2112.10752
16
+
17
+ [Lucid](https://github.com/ChanLumerico/lucid) port of `https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5`,
18
+ converted to Lucid-native safetensors.
19
+
20
+ ## Available weights
21
+
22
+ | Tag | Params | GFLOPs | Size | Source |
23
+ |---|---|---|---|---|
24
+ | `CompVis_LAION` *(default)* | — | — | 3598.02 MB | https: |
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ import lucid
30
+ import lucid.models as models
31
+ from lucid.models.weights import Stable diffusionWeights
32
+
33
+ # default tag
34
+ model = models.stable_diffusion_v1(pretrained=True)
35
+
36
+ # explicit tag (enum or string)
37
+ model = models.stable_diffusion_v1(weights=Stable diffusionWeights.CompVis_LAION)
38
+ model = models.stable_diffusion_v1(pretrained="CompVis_LAION")
39
+
40
+ # feed token ids (tokenize with the matching lucid.utils.tokenizer)
41
+ input_ids = lucid.tensor([[101, 7592, 2088, 102]], dtype=lucid.int64)
42
+ out = model(input_ids)
43
+ hidden = out.last_hidden_state # (B, T, hidden_size)
44
+ ```
45
+
46
+ ## Conversion
47
+
48
+ Converted from `https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5` via
49
+ `python -m tools.convert_weights Stable Diffusion --tag CompVis_LAION`.
50
+ Key mapping + numerical parity verified against the source.
51
+
52
+ ## License
53
+
54
+ `creativeml-openrail-m` — inherited from the original weights.
55
+
56
+ ## Citation
57
+
58
+ ```
59
+ @inproceedings{rombach2022high,
60
+ title={High-Resolution Image Synthesis with Latent Diffusion Models},
61
+ author={Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj{\"o}rn},
62
+ booktitle={CVPR},
63
+ pages={10684--10695},
64
+ year={2022}
65
+ }
66
+ ```