AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.88k stars 26.8k forks source link

[Bug]: AttributeError: 'int' object has no attribute 'color_corrections' #6573

Closed bismark211 closed 1 year ago

bismark211 commented 1 year ago

Is there an existing issue for this?

What happened?

Generated animation in Deforum then updated Dreembooth and then this error started to fall out and Deforum stopped working gives black pictures. Deleting Dreembooth didn't help.

Steps to reproduce the problem

  1. Go to Deforum
  2. Press Generate
  3. black picture, error

What should have happened?

generate animation

Commit where the problem happens

50f91c294514149ff090003775e28f9af4e03dc1

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

Error completing request
Arguments: (False, '', '3D', 50, 'wrap', '0:(0)', '0:(1.02+0.02*sin(2*3.14*t/20))', '0:(0)', '0:(0)', '0:(2)', '0:(0)', '0:(0)', '0:(0)', False, '0:(0)', '0:(t%15)', '0:(0)', '0:(53)', '0: (0.02)', '0: (0.6)', '0: (1.0)', '0: (7)', False, '0: (25)', '0: (40)', '0: (200)', '0: (10000)', '0: (t%4294967293)', False, '0: ("Euler a")', '0: (5)', '0: (1.0)', '0: (0.2)', '0: (0.0)', True, 'Match Frame 0 LAB', 1.0, 1.0, 'perlin', 8.0, 8.0, 4, 0.5, True, 0.3, 200.0, 10000.0, 40.0, 'border', 'bicubic', False, '/content/video_in.mp4', 1, False, False, '/content/video_in.mp4', False, 4, False, '20220829210106', "{'0': '(scenic countryside:1.0), (cherry:`where(cos(6.28*t/10)>0, 1.8*cos(6.28*t/10), 0.001)`), (strawberry:`where(cos(6.28*t/10)<0, -1.8*cos(6.28*t/10), 0.001)`), snow, detailed painting by greg rutkowski --neg (cherry:`where(cos(6.28*t/10)<0, -1.8*cos(6.28*t/10), 0.001)`), (strawberry:`where(cos(6.28*t/10)>0, 1.8*cos(6.28*t/10), 0.001)`)', '60': 'a beautiful (((banana))), trending on Artstation', '80': 'a beautiful coconut --neg photo, realistic', '100': 'a beautiful durian, trending on Artstation'}", '{\n        "0": "perfectly-centered-painting princess in a wedding dress, sweaty, dynamic action pose, insane, digital painting, artstation, concept art, sharp focus, illustration, Unreal Engine 5, 8K, art by artgerm and greg rutkowski and alphonse mucha --neg (lowres, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck)"\n}\n', 512, 768, True, False, True, 0, 0, -1, 'Euler a', True, 1, 0.01, 512, 768, 110, 0.0, 1, False, 1, True, True, False, False, False, False, 'Deforum', '{timestring}_{index}_{prompt}.png', 'iter', 1, False, False, True, 0, 'https://user-images.githubusercontent.com/14872007/195867706-d067cdc6-28cd-450b-a61e-55e25bc67010.png', False, False, False, True, 'https://www.filterforge.com/wiki/images/archive/b/b7/20080927223728%21Polygonal_gradient_thumb.jpg', 1.0, 1.0, 5.0, 1, True, 4, 'reroll', False, 18.0, 'PIL gif', 'ffmpeg', 'None', 'snowfall.mp3', False, False, 50.0, 'x0_pred', '/content/drive/MyDrive/AI/StableDiffusion/2022-09/20220903000939_%05d.png', '/content/drive/MyDrive/AI/StableDiffusion/content/drive/MyDrive/AI/StableDiffusion/2022-09/kabachuha/2022-09/20220903000939.mp4', False, '', True, False, False, 'None', 'Farneback', False, 'None', False, 'None', False, False, '0:(1)', '0:(0.5)', '0:(1)', '0:(100)', '0:(0)', '<p style="font-weight:bold;margin-bottom:0.75em">Deforum v0.5-webui-beta</p>', '<strong>Made by <a href="https://deforum.github.io">deforum.github.io</a>, port for AUTOMATIC1111\'s webui maintained by <a href="https://github.com/kabachuha">kabachuha</a></strong>', '<ul style="list-style-type:circle; margin-left:1em">\n        <li>The code for this extension: <a  style="color:blue" href="https://github.com/deforum-art/deforum-for-automatic1111-webui">Fork of deforum for auto1111\'s webui</a>.</li>\n        <li>Join the <a style="color:blue" href="https://discord.gg/deforum">official Deforum Discord</a> to share your creations and suggestions.</li>\n        <li>For general usage, see the <a style="color:blue" href="https://docs.google.com/document/d/1pEobUknMFMkn8F5TMsv8qRzamXX_75BShMMXV8IFslI/edit">User guide for Deforum v0.5</a>.</li>\n        <li>For advanced animations, see the <a style="color:blue" href="https://docs.google.com/document/d/1pfW1PwbDIuW0cv-dnuyYj1UzPqe23BlSLTJsqazffXM/edit?usp=sharing">Math keyframing explanation</a>.</li>\n        <li>Alternatively, use <a style="color:blue" href="https://sd-parseq.web.app/deforum">sd-parseq</a> as a UI to define your animation schedules (see the Parseq section in the Keyframes tab).</li>\n        <li><a style="color:blue" href="https://www.framesync.xyz/">framesync.xyz</a> is also a good option, it makes compact math formulae for Deforum keyframes by selecting various waveforms.</li>\n        <li>The other site allows for making keyframes using <a style="color:blue" href="https://www.chigozie.co.uk/keyframe-string-generator/">interactive splines and Bezier curves</a> (select Disco output format).</li>\n        <li>After the 2022-12-30 update, the default noise type is <a style="color:blue" href="https://en.wikipedia.org/wiki/Perlin_noise">Perlin noise</a> due to its great frame coherence improvements. If you want to use the old noise and replicate the previous settings, set the type to "uniform" in the Keyframes tab.</li>\n        </ul>\n        <italic>If you liked this extension, please <a style="color:blue" href="https://github.com/deforum-art/deforum-for-automatic1111-webui">give it a star on GitHub</a>!</italic> 😊', '', '', '', '', '<p style="font-weight:bold;margin-bottom:0.75em">Import settings from file</p>', '<p style="font-weight:bold;margin-bottom:0.75em">Animation settings</p>', '<p style="margin-bottom:0.75em">Motion parameters:</p>', '<p style="margin-bottom:0.75em">2D and 3D settings</p>', '<p style="margin-bottom:0.75em">Prespective flip — Low VRAM pseudo-3D mode:</p>', '<p style="margin-bottom:0.75em">Coherence:</p>', '<p style="margin-bottom:0.75em">3D Depth Warping:</p>', '<p style="margin-bottom:0.75em">Video Input:</p>', '<p style="margin-bottom:0.75em">Interpolation (turned off atm)</p>', '<p style="margin-bottom:0.75em">Resume animation:</p>', '<p style="font-weight:bold;margin-bottom:0.75em">Prompts</p>', '<p>`animation_mode: None` batches on list of *prompts*. (Batch mode disabled atm, only animation_prompts are working)</p>', '<p style="font-weight:bold">*Important change from vanilla Deforum!*</p>', '<p style="font-weight:italic">This script uses the built-in webui weighting settings.</p>', '<p style="font-weight:italic">So if you want to use math functions as prompt weights,</p>', '<p style="font-weight:italic">keep the values above zero in both parts</p>', '<p style="font-weight:italic">Negative prompt part can be specified with --neg</p>', '<p style="font-weight:bold;margin-bottom:0.75em">Run settings</p>', '<p style="margin-bottom:0.75em">Sampling settings</p>', '<p style="margin-bottom:0.75em">3D Fov settings:</p>', '', '', '', '<p style="margin-bottom:0.75em">Batch settings</p>', '<p style="margin-bottom:0.75em">Init settings</p>', '<p style="margin-bottom:0.75em">3D settings</p>', '<p style="margin-bottom:0.75em">Steps scheduling:</p>', '<p style="margin-bottom:0.75em">Video output settings</p>', '<p style="margin-bottom:0.75em">To enable seed schedule select seed behavior — \'schedule\'</p>', '\n            Use an <a style=\'color:blue;\' target=\'_blank\' href=\'https://sd-parseq.web.app/deforum\'>sd-parseq manifest</a> for your animation (leave blank to ignore).</p>\n            <p style="margin-top:1em">\n                Note that parseq overrides:\n                <ul style="list-style-type:circle; margin-left:2em; margin-bottom:1em">\n                    <li>Run: seed, subseed, subseed strength.</li>\n                    <li>Keyframes: generation settings (noise, strength, contrast, scale).</li>\n                    <li>Keyframes: motion parameters for 2D and 3D (angle, zoom, translation, rotation, perspective flip).</li>\n                </ul>\n            </p>\n            <p">\n                Parseq does <strong><em>not</em></strong> override:\n                <ul style="list-style-type:circle; margin-left:2em; margin-bottom:1em">\n                    <li>Run: Sampler, W, H, Restore faces, tiling, highres fix, resize seed.</li>\n                    <li>Keyframes: animation settings (animation mode, max_frames, border) </li>\n                    <li>Keyframes: coherence (color coherence & diffusion cadence) </li>\n                    <li>Keyframes: depth warping</li>\n                    <li>Video output settings: all settings (including fps and max frames)</li>\n                </ul>\n            </p>\n            ', '<p style="margin-bottom:0.75em">Anti-blur settings</p>', '<p style="margin-bottom:0.75em">Perlin noise params, if selected.</p>', '<p style="padding-bottom:0"><b style="text-shadow: blue -1px -1px;">Hybrid Video Compositing in 2D/3D Mode</b><span style="color:#DDD;font-size:0.7rem;text-shadow: black -1px -1px;margin-left:10px;">by reallybigname</span></p>', '<ul style="list-style-type:circle; margin-left:1em; margin-bottom:1em;"><li>Composite video with previous frame init image in <b>2D or 3D animation_mode</b> <i>(not for Video Input mode)</i></li><li>Uses your <b>Init</b> settings for <b>video_init_path, extract_nth_frame, overwrite_extracted_frames</b></li><li>In Keyframes tab, you can also set <b>color_coherence</b> = \'<b>Video Input</b>\'</li><li><b>color_coherence_video_every_N_frames</b> lets you only match every N frames</li><li>Color coherence may be used with hybrid composite off, to just use video color.</li><li>Hybrid motion may be used with hybrid composite off, to just use video motion.</li></ul>Hybrid Video Schedules<ul style="list-style-type:circle; margin-left:1em; margin-bottom:1em;"><li>The alpha schedule controls overall alpha for video mix, whether using a composite mask or not.</li><li>The <b>hybrid_comp_mask_blend_alpha_schedule</b> only affects the \'Blend\' <b>hybrid_comp_mask_type</b>.</li><li>Mask contrast schedule is from 0-255. Normal is 1. Affects all masks.</li><li>Autocontrast low/high cutoff schedules 0-100. Low 0 High 100 is full range. <br>(<i><b>hybrid_comp_mask_auto_contrast</b> must be enabled</i>)</li></ul>See main Deforum document for more details.', '<p style="margin-bottom:0.75em"><b>Hybrid Video Schedules</b></p>') {}
Traceback (most recent call last):
  File "C:\stable-diffusion-webui\modules\call_queue.py", line 45, in f
    res = list(func(*args, **kwargs))
  File "C:\stable-diffusion-webui\modules\call_queue.py", line 28, in f
    res = func(*args, **kwargs)
  File "C:\stable-diffusion-webui\extensions\deforum-for-automatic1111-webui\scripts\deforum.py", line 255, in run_deforum
    processed = DeforumScript.run(None, p, override_settings_with_file, custom_settings_file, animation_mode, max_frames, border, angle, zoom, translation_x, translation_y, translation_z, rotation_3d_x, rotation_3d_y, rotation_3d_z, flip_2d_perspective, perspective_flip_theta, perspective_flip_phi, perspective_flip_gamma, perspective_flip_fv, noise_schedule, strength_schedule, contrast_schedule, cfg_scale_schedule, enable_steps_scheduling, steps_schedule, fov_schedule, near_schedule, far_schedule, seed_schedule, enable_sampler_scheduling, sampler_schedule, kernel_schedule, sigma_schedule, amount_schedule, threshold_schedule, histogram_matching, color_coherence, color_coherence_video_every_N_frames, diffusion_cadence, noise_type, perlin_w, perlin_h, perlin_octaves, perlin_persistence, use_depth_warping, midas_weight, near_plane, far_plane, fov, padding_mode, sampling_mode, save_depth_maps, video_init_path, extract_nth_frame, overwrite_extracted_frames, use_mask_video, video_mask_path, interpolate_key_frames, interpolate_x_frames, resume_from_timestring, resume_timestring, prompts, animation_prompts, W, H, restore_faces, tiling, enable_hr, firstphase_width, firstphase_height, seed, sampler, seed_enable_extras, subseed, subseed_strength, seed_resize_from_w, seed_resize_from_h, steps, ddim_eta, n_batch, make_grid, grid_rows, save_settings, save_samples, display_samples, save_sample_per_step, show_sample_per_step, override_these_with_webui, batch_name, filename_format, seed_behavior, seed_iter_N, use_init, from_img2img_instead_of_link, strength_0_no_init, strength, init_image, use_mask, use_alpha_as_mask, invert_mask, overlay_mask, mask_file, mask_contrast_adjust, mask_brightness_adjust, mask_overlay_blur, fill, full_res_mask, full_res_mask_padding, reroll_blank_frames, skip_video_for_run_all, fps, output_format, ffmpeg_location, add_soundtrack, soundtrack_path, use_manual_settings, render_steps, max_video_frames, path_name_modifier, image_path, mp4_path, store_frames_in_ram, parseq_manifest, parseq_use_deltas, hybrid_generate_inputframes, hybrid_use_first_frame_as_init_image, hybrid_motion, hybrid_flow_method, hybrid_composite, hybrid_comp_mask_type, hybrid_comp_mask_inverse, hybrid_comp_mask_equalize, hybrid_comp_mask_auto_contrast, hybrid_comp_save_extra_frames, hybrid_comp_alpha_schedule, hybrid_comp_mask_blend_alpha_schedule, hybrid_comp_mask_contrast_schedule, hybrid_comp_mask_auto_contrast_cutoff_high_schedule, hybrid_comp_mask_auto_contrast_cutoff_low_schedule, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25, i26, i27, i28, i29, i30, i31, i32, i33, i34, i35, i36, i37, i38, i39, i40, i41, i42)
  File "C:\stable-diffusion-webui\extensions\deforum-for-automatic1111-webui\scripts\deforum.py", line 93, in run
    render_animation(args, anim_args, video_args, parseq_args, root.animation_prompts, root)
  File "C:\stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts\deforum_helpers\render.py", line 305, in render_animation
    sample, image = generate(args, root, frame_idx, return_sample=True, sampler_name=scheduled_sampler_name)
  File "C:\stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts\deforum_helpers\generate.py", line 18, in generate
    p = get_webui_sd_pipeline(args, root, frame)
  File "C:\stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts\deforum_helpers\webui_sd_pipeline.py", line 53, in get_webui_sd_pipeline
    if root.color_corrections is not None:
AttributeError: 'int' object has no attribute 'color_corrections'

Additional information, context and logs

No response

bismark211 commented 1 year ago

100%|████████████████████████████████████████████████████████████████████████████████| 110/110 [00:21<00:00, 5.05it/s] 2023-01-09 23:27:21,813 - root - INFO - Calibrating color correction. | 110/2266 [00:21<07:10, 5.01it/s] Blank frame detected! If you don't have the NSFW filter enabled, this may be due to a glitch! Rerolling with +1 seed... Deforum progress: 5%|██▉ | 110/2266 [00:22<07:13, 4.97it/s] after that it falls

bismark211 commented 1 year ago

a complete reinstallation of the stable diffusion and video card drivers did not help

bismark211 commented 1 year ago

now everywhere only black pictures, help please who understands what is happening

bismark211 commented 1 year ago

win 10, nvidia rtx 2070, notebook

bismark211 commented 1 year ago

Help please!

bismark211 commented 1 year ago

looks like video card fatigue, artifacts appeared(

bismark211 commented 1 year ago

Be careful with video cards, especially on laptops, frequent generation can kill them.