Giter Site home page Giter Site logo

Comments (3)

AUTOMATIC1111 avatar AUTOMATIC1111 commented on April 27, 2024

if the program is crashing you must post a stack trace for me to help.

Ultimately if you want to use scripting to interact with the main program, you need to read the main program.

Samplers are in the global variable samplers:

steps = [2,4,8,12]
sampler_index= [4,5,6,7]
#alternatively:
#sampler_index = [i for i, x in enumerate(samplers) if x.name in ['Euler a', 'Euler', 'LMS']]

def cell(x, y, p=p):
	p.steps = x
	p.sampler_index = y
	return process_images(p).images[0]

images = [draw_xy_grid(
	xs = steps,
	ys = sampler_index,
	x_label = lambda x: f'Steps = {x}',
	y_label = lambda y: f'Sampler = {samplers[y].name}',
	cell = cell
)]

save_image(images[0], 'test/asdf', 'asdf')
display(images)

asdf

Actually no need for crash log. I broke PLMS. It was crashing when you used PLMS.

from stable-diffusion-webui.

orionaskatu avatar orionaskatu commented on April 27, 2024

image

I'm attempting to modify the sampler/scale script to make something that outputs the example image above, but it's crashing when I try to run it.

For the few it does work on, it's unclear which sampler is which, would anyone be able to help please? -

steps = [20,40,80,120,240]
sampler_index= [4,5,6,7]

def cell(x, y, p=p):
	p.steps = x
	p.sampler_index = y
	return process_images(p).images[0]

images = [draw_xy_grid(
	xs = steps,
	ys = sampler_index,
	x_label = lambda x: f'Steps = {x}',
	y_label = lambda y: f'CFG = {y}',
	cell = cell
)]

save_image(images[0], 'test/gnomeplot', 'gnome6')
display(images)

If you need a quick reference, the actual order is :

0 : Euler Ancestral
1 : Euler
2 : LMS
3 : Heun
4 : DPM2
5 : DPM2 Ancestral
6 : DDIM
7 : PLMS

from stable-diffusion-webui.

kalkal11 avatar kalkal11 commented on April 27, 2024

if the program is crashing you must post a stack trace for me to help.

Ultimately if you want to use scripting to interact with the main program, you need to read the main program.

Samplers are in the global variable samplers:

steps = [2,4,8,12]
sampler_index= [4,5,6,7]
#alternatively:
#sampler_index = [i for i, x in enumerate(samplers) if x.name in ['Euler a', 'Euler', 'LMS']]

def cell(x, y, p=p):
	p.steps = x
	p.sampler_index = y
	return process_images(p).images[0]

images = [draw_xy_grid(
	xs = steps,
	ys = sampler_index,
	x_label = lambda x: f'Steps = {x}',
	y_label = lambda y: f'Sampler = {samplers[y].name}',
	cell = cell
)]

save_image(images[0], 'test/asdf', 'asdf')
display(images)

asdf

Actually no need for crash log. I broke PLMS. It was crashing when you used PLMS.

Not being a coder myself (in the slightest) it's a miracle that I got as far as I did but your example is exactly what I wanted so thank you so much.

from stable-diffusion-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.