AlanB commited on
Commit
8111fd7
·
verified ·
1 Parent(s): 430103d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +70 -3
README.md CHANGED
@@ -1,10 +1,77 @@
1
  ---
2
- license: openrail++
 
3
  tags:
4
- - text-to-image
5
- - PixArt-Σ
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  ---
 
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  <p align="center">
9
  <img src="asset/logo-sigma.png" height=120>
10
  </p>
 
1
  ---
2
+ license: creativeml-openrail-m
3
+ base_model: "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS"
4
  tags:
5
+ - stable-diffusion
6
+ - stable-diffusion-diffusers
7
+ - text-to-image
8
+ - diffusers
9
+ - full
10
+
11
+
12
+ inference: true
13
+ widget:
14
+ - text: 'A blonde sexy girl, wearing glasses at latex shirt and a blue beanie with a tattoo, blue and white, highly detailed, sublime, extremely beautiful, sharp focus, refined, cinematic, intricate, elegant, dynamic, rich deep colors, bright color, shining light, attractive, cute, pretty, background full, epic composition, dramatic atmosphere, radiant, professional, stunning'
15
+ parameters:
16
+ negative_prompt: 'blurry, cropped, ugly'
17
+ output:
18
+ url: ./assets/1.png
19
+ - text: 'a wizard with a glowing staff and a glowing hat, colorful magic, dramatic atmosphere, sharp focus, highly detailed, cinematic, original composition, fine detail, intricate, elegant, creative, color spread, shiny, amazing, symmetry, illuminated, inspired, pretty, attractive, artistic, dynamic background, relaxed, professional, extremely inspirational, beautiful, determined, cute, adorable, best'
20
+ parameters:
21
+ negative_prompt: 'blurry, cropped, ugly'
22
+ output:
23
+ url: ./assets/2.png
24
+ - text: 'girl in modern car, intricate, elegant, highly detailed, extremely complimentary colors, beautiful, glowing aesthetic, pretty, dramatic light, sharp focus, perfect composition, clear artistic color, calm professional background, precise, joyful, emotional, unique, cute, best, gorgeous, great delicate, expressive, thought, iconic, fine, awesome, creative, winning, charming, enhanced'
25
+ parameters:
26
+ negative_prompt: 'blurry, cropped, ugly'
27
+ output:
28
+ url: ./assets/3.png
29
+ - text: 'girl in modern car, intricate, elegant, highly detailed, extremely complimentary colors, beautiful, glowing aesthetic, pretty, dramatic light, sharp focus, perfect composition, clear artistic color, calm professional background, precise, joyful, emotional, unique, cute, best, gorgeous, great delicate, expressive, thought, iconic, fine, awesome, creative, winning, charming, enhanced'
30
+ parameters:
31
+ negative_prompt: 'blurry, cropped, ugly'
32
+ output:
33
+ url: ./assets/3.png
34
+ - text: 'A girl stands amidst scattered glass shards, surrounded by a beautifully crafted and expansive world. The scene is depicted from a dynamic angle, emphasizing her determined expression. The background features vast landscapes with floating crystals and soft, glowing lights that create a mystical and grand atmosphere.'
35
+ parameters:
36
+ negative_prompt: 'blurry, cropped, ugly'
37
+ output:
38
+ url: ./assets/ComfyUI_PixArt_00036_.png
39
  ---
40
+ # SigmaJourney: PixartSigma + MidJourney v6
41
 
42
+
43
+ <Gallery />
44
+
45
+
46
+ ## Inference
47
+ - Duplicated from [TensorFamily/SigmaJourney](https://huggingface.co/TensorFamily/SigmaJourney) and combined with [PixArt-alpha/PixArt-Sigma-XL-2-1024-MS](https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS) for easier use with Diffusers PixArtSigmaPipeline.
48
+ ### ComfyUI
49
+ - Download model file `transformer/diffusion_pytorch_model.safetensors` and put into `ComfyUI/models/checkpoints`
50
+ - Use ExtraModels node: https://github.com/city96/ComfyUI_ExtraModels?tab=readme-ov-file#pixart
51
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/643c7e91b409fef15e0bd11b/MJfTShin1fYOOCo4mTv2-.png)
52
+ ```python
53
+ import torch
54
+ from diffusers import DiffusionPipeline, EulerAncestralDiscreteScheduler
55
+ from diffusers.models import PixArtTransformer2DModel
56
+ model_id = "toilaluan/SigmaJourney"
57
+ negative_prompt = "malformed, disgusting, overexposed, washed-out"
58
+ pipeline = DiffusionPipeline.from_pretrained("PixArt-alpha/PixArt-Sigma-XL-2-1024-MS", torch_dtype=torch.float16)
59
+ pipeline.transformer = PixArtTransformer2DModel.from_pretrained(model_id, subfolder="transformer", torch_dtype=torch.float16)
60
+ pipeline.scheduler = EulerAncestralDiscreteScheduler.from_config(pipeline.scheduler.config)
61
+ pipeline.to('cuda' if torch.cuda.is_available() else 'cpu')
62
+
63
+ prompt = "On the left, there is a red cube. On the right, there is a blue sphere. On top of the red cube is a dog. On top of the blue sphere is a cat"
64
+ image = pipeline(
65
+ prompt=prompt,
66
+ negative_prompt='blurry, cropped, ugly',
67
+ num_inference_steps=30,
68
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
69
+ width=1024,
70
+ height=1024,
71
+ guidance_scale=5.5,
72
+ ).images[0]
73
+ image.save("output.png", format="JPEG")
74
+ ```
75
  <p align="center">
76
  <img src="asset/logo-sigma.png" height=120>
77
  </p>