lllyasviel commited on
Commit
40a0a2b
1 Parent(s): 4cd7c68

revert to 1.0.36

Browse files
fooocus_version.py CHANGED
@@ -1 +1 @@
1
- version = '1.0.38'
 
1
+ version = '1.0.36'
modules/async_worker.py CHANGED
@@ -45,10 +45,10 @@ def worker():
45
 
46
  if performance_selction == 'Speed':
47
  steps = 30
48
- switch = 15
49
  else:
50
  steps = 60
51
- switch = 30
52
 
53
  width, height = aspect_ratios[aspect_ratios_selction]
54
 
 
45
 
46
  if performance_selction == 'Speed':
47
  steps = 30
48
+ switch = 20
49
  else:
50
  steps = 60
51
+ switch = 40
52
 
53
  width, height = aspect_ratios[aspect_ratios_selction]
54
 
modules/core.py CHANGED
@@ -92,7 +92,7 @@ def get_previewer(device, latent_format):
92
 
93
 
94
  @torch.no_grad()
95
- def ksampler(model, positive, negative, latent, seed=None, steps=30, cfg=7.0, sampler_name='uni_pc',
96
  scheduler='karras', denoise=1.0, disable_noise=False, start_step=None, last_step=None,
97
  force_full_denoise=False, callback_function=None):
98
  # SCHEDULERS = ["normal", "karras", "exponential", "simple", "ddim_uniform"]
@@ -134,7 +134,6 @@ def ksampler(model, positive, negative, latent, seed=None, steps=30, cfg=7.0, sa
134
  noise_mask = prepare_mask(noise_mask, noise.shape, device)
135
 
136
  comfy.model_management.load_model_gpu(model)
137
-
138
  real_model = model.model
139
 
140
  noise = noise.to(device)
@@ -165,7 +164,7 @@ def ksampler(model, positive, negative, latent, seed=None, steps=30, cfg=7.0, sa
165
 
166
  @torch.no_grad()
167
  def ksampler_with_refiner(model, positive, negative, refiner, refiner_positive, refiner_negative, latent,
168
- seed=None, steps=30, refiner_switch_step=20, cfg=7.0, sampler_name='uni_pc',
169
  scheduler='karras', denoise=1.0, disable_noise=False, start_step=None, last_step=None,
170
  force_full_denoise=False, callback_function=None):
171
  # SCHEDULERS = ["normal", "karras", "exponential", "simple", "ddim_uniform"]
 
92
 
93
 
94
  @torch.no_grad()
95
+ def ksampler(model, positive, negative, latent, seed=None, steps=30, cfg=7.0, sampler_name='dpmpp_2m_sde_gpu',
96
  scheduler='karras', denoise=1.0, disable_noise=False, start_step=None, last_step=None,
97
  force_full_denoise=False, callback_function=None):
98
  # SCHEDULERS = ["normal", "karras", "exponential", "simple", "ddim_uniform"]
 
134
  noise_mask = prepare_mask(noise_mask, noise.shape, device)
135
 
136
  comfy.model_management.load_model_gpu(model)
 
137
  real_model = model.model
138
 
139
  noise = noise.to(device)
 
164
 
165
  @torch.no_grad()
166
  def ksampler_with_refiner(model, positive, negative, refiner, refiner_positive, refiner_negative, latent,
167
+ seed=None, steps=30, refiner_switch_step=20, cfg=7.0, sampler_name='dpmpp_2m_sde_gpu',
168
  scheduler='karras', denoise=1.0, disable_noise=False, start_step=None, last_step=None,
169
  force_full_denoise=False, callback_function=None):
170
  # SCHEDULERS = ["normal", "karras", "exponential", "simple", "ddim_uniform"]
modules/sdxl_styles.py CHANGED
@@ -8,8 +8,8 @@ styles = [
8
  },
9
  {
10
  "name": "cinematic-default",
11
- "prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, moody, epic, gorgeous, film grain, grainy",
12
- "negative_prompt": "blur, bokeh, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured"
13
  },
14
  {
15
  "name": "sai-3d-model",
 
8
  },
9
  {
10
  "name": "cinematic-default",
11
+ "prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
12
+ "negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured"
13
  },
14
  {
15
  "name": "sai-3d-model",
readme.md CHANGED
@@ -1,6 +1,6 @@
1
  # Fooocus
2
 
3
- <img src="https://github.com/lllyasviel/Fooocus/assets/19834515/89ae5a86-7a3e-42f2-b88d-2397022e4ebe" width=100%>
4
 
5
  Fooocus is an image generating software.
6
 
@@ -103,7 +103,7 @@ Note that some of these tricks are currently (2023 Aug 11) impossible to reprodu
103
  6. The parameters of samplers are carefully tuned.
104
  7. Because XL uses positional encoding for generation resolution, images generated by several fixed resolutions look a bit better than that from arbitrary resolutions (because the positional encoding is not very good at handling int numbers that are unseen during training). This suggests that the resolutions in UI may be hard coded for best results.
105
  8. Separated prompts for two different text encoders seem unnecessary. Separated prompts for base model and refiner may work but the effects are random, and we refrain from implement this.
106
- 9. DPM family (or UniPC) seems well-suited for XL, since XL sometimes generates overly smooth texture but DPM family sometimes generate overly dense detail in texture. Their joint effect looks neutral and appealing to human perception. (Update 2023 Aug 19, changed to UniPC.)
107
 
108
  ## Advanced Features
109
 
 
1
  # Fooocus
2
 
3
+ <img src="https://github.com/lllyasviel/Fooocus/assets/19834515/bcb0336b-5c79-4de2-b0cb-f7f68c753a88" width=100%>
4
 
5
  Fooocus is an image generating software.
6
 
 
103
  6. The parameters of samplers are carefully tuned.
104
  7. Because XL uses positional encoding for generation resolution, images generated by several fixed resolutions look a bit better than that from arbitrary resolutions (because the positional encoding is not very good at handling int numbers that are unseen during training). This suggests that the resolutions in UI may be hard coded for best results.
105
  8. Separated prompts for two different text encoders seem unnecessary. Separated prompts for base model and refiner may work but the effects are random, and we refrain from implement this.
106
+ 9. DPM family seems well-suited for XL, since XL sometimes generates overly smooth texture but DPM family sometimes generate overly dense detail in texture. Their joint effect looks neutral and appealing to human perception.
107
 
108
  ## Advanced Features
109
 
update_log.md CHANGED
@@ -1,11 +1,3 @@
1
- ### 1.0.38
2
-
3
- * Update dependency, update to sampler.
4
-
5
- ### 1.0.37
6
-
7
- * Cinematic-default v2.
8
-
9
  ### 1.0.36
10
 
11
  * Change gaussian kernel to anisotropic kernel.
 
 
 
 
 
 
 
 
 
1
  ### 1.0.36
2
 
3
  * Change gaussian kernel to anisotropic kernel.