deforum-art / sd-webui-deforum

Deforum extension for AUTOMATIC1111's Stable Diffusion webui
https://deforum.github.io
Other
2.71k stars 390 forks source link

[Bug]: upload_pics_to_interpolate() takes 9 positional arguments but 10 were given #763

Closed Username69992872 closed 1 year ago

Username69992872 commented 1 year ago

Have you read the latest version of the FAQ?

Is there an existing issue for this?

Are you using the latest version of the Deforum extension?

What happened?

I am just trying to use FILM interpolation with 2 png files. So I went to: Output -> FILM -> Pics to interpolate -> added 2 png files -> push button Interpolate Pics But that throws error in console: upload_pics_to_interpolate() takes 9 positional arguments but 10 were given

Steps to reproduce the problem

Adding 2 pictures to Output -> FILM -> Pics to interpolate -> 2 added -> push button Interpolate Pics

What should have happened/how would you fix it?

throwing no error

Torch version

torch: 2.0.0+cu118

On which platform are you launching the webui with the extension?

windows10

Deforum settings

default

Webui core settings

default

Console logs

Already up to date.
venv "D:\********\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]
Version: v1.3.1-RC-6-gb6af0a38
Commit hash: b6af0a3809ea869fb180633f9affcae4b199ffcf
Installing requirements

Launching Web UI with arguments: --opt-sdp-no-mem-attention --disable-nan-check
No module 'xformers'. Proceeding without it.
ControlNet v1.1.214
ControlNet v1.1.214
Loading weights [b76cc78ad9] from D:\********\stable-diffusion-webui\models\Stable-diffusion\dreamshaper_6BakedVae.safetensors
Create LRU cache (max_size=16) for preprocessor results.
Create LRU cache (max_size=16) for preprocessor results.
Creating model from config: D:\********\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
*Deforum ControlNet support: enabled*
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Create LRU cache (max_size=16) for preprocessor results.
Startup time: 8.2s (import torch: 1.7s, import gradio: 0.7s, import ldm: 0.5s, other imports: 0.6s, list SD models: 0.3s, load scripts: 2.0s, create ui: 2.1s, gradio launch: 0.2s).
Applying optimization: sdp-no-mem... done.
Textual inversion embeddings loaded(35): Asian-Less-Neg, bad-hands-5, bad-picture-chill-75v, bad_pictures, bad_prompt_v2, bad_prompt_version2, BadDream, badhandsv5-neg, By_bad_artist-neg
Model loaded in 4.8s (load weights from disk: 0.8s, create model: 0.4s, apply weights to model: 1.7s, apply half(): 0.4s, move model to device: 0.5s, load textual inversion embeddings: 0.9s).
Traceback (most recent call last):
  File "D:\********\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 414, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\********\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
    result = await self.call_function(
  File "D:\********\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "D:\********\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "D:\********\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "D:\********\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
TypeError: upload_pics_to_interpolate() takes 9 positional arguments but 10 were given

Additional information

config.json:


{
    "samples_save": false,
    "samples_format": "png",
    "samples_filename_pattern": "",
    "grid_save": false,
    "grid_format": "png",
    "grid_extended_filename": false,
    "grid_only_if_multiple": true,
    "grid_prevent_empty_spots": false,
    "n_rows": -1,
    "enable_pnginfo": true,
    "save_txt": false,
    "save_images_before_face_restoration": false,
    "jpeg_quality": 90,
    "export_for_4chan": false,
    "use_original_name_batch": true,
    "save_selected_only": true,
    "do_not_add_watermark": true,
    "outdir_samples": "X:\\Cache",
    "outdir_txt2img_samples": "X:\\Cache",
    "outdir_img2img_samples": "X:\\Cache",
    "outdir_extras_samples": "X:\\Cache",
    "outdir_grids": "X:\\Cache",
    "outdir_txt2img_grids": "X:\\Cache",
    "outdir_img2img_grids": "X:\\Cache",
    "outdir_save": "X:\\Cache",
    "save_to_dirs": false,
    "grid_save_to_dirs": false,
    "use_save_to_dirs_for_ui": false,
    "directories_filename_pattern": "",
    "directories_max_prompt_words": 1,
    "ESRGAN_tile": 192,
    "ESRGAN_tile_overlap": 8,
    "realesrgan_enabled_models": [
        "R-ESRGAN x4+",
        "R-ESRGAN x4+ Anime6B",
        "R-ESRGAN 4x+",
        "R-ESRGAN 4x+ Anime6B",
        "R-ESRGAN General WDN 4xV3"
    ],
    "SWIN_tile": 192,
    "SWIN_tile_overlap": 8,
    "ldsr_steps": 100,
    "upscaler_for_img2img": "R-ESRGAN 4x+",
    "use_scale_latent_for_hires_fix": true,
    "face_restoration_model": "GFPGAN",
    "code_former_weight": 0.5,
    "face_restoration_unload": true,
    "memmon_poll_rate": 8,
    "samples_log_stdout": false,
    "multiple_tqdm": true,
    "unload_models_when_training": true,
    "dataset_filename_word_regex": "",
    "dataset_filename_join_string": " ",
    "training_image_repeats_per_epoch": 1,
    "training_write_csv_every": 0.0,
    "sd_model_checkpoint": "dreamshaper_6BakedVae.safetensors [b76cc78ad9]",
    "sd_checkpoint_cache": 5,
    "sd_hypernetwork": "None",
    "sd_hypernetwork_strength": 1.0,
    "img2img_color_correction": false,
    "save_images_before_color_correction": false,
    "img2img_fix_steps": false,
    "enable_quantization": false,
    "enable_emphasis": true,
    "use_old_emphasis_implementation": false,
    "enable_batch_seeds": true,
    "comma_padding_backtrack": 20,
    "filter_nsfw": false,
    "CLIP_stop_at_last_layers": 1,
    "random_artist_categories": [
        "weird",
        "nudity",
        "scribbles",
        "special",
        "ukioe",
        "n",
        "fineart",
        "fareast",
        "digipa-med-impact",
        "digipa-high-impact",
        "digipa-low-impact",
        "cartoon",
        "c",
        "anime"
    ],
    "interrogate_keep_models_in_memory": false,
    "interrogate_use_builtin_artists": true,
    "interrogate_return_ranks": false,
    "interrogate_clip_num_beams": 1,
    "interrogate_clip_min_length": 24,
    "interrogate_clip_max_length": 48,
    "interrogate_clip_dict_limit": 1500.0,
    "interrogate_deepbooru_score_threshold": 0.5,
    "deepbooru_sort_alpha": true,
    "deepbooru_use_spaces": false,
    "deepbooru_escape": true,
    "show_progressbar": true,
    "show_progress_every_n_steps": 1,
    "return_grid": false,
    "do_not_show_images": false,
    "add_model_hash_to_info": true,
    "add_model_name_to_info": true,
    "font": "",
    "js_modal_lightbox": true,
    "js_modal_lightbox_initially_zoomed": false,
    "show_progress_in_title": true,
    "quicksettings": "sd_model_checkpoint,inpainting_mask_weight,sd_vae, CLIP_stop_at_last_layers, eta_noise_seed_delta",
    "localization": "None",
    "hide_samplers": [],
    "eta_ddim": 0,
    "eta_ancestral": 1,
    "ddim_discretize": "uniform",
    "s_churn": 0,
    "s_tmin": 0,
    "s_noise": 1,
    "eta_noise_seed_delta": 0,
    "save_images_add_number": false,
    "inpainting_mask_weight": 1,
    "show_progress_grid": false,
    "disable_weights_auto_swap": true,
    "send_seed": true,
    "training_xattention_optimizations": true,
    "save_images_before_highres_fix": false,
    "sd_vae": "None",
    "save_optimizer_state": false,
    "disabled_extensions": [],
    "shuffle_tags": false,
    "tag_drop_out": 0,
    "temp_dir": "X:\\Cache",
    "clean_temp_dir_at_start": false,
    "pin_memory": false,
    "sd_vae_as_default": true,
    "use_upscaler_name_as_suffix": false,
    "ldsr_cached": false,
    "initial_noise_multiplier": 1,
    "img2img_background_color": "#00ff00",
    "deepbooru_filter_tags": "",
    "show_progress_approximate": false,
    "send_size": true,
    "show_progress_type": "Full",
    "sd_checkpoint_hash": "****78ad9e2f001603f200d4e26153ce565a6ac3c179ada73d2e4a4071****",
    "show_warnings": false,
    "print_hypernet_extra": false,
    "save_training_settings_to_txt": false,
    "training_enable_tensorboard": false,
    "training_tensorboard_save_images": false,
    "training_tensorboard_flush_every": 120.0,
    "sd_vae_checkpoint_cache": 0,
    "upcast_attn": false,
    "use_old_karras_scheduler_sigmas": false,
    "use_old_hires_fix_width_height": false,
    "interrogate_clip_skip_categories": [],
    "extra_networks_default_view": "cards",
    "extra_networks_default_multiplier": 1,
    "sd_lora": "None",
    "lora_apply_to_outputs": false,
    "samplers_in_dropdown": true,
    "dimensions_and_batch_together": true,
    "keyedit_precision_attention": 0.1,
    "keyedit_precision_extra": 0.05,
    "ui_reorder": "inpaint, sampler, checkboxes, hires_fix, dimensions, cfg, seed, batch, override_settings, scripts",
    "ui_extra_networks_tab_reorder": "",
    "live_previews_enable": true,
    "live_preview_content": "Combined",
    "live_preview_refresh_period": 1000.0,
    "always_discard_next_to_last_sigma": false,
    "postprocessing_enable_in_main_ui": [],
    "postprocessing_operation_order": [],
    "upscaling_max_images_in_cache": 5,
    "img_downscale_threshold": 4.0,
    "target_side_length": 4000.0,
    "no_dpmpp_sde_batch_determinism": false,
    "control_net_model_config": "D:\\***********************\\stable-diffusion-webui\\extensions\\sd-webui-controlnet\\models\\cldm_v15.yaml",
    "control_net_model_adapter_config": "********************n\\stable-diffusion-webui\\extensions\\sd-webui-controlnet\\models\\sketch_adapter_v14.yaml",
    "control_net_detectedmap_dir": "D:\\********************stable-diffusion-webui\\extensions\\sd-webui-controlnet\\detected_maps",
    "control_net_models_path": "",
    "control_net_control_transfer": true,
    "control_net_no_detectmap": true,
    "control_net_detectmap_autosaving": false,
    "control_net_only_midctrl_hires": true,
    "control_net_allow_script_control": false,
    "control_net_skip_img2img_processing": false,
    "control_net_only_mid_control": false,
    "control_net_max_models_num": 3,
    "control_net_model_cache_size": 2,
    "control_net_monocular_depth_optim": false,
    "control_net_cfg_based_guidance": false,
    "save_mask": false,
    "save_mask_composite": false,
    "webp_lossless": false,
    "img_max_size_mp": 200.0,
    "extra_networks_card_width": 0.0,
    "extra_networks_card_height": 0.0,
    "extra_networks_add_text_separator": " ",
    "return_mask": false,
    "return_mask_composite": false,
    "hidden_tabs": [],
    "uni_pc_variant": "bh1",
    "uni_pc_skip_type": "time_uniform",
    "uni_pc_order": 3,
    "uni_pc_lower_order_final": true,
    "control_net_sync_field_args": false,
    "disable_all_extensions": "none",
    "restore_config_state_file": "",
    "save_init_img": false,
    "outdir_init_images": "outputs/init-images",
    "SCUNET_tile": 256,
    "SCUNET_tile_overlap": 8,
    "randn_source": "GPU",
    "dont_fix_second_order_samplers_schedule": false,
    "sd_lyco": "None",
    "keyedit_delimiters": ".,\\/!?%^*;:{}=`~()",
    "gradio_theme": "Default",
    "s_min_uncond": 0,
    "control_net_modules_path": "",
    "control_net_high_res_only_mid": false,
    "controlnet_show_batch_images_in_ui": false,
    "controlnet_increment_seed_during_batch": false,
    "quicksettings_list": [
        "sd_model_checkpoint",
        "inpainting_mask_weight",
        "sd_vae",
        "CLIP_stop_at_last_layers",
        "eta_noise_seed_delta"
    ],
    "lora_functional": false,
    "lora_preferred_name": "Alias from file",
    "js_modal_lightbox_gamepad": true,
    "js_modal_lightbox_gamepad_repeat": 250.0,
    "add_version_to_infotext": true,
    "mo_layout": "Cards",
    "mo_card_width": 0.0,
    "mo_card_height": 0.0,
    "mo_storage_type": "SQLite",
    "mo_download_preview": true,
    "mo_model_path": "",
    "mo_vae_path": "",
    "mo_lora_path": "",
    "mo_hypernetworks_path": "",
    "mo_lycoris_path": "",
    "mo_embeddings_path": "",
    "sadtalker_result_dir": "*********************\\stable-diffusion-webui\\outputs\\SadTalker",
    "list_hidden_files": true,
    "cross_attention_optimization": "Automatic",
    "token_merging_ratio": 0,
    "token_merging_ratio_img2img": 0,
    "token_merging_ratio_hr": 0,
    "extra_networks_show_hidden_directories": true,
    "extra_networks_hidden_models": "When searched",
    "lora_add_hashes_to_infotext": true,
    "img2img_editor_height": 720,
    "ui_tab_order": [],
    "hires_fix_show_sampler": false,
    "hires_fix_show_prompts": false,
    "live_previews_image_format": "png",
    "deforum_keep_3d_models_in_vram": false,
    "deforum_enable_persistent_settings": false,
    "deforum_persistent_settings_path": "models/Deforum/deforum_persistent_settings.txt",
    "deforum_ffmpeg_location": "********************\\stable-diffusion-webui\\venv\\lib\\site-packages\\imageio_ffmpeg\\binaries\\ffmpeg-win64-v4.2.2.exe",
    "deforum_ffmpeg_crf": 17,
    "deforum_ffmpeg_preset": "slow",
    "deforum_debug_mode_enabled": true,
    "deforum_save_gen_info_as_srt": false,
    "deforum_embed_srt": false,
    "deforum_save_gen_info_as_srt_params": [
        "Noise Schedule"
    ],
    "controlnet_disable_control_type": false
}
github-actions[bot] commented 1 year ago

This issue has been closed due to incorrect formatting. Please address the following mistakes and reopen the issue (click on the 'Reopen' button below):

Username69992872 commented 1 year ago

This issue has been closed due to incorrect formatting. Please address the following mistakes and reopen the issue (click on the 'Reopen' button below):

* Include **THE FULL LOG FROM THE START OF THE WEBUI** in the issue description.

I do not see any reopen button. config.json and console log has been edited to the 1st post. I opened a new issue with exact same info.