New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripting sampler test? #38
Comments
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 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) Actually no need for crash log. I broke PLMS. It was crashing when you used PLMS. |
If you need a quick reference, the actual order is : 0 : Euler Ancestral |
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. |
…ip/gitpython-3.1.34 Bump gitpython from 3.1.32 to 3.1.34
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? -
The text was updated successfully, but these errors were encountered: