Class: StableDiffusion::Options
- Inherits:
-
Object
- Object
- StableDiffusion::Options
- Defined in:
- lib/stable_diffusion/models/options.rb
Instance Attribute Summary collapse
-
#add_model_hash_to_info ⇒ Object
Add model hash to infotext.
-
#add_model_name_to_info ⇒ Object
Add model name to infotext.
-
#add_user_name_to_info ⇒ Object
Add user name to infotext when authenticated.
-
#add_vae_hash_to_info ⇒ Object
Add VAE hash to infotext.
-
#add_vae_name_to_info ⇒ Object
Add VAE name to infotext.
-
#add_version_to_infotext ⇒ Object
Add program version to infotext.
-
#always_discard_next_to_last_sigma ⇒ Object
Always discard next-to-last sigma.
-
#api_enable_requests ⇒ Object
Allow http:// and https:// URLs for input images in API.
-
#api_forbid_local_requests ⇒ Object
Forbid URLs to local resources.
-
#api_useragent ⇒ Object
User agent for requests.
-
#auto_launch_browser ⇒ Object
Automatically open webui in browser on startup.
-
#auto_vae_precision ⇒ Object
Automatically revert VAE to 32-bit floats.
-
#batch_cond_uncond ⇒ Object
Batch cond/uncond.
-
#canvas_auto_expand ⇒ Object
Automatically expands an image that does not fit completely in the canvas area, similar to manually pressing the S and R buttons.
-
#canvas_blur_prompt ⇒ Object
Take the focus off the prompt when working with a canvas.
-
#canvas_disabled_functions ⇒ Object
Disable function that you don’t use.
-
#canvas_hotkey_adjust ⇒ Object
Adjust brush size.
-
#canvas_hotkey_fullscreen ⇒ Object
Fullscreen Mode, maximizes the picture so that it fits into the screen and stretches it to its full width.
-
#canvas_hotkey_move ⇒ Object
Moving the canvas.
-
#canvas_hotkey_overlap ⇒ Object
Toggle overlap.
-
#canvas_hotkey_reset ⇒ Object
Reset zoom and canvas positon.
-
#canvas_hotkey_zoom ⇒ Object
Zoom canvas.
-
#canvas_show_tooltip ⇒ Object
Enable tooltip on the canvas.
-
#clean_temp_dir_at_start ⇒ Object
Cleanup non-default temporary directory when starting webui.
-
#clip_stop_at_last_layers ⇒ Object
Clip skip.
-
#code_former_weight ⇒ Object
CodeFormer weight.
-
#comma_padding_backtrack ⇒ Object
Prompt word wrap length limit.
-
#compact_prompt_box ⇒ Object
Compact prompt layout.
-
#cross_attention_optimization ⇒ Object
Cross attention optimization.
-
#dataset_filename_join_string ⇒ Object
Filename join string.
-
#dataset_filename_word_regex ⇒ Object
Filename word regex.
-
#ddim_discretize ⇒ Object
img2img DDIM discretize.
-
#deepbooru_escape ⇒ Object
deepbooru: escape (\) brackets.
-
#deepbooru_filter_tags ⇒ Object
deepbooru: filter out those tags.
-
#deepbooru_sort_alpha ⇒ Object
deepbooru: sort tags alphabetically.
-
#deepbooru_use_spaces ⇒ Object
deepbooru: use spaces in tags.
-
#dimensions_and_batch_together ⇒ Object
Show Width/Height and Batch sliders in same row.
-
#directories_filename_pattern ⇒ Object
Directory name pattern.
-
#directories_max_prompt_words ⇒ Object
Max prompt words for [prompt_words] pattern.
-
#disable_all_extensions ⇒ Object
Disable all extensions (preserves the list of disabled extensions).
-
#disable_mmap_load_safetensors ⇒ Object
Disable memmapping for loading .safetensors files.
-
#disable_token_counters ⇒ Object
Disable prompt token counters.
-
#disable_weights_auto_swap ⇒ Object
Disregard checkpoint information from pasted infotext.
-
#disabled_extensions ⇒ Object
Disable these extensions.
-
#do_not_show_images ⇒ Object
Do not show any images in gallery.
-
#dont_fix_second_order_samplers_schedule ⇒ Object
Do not fix prompt schedule for second order samplers.
-
#dump_stacks_on_signal ⇒ Object
Print stack traces before exiting the program with ctrl+c.
-
#enable_batch_seeds ⇒ Object
Make K-diffusion samplers produce same images in a batch as when making a single image.
-
#enable_console_prompts ⇒ Object
Print prompts to console when generating with txt2img and img2img.
-
#enable_emphasis ⇒ Object
Enable emphasis.
-
#enable_pnginfo ⇒ Object
Write infotext to metadata of the generated image.
-
#enable_quantization ⇒ Object
Enable quantization in K samplers for sharper and cleaner results.
-
#esrgan_tile ⇒ Object
Tile size for ESRGAN upscalers.
-
#esrgan_tile_overlap ⇒ Object
Tile overlap for ESRGAN upscalers.
-
#eta_ancestral ⇒ Object
Eta for k-diffusion samplers.
-
#eta_ddim ⇒ Object
Eta for DDIM.
-
#eta_noise_seed_delta ⇒ Object
Eta noise seed delta.
-
#export_for_4chan ⇒ Object
Save copy of large images as JPG.
-
#extra_networks_add_text_separator ⇒ Object
Extra networks separator.
-
#extra_networks_card_height ⇒ Object
Card height for Extra Networks.
-
#extra_networks_card_order ⇒ Object
Default order for Extra Networks cards.
-
#extra_networks_card_order_field ⇒ Object
Default order field for Extra Networks cards.
-
#extra_networks_card_show_desc ⇒ Object
Show description on card.
-
#extra_networks_card_text_scale ⇒ Object
Card text scale.
-
#extra_networks_card_width ⇒ Object
Card width for Extra Networks.
-
#extra_networks_default_multiplier ⇒ Object
Default multiplier for extra networks.
-
#extra_networks_dir_button_function ⇒ Object
Add a ‘/’ to the beginning of directory buttons.
-
#extra_networks_hidden_models ⇒ Object
Show cards for models in hidden directories.
-
#extra_networks_show_hidden_directories ⇒ Object
Show hidden directories.
-
#extra_options_accordion ⇒ Object
Place added settings into an accordion.
-
#extra_options_cols ⇒ Object
Number of columns for added settings.
-
#extra_options_img2img ⇒ Object
Settings for img2img.
-
#extra_options_txt2img ⇒ Object
Settings for txt2img.
-
#face_restoration ⇒ Object
Restore faces.
-
#face_restoration_model ⇒ Object
Face restoration model.
-
#face_restoration_unload ⇒ Object
Move face restoration model from VRAM into RAM after processing.
-
#font ⇒ Object
Font for image grids that have text.
-
#gallery_height ⇒ Object
Gallery height.
-
#gradio_theme ⇒ Object
Gradio theme.
-
#gradio_themes_cache ⇒ Object
Cache gradio themes locally.
-
#grid_background_color ⇒ Object
Background color for image grids.
-
#grid_extended_filename ⇒ Object
Add extended info (seed, prompt) to filename when saving grid.
-
#grid_format ⇒ Object
File format for grids.
-
#grid_only_if_multiple ⇒ Object
Do not save grids consisting of one picture.
-
#grid_prevent_empty_spots ⇒ Object
Prevent empty spots in grid (when set to autodetect).
-
#grid_save ⇒ Object
Always save all generated image grids.
-
#grid_save_to_dirs ⇒ Object
Save grids to a subdirectory.
-
#grid_text_active_color ⇒ Object
Text color for image grids.
-
#grid_text_inactive_color ⇒ Object
Inactive text color for image grids.
-
#grid_zip_filename_pattern ⇒ Object
Archive filename pattern.
-
#hidden_tabs ⇒ Object
Hidden UI tabs.
-
#hide_ldm_prints ⇒ Object
Prevent Stability-AI’s ldm/sgm modules from printing noise to console.
-
#hide_samplers ⇒ Object
Hide samplers in user interface.
-
#hires_fix_refiner_pass ⇒ Object
Hires fix: which pass to enable refiner for.
-
#hires_fix_show_prompts ⇒ Object
Hires fix: show hires prompt and negative prompt.
-
#hires_fix_show_sampler ⇒ Object
Hires fix: show hires checkpoint and sampler selection.
-
#hires_fix_use_firstpass_conds ⇒ Object
For hires fix, calculate conds of second pass using extra networks of first pass.
-
#img2img_background_color ⇒ Object
With img2img, fill transparent parts of the input image with this color.
-
#img2img_batch_show_results_limit ⇒ Object
Show the first N batch img2img results in UI.
-
#img2img_color_correction ⇒ Object
Apply color correction to img2img results to match original colors.
-
#img2img_editor_height ⇒ Object
Height of the image editor.
-
#img2img_extra_noise ⇒ Object
Extra noise multiplier for img2img and hires fix.
-
#img2img_fix_steps ⇒ Object
With img2img, do exactly the amount of steps the slider specifies.
-
#img2img_inpaint_mask_brush_color ⇒ Object
Inpaint mask brush color.
-
#img2img_inpaint_sketch_default_brush_color ⇒ Object
Inpaint sketch initial brush color.
-
#img2img_settings_accordion ⇒ Object
Settings in img2img hidden under Accordion.
-
#img2img_sketch_default_brush_color ⇒ Object
Sketch initial brush color.
-
#img_downscale_threshold ⇒ Object
File size limit for the above option, MB.
-
#img_max_size_mp ⇒ Object
Maximum image size.
-
#infotext_explanation ⇒ Object
Returns the value of attribute infotext_explanation.
-
#infotext_skip_pasting ⇒ Object
Disregard fields from pasted infotext.
-
#infotext_styles ⇒ Object
Infer styles from prompts of pasted infotext.
-
#initial_noise_multiplier ⇒ Object
Noise multiplier for img2img.
-
#inpainting_mask_weight ⇒ Object
Inpainting conditioning mask strength.
-
#interrogate_clip_dict_limit ⇒ Object
CLIP: maximum number of lines in text file.
-
#interrogate_clip_max_length ⇒ Object
BLIP: maximum description length.
-
#interrogate_clip_min_length ⇒ Object
BLIP: minimum description length.
-
#interrogate_clip_num_beams ⇒ Object
BLIP: num_beams.
-
#interrogate_clip_skip_categories ⇒ Object
CLIP: skip inquire categories.
-
#interrogate_deepbooru_score_threshold ⇒ Object
deepbooru: score threshold.
-
#interrogate_keep_models_in_memory ⇒ Object
Keep models in VRAM.
-
#interrogate_return_ranks ⇒ Object
Include ranks of model tags matches in results.
-
#jpeg_quality ⇒ Object
Quality for saved jpeg images.
-
#js_live_preview_in_modal_lightbox ⇒ Object
Show Live preview in full page image viewer.
-
#js_modal_lightbox ⇒ Object
Full page image viewer: enable.
-
#js_modal_lightbox_gamepad ⇒ Object
Full page image viewer: navigate with gamepad.
-
#js_modal_lightbox_gamepad_repeat ⇒ Object
Full page image viewer: gamepad repeat period.
-
#js_modal_lightbox_initially_zoomed ⇒ Object
Full page image viewer: show images zoomed in by default.
-
#k_sched_type ⇒ Object
Scheduler type.
-
#keyedit_delimiters ⇒ Object
Word delimiters when editing the prompt with Ctrl+up/down.
-
#keyedit_delimiters_whitespace ⇒ Object
Ctrl+up/down whitespace delimiters.
-
#keyedit_move ⇒ Object
Alt+left/right moves prompt elements.
-
#keyedit_precision_attention ⇒ Object
Precision for (attention:1.1) when editing the prompt with Ctrl+up/down.
-
#keyedit_precision_extra ⇒ Object
Precision for <extra networks:0.9> when editing the prompt with Ctrl+up/down.
-
#list_hidden_files ⇒ Object
Load models/files in hidden directories.
-
#live_preview_allow_lowvram_full ⇒ Object
Allow Full live preview method with lowvram/medvram.
-
#live_preview_content ⇒ Object
Live preview subject.
-
#live_preview_fast_interrupt ⇒ Object
Return image with chosen live preview method on interrupt.
-
#live_preview_refresh_period ⇒ Object
Progressbar and preview update period.
-
#live_previews_enable ⇒ Object
Show live previews of the created image.
-
#live_previews_image_format ⇒ Object
Live preview file format.
-
#localization ⇒ Object
Localization.
-
#lora_add_hashes_to_infotext ⇒ Object
Add Lora hashes to infotext.
-
#lora_functional ⇒ Object
Lora/Networks: use old method that takes longer when you have multiple Loras active and produces same results as kohya-ss/sd-webui-additional-networks extension.
-
#lora_hide_unknown_for_versions ⇒ Object
Hide networks of unknown versions for model versions.
-
#lora_in_memory_limit ⇒ Object
Number of Lora networks to keep cached in memory.
-
#lora_preferred_name ⇒ Object
When adding to prompt, refer to Lora by.
-
#lora_show_all ⇒ Object
Always show all networks on the Lora page.
-
#memmon_poll_rate ⇒ Object
VRAM usage polls per second during generation.
-
#multiple_tqdm ⇒ Object
Add a second progress bar to the console that shows progress for an entire job.
-
#n_rows ⇒ Object
Grid row count; use -1 for autodetect and 0 for it to be same as batch size.
-
#no_dpmpp_sde_batch_determinism ⇒ Object
Do not make DPM++ SDE deterministic across different batch sizes.
-
#notification_audio ⇒ Object
Play notification sound after image generation.
-
#notification_volume ⇒ Object
Notification sound volume.
-
#outdir_extras_samples ⇒ Object
Output directory for images from extras tab.
-
#outdir_grids ⇒ Object
Output directory for grids; if empty, defaults to two directories below.
-
#outdir_img2img_grids ⇒ Object
Output directory for img2img grids.
-
#outdir_img2img_samples ⇒ Object
Output directory for img2img images.
-
#outdir_init_images ⇒ Object
Directory for saving init images when using img2img.
-
#outdir_samples ⇒ Object
Output directory for images; if empty, defaults to three directories below.
-
#outdir_save ⇒ Object
Directory for saving images using the Save button.
-
#outdir_txt2img_grids ⇒ Object
Output directory for txt2img grids.
-
#outdir_txt2img_samples ⇒ Object
Output directory for txt2img images.
-
#pad_cond_uncond ⇒ Object
Pad prompt/negative prompt to be same length.
-
#persistent_cond_cache ⇒ Object
Persistent cond cache.
-
#pin_memory ⇒ Object
Turn on pin_memory for DataLoader.
-
#postprocessing_enable_in_main_ui ⇒ Object
Enable postprocessing operations in txt2img and img2img tabs.
-
#postprocessing_existing_caption_action ⇒ Object
Action for existing captions.
-
#postprocessing_operation_order ⇒ Object
Postprocessing operation order.
-
#print_hypernet_extra ⇒ Object
Print extra hypernetwork information to console.
-
#quicksettings_list ⇒ Object
Quicksettings list.
-
#randn_source ⇒ Object
Random number generator source.
-
#realesrgan_enabled_models ⇒ Object
Select which Real-ESRGAN models to show in the web UI.
-
#restore_config_state_file ⇒ Object
Config state file to restore from, under ‘config-states/’ folder.
-
#return_grid ⇒ Object
Show grid in gallery.
-
#return_mask ⇒ Object
For inpainting, include the greyscale mask in results for web.
-
#return_mask_composite ⇒ Object
For inpainting, include masked composite in results for web.
-
#rho ⇒ Object
rho.
-
#s_churn ⇒ Object
sigma churn.
-
#s_min_uncond ⇒ Object
Negative Guidance minimum sigma.
-
#s_noise ⇒ Object
sigma noise.
-
#s_tmax ⇒ Object
sigma tmax.
-
#s_tmin ⇒ Object
sigma tmin.
-
#samplers_in_dropdown ⇒ Object
Use dropdown for sampler selection instead of radio group.
-
#samples_filename_pattern ⇒ Object
Images filename pattern.
-
#samples_format ⇒ Object
File format for images.
-
#samples_log_stdout ⇒ Object
Always print all generation info to standard output.
-
#samples_save ⇒ Object
Always save all generated images.
-
#save_images_add_number ⇒ Object
Add number to filename when saving.
-
#save_images_before_color_correction ⇒ Object
Save a copy of image before applying color correction to img2img results.
-
#save_images_before_face_restoration ⇒ Object
Save a copy of image before doing face restoration.
-
#save_images_before_highres_fix ⇒ Object
Save a copy of image before applying highres fix.
-
#save_images_replace_action ⇒ Object
Saving the image to an existing file.
-
#save_incomplete_images ⇒ Object
Save incomplete images.
-
#save_init_img ⇒ Object
Save init images when using img2img.
-
#save_mask ⇒ Object
For inpainting, save a copy of the greyscale mask.
-
#save_mask_composite ⇒ Object
For inpainting, save a masked composite.
-
#save_optimizer_state ⇒ Object
Saves Optimizer state as separate *.optim file.
-
#save_selected_only ⇒ Object
When using ‘Save’ button, only save a single selected image.
-
#save_to_dirs ⇒ Object
Save images to a subdirectory.
-
#save_training_settings_to_txt ⇒ Object
Save textual inversion and hypernet settings to a text file whenever training starts.
-
#save_txt ⇒ Object
Create a text file with infotext next to every generated image.
-
#sd_checkpoint_cache ⇒ Object
Checkpoints to cache in RAM.
-
#sd_checkpoint_dropdown_use_short ⇒ Object
Checkpoint dropdown: use filenames without paths.
-
#sd_checkpoint_hash ⇒ Object
SHA256 hash of the current checkpoint.
-
#sd_checkpoints_keep_in_cpu ⇒ Object
Only keep one model on device.
-
#sd_checkpoints_limit ⇒ Object
Maximum number of checkpoints loaded at the same time.
-
#sd_hypernetwork ⇒ Object
Add hypernetwork to prompt.
-
#sd_lora ⇒ Object
Add network to prompt.
-
#sd_model_checkpoint ⇒ Object
Stable Diffusion checkpoint.
-
#sd_unet ⇒ Object
SD Unet.
-
#sd_vae ⇒ Object
SD VAE.
-
#sd_vae_checkpoint_cache ⇒ Object
VAE Checkpoints to cache in RAM.
-
#sd_vae_decode_method ⇒ Object
VAE type for decode.
-
#sd_vae_encode_method ⇒ Object
VAE type for encode.
-
#sd_vae_explanation ⇒ Object
Returns the value of attribute sd_vae_explanation.
-
#sd_vae_overrides_per_model_preferences ⇒ Object
Selected VAE overrides per-model preferences.
-
#sdxl_crop_left ⇒ Object
crop left coordinate.
-
#sdxl_crop_top ⇒ Object
crop top coordinate.
-
#sdxl_refiner_high_aesthetic_score ⇒ Object
SDXL high aesthetic score.
-
#sdxl_refiner_low_aesthetic_score ⇒ Object
SDXL low aesthetic score.
-
#send_seed ⇒ Object
Send seed when sending prompt or image to other interface.
-
#send_size ⇒ Object
Send size when sending prompt or image to another interface.
-
#settings_in_ui ⇒ Object
Returns the value of attribute settings_in_ui.
-
#sgm_noise_multiplier ⇒ Object
SGM noise multiplier.
-
#show_gradio_deprecation_warnings ⇒ Object
Show gradio deprecation warnings in console.
-
#show_progress_every_n_steps ⇒ Object
Live preview display period.
-
#show_progress_grid ⇒ Object
Show previews of all images generated in a batch as a grid.
-
#show_progress_in_title ⇒ Object
Show generation progress in window title.
-
#show_progress_type ⇒ Object
Live preview method.
-
#show_progressbar ⇒ Object
Show progressbar.
-
#show_warnings ⇒ Object
Show warnings in console.
-
#sigma_max ⇒ Object
sigma max.
-
#sigma_min ⇒ Object
sigma min.
-
#target_side_length ⇒ Object
Width/height limit for the above option, in pixels.
-
#temp_dir ⇒ Object
Directory for temporary images; leave empty for default.
-
#textual_inversion_add_hashes_to_infotext ⇒ Object
Add Textual Inversion hashes to infotext.
-
#textual_inversion_print_at_load ⇒ Object
Print a list of Textual Inversion embeddings when loading model.
-
#tiling ⇒ Object
Tiling.
-
#token_merging_ratio ⇒ Object
Token merging ratio.
-
#token_merging_ratio_hr ⇒ Object
Token merging ratio for high-res pass.
-
#token_merging_ratio_img2img ⇒ Object
Token merging ratio for img2img.
-
#training_enable_tensorboard ⇒ Object
Enable tensorboard logging.
-
#training_image_repeats_per_epoch ⇒ Object
Number of repeats for a single input image per epoch; used only for displaying epoch number.
-
#training_tensorboard_flush_every ⇒ Object
How often, in seconds, to flush the pending tensorboard events and summaries to disk.
-
#training_tensorboard_save_images ⇒ Object
Save generated images within tensorboard.
-
#training_write_csv_every ⇒ Object
Save an csv containing the loss to log directory every N steps, 0 to disable.
-
#training_xattention_optimizations ⇒ Object
Use cross attention optimizations while training.
-
#txt2img_settings_accordion ⇒ Object
Settings in txt2img hidden under Accordion.
-
#ui_extra_networks_tab_reorder ⇒ Object
Extra networks tab order.
-
#ui_reorder_list ⇒ Object
UI item order for txt2img/img2img tabs.
-
#ui_tab_order ⇒ Object
UI tab order.
-
#uni_pc_lower_order_final ⇒ Object
UniPC lower order final.
-
#uni_pc_order ⇒ Object
UniPC order.
-
#uni_pc_skip_type ⇒ Object
UniPC skip type.
-
#uni_pc_variant ⇒ Object
UniPC variant.
-
#unload_models_when_training ⇒ Object
Move VAE and CLIP to RAM when training if possible.
-
#upcast_attn ⇒ Object
Upcast cross attention layer to float32.
-
#upscaler_for_img2img ⇒ Object
Upscaler for img2img.
-
#upscaling_max_images_in_cache ⇒ Object
Maximum number of images in upscaling cache.
-
#use_old_emphasis_implementation ⇒ Object
Use old emphasis implementation.
-
#use_old_hires_fix_width_height ⇒ Object
For hires fix, use width/height sliders to set final resolution rather than first pass (disables Upscale by, Resize width/height to).
-
#use_old_karras_scheduler_sigmas ⇒ Object
Use old karras scheduler sigmas (0.1 to 10).
-
#use_old_scheduling ⇒ Object
Use old prompt editing timelines.
-
#use_original_name_batch ⇒ Object
Use original name for output filename during batch process in extras tab.
-
#use_save_to_dirs_for_ui ⇒ Object
When using "Save" button, save images to a subdirectory.
-
#use_upscaler_name_as_suffix ⇒ Object
Use upscaler name as filename suffix in the extras tab.
-
#webp_lossless ⇒ Object
Use lossless compression for webp images.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Options
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Options
Initializes the object
1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 |
# File 'lib/stable_diffusion/models/options.rb', line 1373 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `StableDiffusion::Options` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `StableDiffusion::Options`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'samples_save') self.samples_save = attributes[:'samples_save'] else self.samples_save = true end if attributes.key?(:'samples_format') self.samples_format = attributes[:'samples_format'] else self.samples_format = 'png' end if attributes.key?(:'samples_filename_pattern') self.samples_filename_pattern = attributes[:'samples_filename_pattern'] end if attributes.key?(:'save_images_add_number') self.save_images_add_number = attributes[:'save_images_add_number'] else self.save_images_add_number = true end if attributes.key?(:'save_images_replace_action') self.save_images_replace_action = attributes[:'save_images_replace_action'] else self.save_images_replace_action = 'Replace' end if attributes.key?(:'grid_save') self.grid_save = attributes[:'grid_save'] else self.grid_save = true end if attributes.key?(:'grid_format') self.grid_format = attributes[:'grid_format'] else self.grid_format = 'png' end if attributes.key?(:'grid_extended_filename') self.grid_extended_filename = attributes[:'grid_extended_filename'] end if attributes.key?(:'grid_only_if_multiple') self.grid_only_if_multiple = attributes[:'grid_only_if_multiple'] else self.grid_only_if_multiple = true end if attributes.key?(:'grid_prevent_empty_spots') self.grid_prevent_empty_spots = attributes[:'grid_prevent_empty_spots'] end if attributes.key?(:'grid_zip_filename_pattern') self.grid_zip_filename_pattern = attributes[:'grid_zip_filename_pattern'] end if attributes.key?(:'n_rows') self.n_rows = attributes[:'n_rows'] else self.n_rows = -1 end if attributes.key?(:'font') self.font = attributes[:'font'] end if attributes.key?(:'grid_text_active_color') self.grid_text_active_color = attributes[:'grid_text_active_color'] else self.grid_text_active_color = '#000000' end if attributes.key?(:'grid_text_inactive_color') self.grid_text_inactive_color = attributes[:'grid_text_inactive_color'] else self.grid_text_inactive_color = '#999999' end if attributes.key?(:'grid_background_color') self.grid_background_color = attributes[:'grid_background_color'] else self.grid_background_color = '#ffffff' end if attributes.key?(:'save_images_before_face_restoration') self.save_images_before_face_restoration = attributes[:'save_images_before_face_restoration'] end if attributes.key?(:'save_images_before_highres_fix') self.save_images_before_highres_fix = attributes[:'save_images_before_highres_fix'] end if attributes.key?(:'save_images_before_color_correction') self.save_images_before_color_correction = attributes[:'save_images_before_color_correction'] end if attributes.key?(:'save_mask') self.save_mask = attributes[:'save_mask'] end if attributes.key?(:'save_mask_composite') self.save_mask_composite = attributes[:'save_mask_composite'] end if attributes.key?(:'jpeg_quality') self.jpeg_quality = attributes[:'jpeg_quality'] else self.jpeg_quality = 80 end if attributes.key?(:'webp_lossless') self.webp_lossless = attributes[:'webp_lossless'] end if attributes.key?(:'export_for_4chan') self.export_for_4chan = attributes[:'export_for_4chan'] else self.export_for_4chan = true end if attributes.key?(:'img_downscale_threshold') self.img_downscale_threshold = attributes[:'img_downscale_threshold'] else self.img_downscale_threshold = 4.0 end if attributes.key?(:'target_side_length') self.target_side_length = attributes[:'target_side_length'] else self.target_side_length = 4000 end if attributes.key?(:'img_max_size_mp') self.img_max_size_mp = attributes[:'img_max_size_mp'] else self.img_max_size_mp = 200 end if attributes.key?(:'use_original_name_batch') self.use_original_name_batch = attributes[:'use_original_name_batch'] else self.use_original_name_batch = true end if attributes.key?(:'use_upscaler_name_as_suffix') self.use_upscaler_name_as_suffix = attributes[:'use_upscaler_name_as_suffix'] end if attributes.key?(:'save_selected_only') self.save_selected_only = attributes[:'save_selected_only'] else self.save_selected_only = true end if attributes.key?(:'save_init_img') self.save_init_img = attributes[:'save_init_img'] end if attributes.key?(:'temp_dir') self.temp_dir = attributes[:'temp_dir'] end if attributes.key?(:'clean_temp_dir_at_start') self.clean_temp_dir_at_start = attributes[:'clean_temp_dir_at_start'] end if attributes.key?(:'save_incomplete_images') self.save_incomplete_images = attributes[:'save_incomplete_images'] end if attributes.key?(:'notification_audio') self.notification_audio = attributes[:'notification_audio'] else self.notification_audio = true end if attributes.key?(:'notification_volume') self.notification_volume = attributes[:'notification_volume'] else self.notification_volume = 100 end if attributes.key?(:'outdir_samples') self.outdir_samples = attributes[:'outdir_samples'] end if attributes.key?(:'outdir_txt2img_samples') self.outdir_txt2img_samples = attributes[:'outdir_txt2img_samples'] else self.outdir_txt2img_samples = 'outputs/txt2img-images' end if attributes.key?(:'outdir_img2img_samples') self.outdir_img2img_samples = attributes[:'outdir_img2img_samples'] else self.outdir_img2img_samples = 'outputs/img2img-images' end if attributes.key?(:'outdir_extras_samples') self.outdir_extras_samples = attributes[:'outdir_extras_samples'] else self.outdir_extras_samples = 'outputs/extras-images' end if attributes.key?(:'outdir_grids') self.outdir_grids = attributes[:'outdir_grids'] end if attributes.key?(:'outdir_txt2img_grids') self.outdir_txt2img_grids = attributes[:'outdir_txt2img_grids'] else self.outdir_txt2img_grids = 'outputs/txt2img-grids' end if attributes.key?(:'outdir_img2img_grids') self.outdir_img2img_grids = attributes[:'outdir_img2img_grids'] else self.outdir_img2img_grids = 'outputs/img2img-grids' end if attributes.key?(:'outdir_save') self.outdir_save = attributes[:'outdir_save'] else self.outdir_save = 'log/images' end if attributes.key?(:'outdir_init_images') self.outdir_init_images = attributes[:'outdir_init_images'] else self.outdir_init_images = 'outputs/init-images' end if attributes.key?(:'save_to_dirs') self.save_to_dirs = attributes[:'save_to_dirs'] else self.save_to_dirs = true end if attributes.key?(:'grid_save_to_dirs') self.grid_save_to_dirs = attributes[:'grid_save_to_dirs'] else self.grid_save_to_dirs = true end if attributes.key?(:'use_save_to_dirs_for_ui') self.use_save_to_dirs_for_ui = attributes[:'use_save_to_dirs_for_ui'] end if attributes.key?(:'directories_filename_pattern') self.directories_filename_pattern = attributes[:'directories_filename_pattern'] else self.directories_filename_pattern = '[date]' end if attributes.key?(:'directories_max_prompt_words') self.directories_max_prompt_words = attributes[:'directories_max_prompt_words'] else self.directories_max_prompt_words = 8 end if attributes.key?(:'esrgan_tile') self.esrgan_tile = attributes[:'esrgan_tile'] else self.esrgan_tile = 192 end if attributes.key?(:'esrgan_tile_overlap') self.esrgan_tile_overlap = attributes[:'esrgan_tile_overlap'] else self.esrgan_tile_overlap = 8 end if attributes.key?(:'realesrgan_enabled_models') if (value = attributes[:'realesrgan_enabled_models']).is_a?(Array) self.realesrgan_enabled_models = value end end if attributes.key?(:'upscaler_for_img2img') self.upscaler_for_img2img = attributes[:'upscaler_for_img2img'] end if attributes.key?(:'face_restoration') self.face_restoration = attributes[:'face_restoration'] end if attributes.key?(:'face_restoration_model') self.face_restoration_model = attributes[:'face_restoration_model'] else self.face_restoration_model = 'CodeFormer' end if attributes.key?(:'code_former_weight') self.code_former_weight = attributes[:'code_former_weight'] else self.code_former_weight = 0.5 end if attributes.key?(:'face_restoration_unload') self.face_restoration_unload = attributes[:'face_restoration_unload'] end if attributes.key?(:'auto_launch_browser') self.auto_launch_browser = attributes[:'auto_launch_browser'] else self.auto_launch_browser = 'Local' end if attributes.key?(:'enable_console_prompts') self.enable_console_prompts = attributes[:'enable_console_prompts'] end if attributes.key?(:'show_warnings') self.show_warnings = attributes[:'show_warnings'] end if attributes.key?(:'show_gradio_deprecation_warnings') self.show_gradio_deprecation_warnings = attributes[:'show_gradio_deprecation_warnings'] else self.show_gradio_deprecation_warnings = true end if attributes.key?(:'memmon_poll_rate') self.memmon_poll_rate = attributes[:'memmon_poll_rate'] else self.memmon_poll_rate = 8 end if attributes.key?(:'samples_log_stdout') self.samples_log_stdout = attributes[:'samples_log_stdout'] end if attributes.key?(:'multiple_tqdm') self.multiple_tqdm = attributes[:'multiple_tqdm'] else self.multiple_tqdm = true end if attributes.key?(:'print_hypernet_extra') self.print_hypernet_extra = attributes[:'print_hypernet_extra'] end if attributes.key?(:'list_hidden_files') self.list_hidden_files = attributes[:'list_hidden_files'] else self.list_hidden_files = true end if attributes.key?(:'disable_mmap_load_safetensors') self.disable_mmap_load_safetensors = attributes[:'disable_mmap_load_safetensors'] end if attributes.key?(:'hide_ldm_prints') self.hide_ldm_prints = attributes[:'hide_ldm_prints'] else self.hide_ldm_prints = true end if attributes.key?(:'dump_stacks_on_signal') self.dump_stacks_on_signal = attributes[:'dump_stacks_on_signal'] end if attributes.key?(:'api_enable_requests') self.api_enable_requests = attributes[:'api_enable_requests'] else self.api_enable_requests = true end if attributes.key?(:'api_forbid_local_requests') self.api_forbid_local_requests = attributes[:'api_forbid_local_requests'] else self.api_forbid_local_requests = true end if attributes.key?(:'api_useragent') self.api_useragent = attributes[:'api_useragent'] end if attributes.key?(:'unload_models_when_training') self.unload_models_when_training = attributes[:'unload_models_when_training'] end if attributes.key?(:'pin_memory') self.pin_memory = attributes[:'pin_memory'] end if attributes.key?(:'save_optimizer_state') self.save_optimizer_state = attributes[:'save_optimizer_state'] end if attributes.key?(:'save_training_settings_to_txt') self.save_training_settings_to_txt = attributes[:'save_training_settings_to_txt'] else self.save_training_settings_to_txt = true end if attributes.key?(:'dataset_filename_word_regex') self.dataset_filename_word_regex = attributes[:'dataset_filename_word_regex'] end if attributes.key?(:'dataset_filename_join_string') self.dataset_filename_join_string = attributes[:'dataset_filename_join_string'] else self.dataset_filename_join_string = ' ' end if attributes.key?(:'training_image_repeats_per_epoch') self.training_image_repeats_per_epoch = attributes[:'training_image_repeats_per_epoch'] else self.training_image_repeats_per_epoch = 1 end if attributes.key?(:'training_write_csv_every') self.training_write_csv_every = attributes[:'training_write_csv_every'] else self.training_write_csv_every = 500 end if attributes.key?(:'training_xattention_optimizations') self.training_xattention_optimizations = attributes[:'training_xattention_optimizations'] end if attributes.key?(:'training_enable_tensorboard') self.training_enable_tensorboard = attributes[:'training_enable_tensorboard'] end if attributes.key?(:'training_tensorboard_save_images') self.training_tensorboard_save_images = attributes[:'training_tensorboard_save_images'] end if attributes.key?(:'training_tensorboard_flush_every') self.training_tensorboard_flush_every = attributes[:'training_tensorboard_flush_every'] else self.training_tensorboard_flush_every = 120 end if attributes.key?(:'sd_model_checkpoint') self.sd_model_checkpoint = attributes[:'sd_model_checkpoint'] end if attributes.key?(:'sd_checkpoints_limit') self.sd_checkpoints_limit = attributes[:'sd_checkpoints_limit'] else self.sd_checkpoints_limit = 1 end if attributes.key?(:'sd_checkpoints_keep_in_cpu') self.sd_checkpoints_keep_in_cpu = attributes[:'sd_checkpoints_keep_in_cpu'] else self.sd_checkpoints_keep_in_cpu = true end if attributes.key?(:'sd_checkpoint_cache') self.sd_checkpoint_cache = attributes[:'sd_checkpoint_cache'] end if attributes.key?(:'sd_unet') self.sd_unet = attributes[:'sd_unet'] else self.sd_unet = 'Automatic' end if attributes.key?(:'enable_quantization') self.enable_quantization = attributes[:'enable_quantization'] end if attributes.key?(:'enable_emphasis') self.enable_emphasis = attributes[:'enable_emphasis'] else self.enable_emphasis = true end if attributes.key?(:'enable_batch_seeds') self.enable_batch_seeds = attributes[:'enable_batch_seeds'] else self.enable_batch_seeds = true end if attributes.key?(:'comma_padding_backtrack') self.comma_padding_backtrack = attributes[:'comma_padding_backtrack'] else self.comma_padding_backtrack = 20 end if attributes.key?(:'clip_stop_at_last_layers') self.clip_stop_at_last_layers = attributes[:'clip_stop_at_last_layers'] else self.clip_stop_at_last_layers = 1 end if attributes.key?(:'upcast_attn') self.upcast_attn = attributes[:'upcast_attn'] end if attributes.key?(:'randn_source') self.randn_source = attributes[:'randn_source'] else self.randn_source = 'GPU' end if attributes.key?(:'tiling') self.tiling = attributes[:'tiling'] end if attributes.key?(:'hires_fix_refiner_pass') self.hires_fix_refiner_pass = attributes[:'hires_fix_refiner_pass'] else self.hires_fix_refiner_pass = 'second pass' end if attributes.key?(:'sdxl_crop_top') self.sdxl_crop_top = attributes[:'sdxl_crop_top'] end if attributes.key?(:'sdxl_crop_left') self.sdxl_crop_left = attributes[:'sdxl_crop_left'] end if attributes.key?(:'sdxl_refiner_low_aesthetic_score') self.sdxl_refiner_low_aesthetic_score = attributes[:'sdxl_refiner_low_aesthetic_score'] else self.sdxl_refiner_low_aesthetic_score = 2.5 end if attributes.key?(:'sdxl_refiner_high_aesthetic_score') self.sdxl_refiner_high_aesthetic_score = attributes[:'sdxl_refiner_high_aesthetic_score'] else self.sdxl_refiner_high_aesthetic_score = 6.0 end if attributes.key?(:'sd_vae_explanation') self.sd_vae_explanation = attributes[:'sd_vae_explanation'] else self.sd_vae_explanation = "<abbr title='Variational autoencoder'>VAE</abbr> is a neural network that transforms a standard <abbr title='red/green/blue'>RGB</abbr> image into latent space representation and back. Latent space representation is what stable diffusion is working on during sampling (i.e. when the progress bar is between empty and full). For txt2img, VAE is used to create a resulting image after the sampling is finished. For img2img, VAE is used to process user's input image before the sampling, and to create an image after sampling." end if attributes.key?(:'sd_vae_checkpoint_cache') self.sd_vae_checkpoint_cache = attributes[:'sd_vae_checkpoint_cache'] end if attributes.key?(:'sd_vae') self.sd_vae = attributes[:'sd_vae'] else self.sd_vae = 'Automatic' end if attributes.key?(:'sd_vae_overrides_per_model_preferences') self.sd_vae_overrides_per_model_preferences = attributes[:'sd_vae_overrides_per_model_preferences'] else self.sd_vae_overrides_per_model_preferences = true end if attributes.key?(:'auto_vae_precision') self.auto_vae_precision = attributes[:'auto_vae_precision'] else self.auto_vae_precision = true end if attributes.key?(:'sd_vae_encode_method') self.sd_vae_encode_method = attributes[:'sd_vae_encode_method'] else self.sd_vae_encode_method = 'Full' end if attributes.key?(:'sd_vae_decode_method') self.sd_vae_decode_method = attributes[:'sd_vae_decode_method'] else self.sd_vae_decode_method = 'Full' end if attributes.key?(:'inpainting_mask_weight') self.inpainting_mask_weight = attributes[:'inpainting_mask_weight'] else self.inpainting_mask_weight = 1.0 end if attributes.key?(:'initial_noise_multiplier') self.initial_noise_multiplier = attributes[:'initial_noise_multiplier'] else self.initial_noise_multiplier = 1.0 end if attributes.key?(:'img2img_extra_noise') self.img2img_extra_noise = attributes[:'img2img_extra_noise'] end if attributes.key?(:'img2img_color_correction') self.img2img_color_correction = attributes[:'img2img_color_correction'] end if attributes.key?(:'img2img_fix_steps') self.img2img_fix_steps = attributes[:'img2img_fix_steps'] end if attributes.key?(:'img2img_background_color') self.img2img_background_color = attributes[:'img2img_background_color'] else self.img2img_background_color = '#ffffff' end if attributes.key?(:'img2img_editor_height') self.img2img_editor_height = attributes[:'img2img_editor_height'] else self.img2img_editor_height = 720 end if attributes.key?(:'img2img_sketch_default_brush_color') self.img2img_sketch_default_brush_color = attributes[:'img2img_sketch_default_brush_color'] else self.img2img_sketch_default_brush_color = '#ffffff' end if attributes.key?(:'img2img_inpaint_mask_brush_color') self.img2img_inpaint_mask_brush_color = attributes[:'img2img_inpaint_mask_brush_color'] else self.img2img_inpaint_mask_brush_color = '#ffffff' end if attributes.key?(:'img2img_inpaint_sketch_default_brush_color') self.img2img_inpaint_sketch_default_brush_color = attributes[:'img2img_inpaint_sketch_default_brush_color'] else self.img2img_inpaint_sketch_default_brush_color = '#ffffff' end if attributes.key?(:'return_mask') self.return_mask = attributes[:'return_mask'] end if attributes.key?(:'return_mask_composite') self.return_mask_composite = attributes[:'return_mask_composite'] end if attributes.key?(:'img2img_batch_show_results_limit') self.img2img_batch_show_results_limit = attributes[:'img2img_batch_show_results_limit'] else self.img2img_batch_show_results_limit = 32 end if attributes.key?(:'cross_attention_optimization') self.cross_attention_optimization = attributes[:'cross_attention_optimization'] else self.cross_attention_optimization = 'Automatic' end if attributes.key?(:'s_min_uncond') self.s_min_uncond = attributes[:'s_min_uncond'] end if attributes.key?(:'token_merging_ratio') self.token_merging_ratio = attributes[:'token_merging_ratio'] end if attributes.key?(:'token_merging_ratio_img2img') self.token_merging_ratio_img2img = attributes[:'token_merging_ratio_img2img'] end if attributes.key?(:'token_merging_ratio_hr') self.token_merging_ratio_hr = attributes[:'token_merging_ratio_hr'] end if attributes.key?(:'pad_cond_uncond') self.pad_cond_uncond = attributes[:'pad_cond_uncond'] end if attributes.key?(:'persistent_cond_cache') self.persistent_cond_cache = attributes[:'persistent_cond_cache'] else self.persistent_cond_cache = true end if attributes.key?(:'batch_cond_uncond') self.batch_cond_uncond = attributes[:'batch_cond_uncond'] else self.batch_cond_uncond = true end if attributes.key?(:'use_old_emphasis_implementation') self.use_old_emphasis_implementation = attributes[:'use_old_emphasis_implementation'] end if attributes.key?(:'use_old_karras_scheduler_sigmas') self.use_old_karras_scheduler_sigmas = attributes[:'use_old_karras_scheduler_sigmas'] end if attributes.key?(:'no_dpmpp_sde_batch_determinism') self.no_dpmpp_sde_batch_determinism = attributes[:'no_dpmpp_sde_batch_determinism'] end if attributes.key?(:'use_old_hires_fix_width_height') self.use_old_hires_fix_width_height = attributes[:'use_old_hires_fix_width_height'] end if attributes.key?(:'dont_fix_second_order_samplers_schedule') self.dont_fix_second_order_samplers_schedule = attributes[:'dont_fix_second_order_samplers_schedule'] end if attributes.key?(:'hires_fix_use_firstpass_conds') self.hires_fix_use_firstpass_conds = attributes[:'hires_fix_use_firstpass_conds'] end if attributes.key?(:'use_old_scheduling') self.use_old_scheduling = attributes[:'use_old_scheduling'] end if attributes.key?(:'interrogate_keep_models_in_memory') self.interrogate_keep_models_in_memory = attributes[:'interrogate_keep_models_in_memory'] end if attributes.key?(:'interrogate_return_ranks') self.interrogate_return_ranks = attributes[:'interrogate_return_ranks'] end if attributes.key?(:'interrogate_clip_num_beams') self.interrogate_clip_num_beams = attributes[:'interrogate_clip_num_beams'] else self.interrogate_clip_num_beams = 1 end if attributes.key?(:'interrogate_clip_min_length') self.interrogate_clip_min_length = attributes[:'interrogate_clip_min_length'] else self.interrogate_clip_min_length = 24 end if attributes.key?(:'interrogate_clip_max_length') self.interrogate_clip_max_length = attributes[:'interrogate_clip_max_length'] else self.interrogate_clip_max_length = 48 end if attributes.key?(:'interrogate_clip_dict_limit') self.interrogate_clip_dict_limit = attributes[:'interrogate_clip_dict_limit'] else self.interrogate_clip_dict_limit = 1500 end if attributes.key?(:'interrogate_clip_skip_categories') self.interrogate_clip_skip_categories = attributes[:'interrogate_clip_skip_categories'] end if attributes.key?(:'interrogate_deepbooru_score_threshold') self.interrogate_deepbooru_score_threshold = attributes[:'interrogate_deepbooru_score_threshold'] else self.interrogate_deepbooru_score_threshold = 0.5 end if attributes.key?(:'deepbooru_sort_alpha') self.deepbooru_sort_alpha = attributes[:'deepbooru_sort_alpha'] else self.deepbooru_sort_alpha = true end if attributes.key?(:'deepbooru_use_spaces') self.deepbooru_use_spaces = attributes[:'deepbooru_use_spaces'] else self.deepbooru_use_spaces = true end if attributes.key?(:'deepbooru_escape') self.deepbooru_escape = attributes[:'deepbooru_escape'] else self.deepbooru_escape = true end if attributes.key?(:'deepbooru_filter_tags') self. = attributes[:'deepbooru_filter_tags'] end if attributes.key?(:'extra_networks_show_hidden_directories') self.extra_networks_show_hidden_directories = attributes[:'extra_networks_show_hidden_directories'] else self.extra_networks_show_hidden_directories = true end if attributes.key?(:'extra_networks_dir_button_function') self. = attributes[:'extra_networks_dir_button_function'] end if attributes.key?(:'extra_networks_hidden_models') self.extra_networks_hidden_models = attributes[:'extra_networks_hidden_models'] else self.extra_networks_hidden_models = 'When searched' end if attributes.key?(:'extra_networks_default_multiplier') self.extra_networks_default_multiplier = attributes[:'extra_networks_default_multiplier'] else self.extra_networks_default_multiplier = 1.0 end if attributes.key?(:'extra_networks_card_width') self.extra_networks_card_width = attributes[:'extra_networks_card_width'] end if attributes.key?(:'extra_networks_card_height') self.extra_networks_card_height = attributes[:'extra_networks_card_height'] end if attributes.key?(:'extra_networks_card_text_scale') self.extra_networks_card_text_scale = attributes[:'extra_networks_card_text_scale'] else self.extra_networks_card_text_scale = 1.0 end if attributes.key?(:'extra_networks_card_show_desc') self.extra_networks_card_show_desc = attributes[:'extra_networks_card_show_desc'] else self.extra_networks_card_show_desc = true end if attributes.key?(:'extra_networks_card_order_field') self.extra_networks_card_order_field = attributes[:'extra_networks_card_order_field'] else self.extra_networks_card_order_field = 'Path' end if attributes.key?(:'extra_networks_card_order') self.extra_networks_card_order = attributes[:'extra_networks_card_order'] else self.extra_networks_card_order = 'Ascending' end if attributes.key?(:'extra_networks_add_text_separator') self.extra_networks_add_text_separator = attributes[:'extra_networks_add_text_separator'] else self.extra_networks_add_text_separator = ' ' end if attributes.key?(:'ui_extra_networks_tab_reorder') self.ui_extra_networks_tab_reorder = attributes[:'ui_extra_networks_tab_reorder'] end if attributes.key?(:'textual_inversion_print_at_load') self.textual_inversion_print_at_load = attributes[:'textual_inversion_print_at_load'] end if attributes.key?(:'textual_inversion_add_hashes_to_infotext') self.textual_inversion_add_hashes_to_infotext = attributes[:'textual_inversion_add_hashes_to_infotext'] else self.textual_inversion_add_hashes_to_infotext = true end if attributes.key?(:'sd_hypernetwork') self.sd_hypernetwork = attributes[:'sd_hypernetwork'] else self.sd_hypernetwork = 'None' end if attributes.key?(:'keyedit_precision_attention') self.keyedit_precision_attention = attributes[:'keyedit_precision_attention'] else self.keyedit_precision_attention = 0.1 end if attributes.key?(:'keyedit_precision_extra') self.keyedit_precision_extra = attributes[:'keyedit_precision_extra'] else self.keyedit_precision_extra = 0.05 end if attributes.key?(:'keyedit_delimiters') self.keyedit_delimiters = attributes[:'keyedit_delimiters'] else self.keyedit_delimiters = '.,/!?%^*;:{}=`~() ' end if attributes.key?(:'keyedit_delimiters_whitespace') if (value = attributes[:'keyedit_delimiters_whitespace']).is_a?(Array) self.keyedit_delimiters_whitespace = value end end if attributes.key?(:'keyedit_move') self.keyedit_move = attributes[:'keyedit_move'] else self.keyedit_move = true end if attributes.key?(:'disable_token_counters') self.disable_token_counters = attributes[:'disable_token_counters'] end if attributes.key?(:'return_grid') self.return_grid = attributes[:'return_grid'] else self.return_grid = true end if attributes.key?(:'do_not_show_images') self.do_not_show_images = attributes[:'do_not_show_images'] end if attributes.key?(:'js_modal_lightbox') self.js_modal_lightbox = attributes[:'js_modal_lightbox'] else self.js_modal_lightbox = true end if attributes.key?(:'js_modal_lightbox_initially_zoomed') self.js_modal_lightbox_initially_zoomed = attributes[:'js_modal_lightbox_initially_zoomed'] else self.js_modal_lightbox_initially_zoomed = true end if attributes.key?(:'js_modal_lightbox_gamepad') self.js_modal_lightbox_gamepad = attributes[:'js_modal_lightbox_gamepad'] end if attributes.key?(:'js_modal_lightbox_gamepad_repeat') self.js_modal_lightbox_gamepad_repeat = attributes[:'js_modal_lightbox_gamepad_repeat'] else self.js_modal_lightbox_gamepad_repeat = 250 end if attributes.key?(:'gallery_height') self.gallery_height = attributes[:'gallery_height'] end if attributes.key?(:'compact_prompt_box') self.compact_prompt_box = attributes[:'compact_prompt_box'] end if attributes.key?(:'samplers_in_dropdown') self.samplers_in_dropdown = attributes[:'samplers_in_dropdown'] else self.samplers_in_dropdown = true end if attributes.key?(:'dimensions_and_batch_together') self.dimensions_and_batch_together = attributes[:'dimensions_and_batch_together'] else self.dimensions_and_batch_together = true end if attributes.key?(:'sd_checkpoint_dropdown_use_short') self.sd_checkpoint_dropdown_use_short = attributes[:'sd_checkpoint_dropdown_use_short'] end if attributes.key?(:'hires_fix_show_sampler') self.hires_fix_show_sampler = attributes[:'hires_fix_show_sampler'] end if attributes.key?(:'hires_fix_show_prompts') self.hires_fix_show_prompts = attributes[:'hires_fix_show_prompts'] end if attributes.key?(:'txt2img_settings_accordion') self.txt2img_settings_accordion = attributes[:'txt2img_settings_accordion'] end if attributes.key?(:'img2img_settings_accordion') self.img2img_settings_accordion = attributes[:'img2img_settings_accordion'] end if attributes.key?(:'localization') self.localization = attributes[:'localization'] else self.localization = 'None' end if attributes.key?(:'quicksettings_list') if (value = attributes[:'quicksettings_list']).is_a?(Array) self.quicksettings_list = value end end if attributes.key?(:'ui_tab_order') self.ui_tab_order = attributes[:'ui_tab_order'] end if attributes.key?(:'hidden_tabs') self.hidden_tabs = attributes[:'hidden_tabs'] end if attributes.key?(:'ui_reorder_list') self.ui_reorder_list = attributes[:'ui_reorder_list'] end if attributes.key?(:'gradio_theme') self.gradio_theme = attributes[:'gradio_theme'] else self.gradio_theme = 'Default' end if attributes.key?(:'gradio_themes_cache') self.gradio_themes_cache = attributes[:'gradio_themes_cache'] else self.gradio_themes_cache = true end if attributes.key?(:'show_progress_in_title') self.show_progress_in_title = attributes[:'show_progress_in_title'] else self.show_progress_in_title = true end if attributes.key?(:'send_seed') self.send_seed = attributes[:'send_seed'] else self.send_seed = true end if attributes.key?(:'send_size') self.send_size = attributes[:'send_size'] else self.send_size = true end if attributes.key?(:'infotext_explanation') self.infotext_explanation = attributes[:'infotext_explanation'] else self.infotext_explanation = 'Infotext is what this software calls the text that contains generation parameters and can be used to generate the same picture again. It is displayed in UI below the image. To use infotext, paste it into the prompt and click the ↙️ paste button.' end if attributes.key?(:'enable_pnginfo') self.enable_pnginfo = attributes[:'enable_pnginfo'] else self.enable_pnginfo = true end if attributes.key?(:'save_txt') self.save_txt = attributes[:'save_txt'] end if attributes.key?(:'add_model_name_to_info') self.add_model_name_to_info = attributes[:'add_model_name_to_info'] else self.add_model_name_to_info = true end if attributes.key?(:'add_model_hash_to_info') self.add_model_hash_to_info = attributes[:'add_model_hash_to_info'] else self.add_model_hash_to_info = true end if attributes.key?(:'add_vae_name_to_info') self.add_vae_name_to_info = attributes[:'add_vae_name_to_info'] else self.add_vae_name_to_info = true end if attributes.key?(:'add_vae_hash_to_info') self.add_vae_hash_to_info = attributes[:'add_vae_hash_to_info'] else self.add_vae_hash_to_info = true end if attributes.key?(:'add_user_name_to_info') self.add_user_name_to_info = attributes[:'add_user_name_to_info'] end if attributes.key?(:'add_version_to_infotext') self.add_version_to_infotext = attributes[:'add_version_to_infotext'] else self.add_version_to_infotext = true end if attributes.key?(:'disable_weights_auto_swap') self.disable_weights_auto_swap = attributes[:'disable_weights_auto_swap'] else self.disable_weights_auto_swap = true end if attributes.key?(:'infotext_skip_pasting') self.infotext_skip_pasting = attributes[:'infotext_skip_pasting'] end if attributes.key?(:'infotext_styles') self.infotext_styles = attributes[:'infotext_styles'] else self.infotext_styles = 'Apply if any' end if attributes.key?(:'show_progressbar') self. = attributes[:'show_progressbar'] else self. = true end if attributes.key?(:'live_previews_enable') self.live_previews_enable = attributes[:'live_previews_enable'] else self.live_previews_enable = true end if attributes.key?(:'live_previews_image_format') self.live_previews_image_format = attributes[:'live_previews_image_format'] else self.live_previews_image_format = 'png' end if attributes.key?(:'show_progress_grid') self.show_progress_grid = attributes[:'show_progress_grid'] else self.show_progress_grid = true end if attributes.key?(:'show_progress_every_n_steps') self.show_progress_every_n_steps = attributes[:'show_progress_every_n_steps'] else self.show_progress_every_n_steps = 10 end if attributes.key?(:'show_progress_type') self.show_progress_type = attributes[:'show_progress_type'] else self.show_progress_type = 'Approx NN' end if attributes.key?(:'live_preview_allow_lowvram_full') self.live_preview_allow_lowvram_full = attributes[:'live_preview_allow_lowvram_full'] end if attributes.key?(:'live_preview_content') self.live_preview_content = attributes[:'live_preview_content'] else self.live_preview_content = 'Prompt' end if attributes.key?(:'live_preview_refresh_period') self.live_preview_refresh_period = attributes[:'live_preview_refresh_period'] else self.live_preview_refresh_period = 1000 end if attributes.key?(:'live_preview_fast_interrupt') self.live_preview_fast_interrupt = attributes[:'live_preview_fast_interrupt'] end if attributes.key?(:'js_live_preview_in_modal_lightbox') self.js_live_preview_in_modal_lightbox = attributes[:'js_live_preview_in_modal_lightbox'] end if attributes.key?(:'hide_samplers') self.hide_samplers = attributes[:'hide_samplers'] end if attributes.key?(:'eta_ddim') self.eta_ddim = attributes[:'eta_ddim'] end if attributes.key?(:'eta_ancestral') self.eta_ancestral = attributes[:'eta_ancestral'] else self.eta_ancestral = 1.0 end if attributes.key?(:'ddim_discretize') self.ddim_discretize = attributes[:'ddim_discretize'] else self.ddim_discretize = 'uniform' end if attributes.key?(:'s_churn') self.s_churn = attributes[:'s_churn'] end if attributes.key?(:'s_tmin') self.s_tmin = attributes[:'s_tmin'] end if attributes.key?(:'s_tmax') self.s_tmax = attributes[:'s_tmax'] end if attributes.key?(:'s_noise') self.s_noise = attributes[:'s_noise'] else self.s_noise = 1.0 end if attributes.key?(:'k_sched_type') self.k_sched_type = attributes[:'k_sched_type'] else self.k_sched_type = 'Automatic' end if attributes.key?(:'sigma_min') self.sigma_min = attributes[:'sigma_min'] end if attributes.key?(:'sigma_max') self.sigma_max = attributes[:'sigma_max'] end if attributes.key?(:'rho') self.rho = attributes[:'rho'] end if attributes.key?(:'eta_noise_seed_delta') self.eta_noise_seed_delta = attributes[:'eta_noise_seed_delta'] end if attributes.key?(:'always_discard_next_to_last_sigma') self.always_discard_next_to_last_sigma = attributes[:'always_discard_next_to_last_sigma'] end if attributes.key?(:'sgm_noise_multiplier') self.sgm_noise_multiplier = attributes[:'sgm_noise_multiplier'] end if attributes.key?(:'uni_pc_variant') self.uni_pc_variant = attributes[:'uni_pc_variant'] else self.uni_pc_variant = 'bh1' end if attributes.key?(:'uni_pc_skip_type') self.uni_pc_skip_type = attributes[:'uni_pc_skip_type'] else self.uni_pc_skip_type = 'time_uniform' end if attributes.key?(:'uni_pc_order') self.uni_pc_order = attributes[:'uni_pc_order'] else self.uni_pc_order = 3 end if attributes.key?(:'uni_pc_lower_order_final') self.uni_pc_lower_order_final = attributes[:'uni_pc_lower_order_final'] else self.uni_pc_lower_order_final = true end if attributes.key?(:'postprocessing_enable_in_main_ui') self.postprocessing_enable_in_main_ui = attributes[:'postprocessing_enable_in_main_ui'] end if attributes.key?(:'postprocessing_operation_order') self.postprocessing_operation_order = attributes[:'postprocessing_operation_order'] end if attributes.key?(:'upscaling_max_images_in_cache') self.upscaling_max_images_in_cache = attributes[:'upscaling_max_images_in_cache'] else self.upscaling_max_images_in_cache = 5 end if attributes.key?(:'postprocessing_existing_caption_action') self. = attributes[:'postprocessing_existing_caption_action'] else self. = 'Ignore' end if attributes.key?(:'disabled_extensions') self.disabled_extensions = attributes[:'disabled_extensions'] end if attributes.key?(:'disable_all_extensions') self.disable_all_extensions = attributes[:'disable_all_extensions'] else self.disable_all_extensions = 'none' end if attributes.key?(:'restore_config_state_file') self.restore_config_state_file = attributes[:'restore_config_state_file'] end if attributes.key?(:'sd_checkpoint_hash') self.sd_checkpoint_hash = attributes[:'sd_checkpoint_hash'] end if attributes.key?(:'sd_lora') self.sd_lora = attributes[:'sd_lora'] else self.sd_lora = 'None' end if attributes.key?(:'lora_preferred_name') self.lora_preferred_name = attributes[:'lora_preferred_name'] else self.lora_preferred_name = 'Alias from file' end if attributes.key?(:'lora_add_hashes_to_infotext') self.lora_add_hashes_to_infotext = attributes[:'lora_add_hashes_to_infotext'] else self.lora_add_hashes_to_infotext = true end if attributes.key?(:'lora_show_all') self.lora_show_all = attributes[:'lora_show_all'] end if attributes.key?(:'lora_hide_unknown_for_versions') self.lora_hide_unknown_for_versions = attributes[:'lora_hide_unknown_for_versions'] end if attributes.key?(:'lora_in_memory_limit') self.lora_in_memory_limit = attributes[:'lora_in_memory_limit'] end if attributes.key?(:'lora_functional') self.lora_functional = attributes[:'lora_functional'] end if attributes.key?(:'canvas_hotkey_zoom') self.canvas_hotkey_zoom = attributes[:'canvas_hotkey_zoom'] else self.canvas_hotkey_zoom = 'Alt' end if attributes.key?(:'canvas_hotkey_adjust') self.canvas_hotkey_adjust = attributes[:'canvas_hotkey_adjust'] else self.canvas_hotkey_adjust = 'Ctrl' end if attributes.key?(:'canvas_hotkey_move') self.canvas_hotkey_move = attributes[:'canvas_hotkey_move'] else self.canvas_hotkey_move = 'F' end if attributes.key?(:'canvas_hotkey_fullscreen') self.canvas_hotkey_fullscreen = attributes[:'canvas_hotkey_fullscreen'] else self.canvas_hotkey_fullscreen = 'S' end if attributes.key?(:'canvas_hotkey_reset') self.canvas_hotkey_reset = attributes[:'canvas_hotkey_reset'] else self.canvas_hotkey_reset = 'R' end if attributes.key?(:'canvas_hotkey_overlap') self.canvas_hotkey_overlap = attributes[:'canvas_hotkey_overlap'] else self.canvas_hotkey_overlap = 'O' end if attributes.key?(:'canvas_show_tooltip') self.canvas_show_tooltip = attributes[:'canvas_show_tooltip'] else self.canvas_show_tooltip = true end if attributes.key?(:'canvas_auto_expand') self. = attributes[:'canvas_auto_expand'] else self. = true end if attributes.key?(:'canvas_blur_prompt') self.canvas_blur_prompt = attributes[:'canvas_blur_prompt'] end if attributes.key?(:'canvas_disabled_functions') if (value = attributes[:'canvas_disabled_functions']).is_a?(Array) self.canvas_disabled_functions = value end end if attributes.key?(:'settings_in_ui') self.settings_in_ui = attributes[:'settings_in_ui'] else self.settings_in_ui = 'This page allows you to add some settings to the main interface of txt2img and img2img tabs.' end if attributes.key?(:'extra_options_txt2img') self. = attributes[:'extra_options_txt2img'] end if attributes.key?(:'extra_options_img2img') self. = attributes[:'extra_options_img2img'] end if attributes.key?(:'extra_options_cols') self. = attributes[:'extra_options_cols'] else self. = 1 end if attributes.key?(:'extra_options_accordion') self. = attributes[:'extra_options_accordion'] end end |
Instance Attribute Details
#add_model_hash_to_info ⇒ Object
Add model hash to infotext
615 616 617 |
# File 'lib/stable_diffusion/models/options.rb', line 615 def add_model_hash_to_info @add_model_hash_to_info end |
#add_model_name_to_info ⇒ Object
Add model name to infotext
612 613 614 |
# File 'lib/stable_diffusion/models/options.rb', line 612 def add_model_name_to_info @add_model_name_to_info end |
#add_user_name_to_info ⇒ Object
Add user name to infotext when authenticated
624 625 626 |
# File 'lib/stable_diffusion/models/options.rb', line 624 def add_user_name_to_info @add_user_name_to_info end |
#add_vae_hash_to_info ⇒ Object
Add VAE hash to infotext
621 622 623 |
# File 'lib/stable_diffusion/models/options.rb', line 621 def add_vae_hash_to_info @add_vae_hash_to_info end |
#add_vae_name_to_info ⇒ Object
Add VAE name to infotext
618 619 620 |
# File 'lib/stable_diffusion/models/options.rb', line 618 def add_vae_name_to_info @add_vae_name_to_info end |
#add_version_to_infotext ⇒ Object
Add program version to infotext
627 628 629 |
# File 'lib/stable_diffusion/models/options.rb', line 627 def add_version_to_infotext @add_version_to_infotext end |
#always_discard_next_to_last_sigma ⇒ Object
Always discard next-to-last sigma
711 712 713 |
# File 'lib/stable_diffusion/models/options.rb', line 711 def always_discard_next_to_last_sigma @always_discard_next_to_last_sigma end |
#api_enable_requests ⇒ Object
Allow http:// and https:// URLs for input images in API
227 228 229 |
# File 'lib/stable_diffusion/models/options.rb', line 227 def api_enable_requests @api_enable_requests end |
#api_forbid_local_requests ⇒ Object
Forbid URLs to local resources
230 231 232 |
# File 'lib/stable_diffusion/models/options.rb', line 230 def api_forbid_local_requests @api_forbid_local_requests end |
#api_useragent ⇒ Object
User agent for requests
233 234 235 |
# File 'lib/stable_diffusion/models/options.rb', line 233 def api_useragent @api_useragent end |
#auto_launch_browser ⇒ Object
Automatically open webui in browser on startup
191 192 193 |
# File 'lib/stable_diffusion/models/options.rb', line 191 def auto_launch_browser @auto_launch_browser end |
#auto_vae_precision ⇒ Object
Automatically revert VAE to 32-bit floats
337 338 339 |
# File 'lib/stable_diffusion/models/options.rb', line 337 def auto_vae_precision @auto_vae_precision end |
#batch_cond_uncond ⇒ Object
Batch cond/uncond
406 407 408 |
# File 'lib/stable_diffusion/models/options.rb', line 406 def batch_cond_uncond @batch_cond_uncond end |
#canvas_auto_expand ⇒ Object
Automatically expands an image that does not fit completely in the canvas area, similar to manually pressing the S and R buttons
795 796 797 |
# File 'lib/stable_diffusion/models/options.rb', line 795 def @canvas_auto_expand end |
#canvas_blur_prompt ⇒ Object
Take the focus off the prompt when working with a canvas
798 799 800 |
# File 'lib/stable_diffusion/models/options.rb', line 798 def canvas_blur_prompt @canvas_blur_prompt end |
#canvas_disabled_functions ⇒ Object
Disable function that you don’t use
801 802 803 |
# File 'lib/stable_diffusion/models/options.rb', line 801 def canvas_disabled_functions @canvas_disabled_functions end |
#canvas_hotkey_adjust ⇒ Object
Adjust brush size
777 778 779 |
# File 'lib/stable_diffusion/models/options.rb', line 777 def canvas_hotkey_adjust @canvas_hotkey_adjust end |
#canvas_hotkey_fullscreen ⇒ Object
Fullscreen Mode, maximizes the picture so that it fits into the screen and stretches it to its full width
783 784 785 |
# File 'lib/stable_diffusion/models/options.rb', line 783 def canvas_hotkey_fullscreen @canvas_hotkey_fullscreen end |
#canvas_hotkey_move ⇒ Object
Moving the canvas
780 781 782 |
# File 'lib/stable_diffusion/models/options.rb', line 780 def canvas_hotkey_move @canvas_hotkey_move end |
#canvas_hotkey_overlap ⇒ Object
Toggle overlap
789 790 791 |
# File 'lib/stable_diffusion/models/options.rb', line 789 def canvas_hotkey_overlap @canvas_hotkey_overlap end |
#canvas_hotkey_reset ⇒ Object
Reset zoom and canvas positon
786 787 788 |
# File 'lib/stable_diffusion/models/options.rb', line 786 def canvas_hotkey_reset @canvas_hotkey_reset end |
#canvas_hotkey_zoom ⇒ Object
Zoom canvas
774 775 776 |
# File 'lib/stable_diffusion/models/options.rb', line 774 def canvas_hotkey_zoom @canvas_hotkey_zoom end |
#canvas_show_tooltip ⇒ Object
Enable tooltip on the canvas
792 793 794 |
# File 'lib/stable_diffusion/models/options.rb', line 792 def canvas_show_tooltip @canvas_show_tooltip end |
#clean_temp_dir_at_start ⇒ Object
Cleanup non-default temporary directory when starting webui
113 114 115 |
# File 'lib/stable_diffusion/models/options.rb', line 113 def clean_temp_dir_at_start @clean_temp_dir_at_start end |
#clip_stop_at_last_layers ⇒ Object
Clip skip
299 300 301 |
# File 'lib/stable_diffusion/models/options.rb', line 299 def clip_stop_at_last_layers @clip_stop_at_last_layers end |
#code_former_weight ⇒ Object
CodeFormer weight
185 186 187 |
# File 'lib/stable_diffusion/models/options.rb', line 185 def code_former_weight @code_former_weight end |
#comma_padding_backtrack ⇒ Object
Prompt word wrap length limit
296 297 298 |
# File 'lib/stable_diffusion/models/options.rb', line 296 def comma_padding_backtrack @comma_padding_backtrack end |
#compact_prompt_box ⇒ Object
Compact prompt layout
550 551 552 |
# File 'lib/stable_diffusion/models/options.rb', line 550 def compact_prompt_box @compact_prompt_box end |
#cross_attention_optimization ⇒ Object
Cross attention optimization
385 386 387 |
# File 'lib/stable_diffusion/models/options.rb', line 385 def cross_attention_optimization @cross_attention_optimization end |
#dataset_filename_join_string ⇒ Object
Filename join string
251 252 253 |
# File 'lib/stable_diffusion/models/options.rb', line 251 def dataset_filename_join_string @dataset_filename_join_string end |
#dataset_filename_word_regex ⇒ Object
Filename word regex
248 249 250 |
# File 'lib/stable_diffusion/models/options.rb', line 248 def dataset_filename_word_regex @dataset_filename_word_regex end |
#ddim_discretize ⇒ Object
img2img DDIM discretize
681 682 683 |
# File 'lib/stable_diffusion/models/options.rb', line 681 def ddim_discretize @ddim_discretize end |
#deepbooru_escape ⇒ Object
deepbooru: escape (\) brackets
460 461 462 |
# File 'lib/stable_diffusion/models/options.rb', line 460 def deepbooru_escape @deepbooru_escape end |
#deepbooru_filter_tags ⇒ Object
deepbooru: filter out those tags
463 464 465 |
# File 'lib/stable_diffusion/models/options.rb', line 463 def @deepbooru_filter_tags end |
#deepbooru_sort_alpha ⇒ Object
deepbooru: sort tags alphabetically
454 455 456 |
# File 'lib/stable_diffusion/models/options.rb', line 454 def deepbooru_sort_alpha @deepbooru_sort_alpha end |
#deepbooru_use_spaces ⇒ Object
deepbooru: use spaces in tags
457 458 459 |
# File 'lib/stable_diffusion/models/options.rb', line 457 def deepbooru_use_spaces @deepbooru_use_spaces end |
#dimensions_and_batch_together ⇒ Object
Show Width/Height and Batch sliders in same row
556 557 558 |
# File 'lib/stable_diffusion/models/options.rb', line 556 def dimensions_and_batch_together @dimensions_and_batch_together end |
#directories_filename_pattern ⇒ Object
Directory name pattern
161 162 163 |
# File 'lib/stable_diffusion/models/options.rb', line 161 def directories_filename_pattern @directories_filename_pattern end |
#directories_max_prompt_words ⇒ Object
Max prompt words for [prompt_words] pattern
164 165 166 |
# File 'lib/stable_diffusion/models/options.rb', line 164 def directories_max_prompt_words @directories_max_prompt_words end |
#disable_all_extensions ⇒ Object
Disable all extensions (preserves the list of disabled extensions)
744 745 746 |
# File 'lib/stable_diffusion/models/options.rb', line 744 def disable_all_extensions @disable_all_extensions end |
#disable_mmap_load_safetensors ⇒ Object
Disable memmapping for loading .safetensors files.
218 219 220 |
# File 'lib/stable_diffusion/models/options.rb', line 218 def disable_mmap_load_safetensors @disable_mmap_load_safetensors end |
#disable_token_counters ⇒ Object
Disable prompt token counters
526 527 528 |
# File 'lib/stable_diffusion/models/options.rb', line 526 def disable_token_counters @disable_token_counters end |
#disable_weights_auto_swap ⇒ Object
Disregard checkpoint information from pasted infotext
630 631 632 |
# File 'lib/stable_diffusion/models/options.rb', line 630 def disable_weights_auto_swap @disable_weights_auto_swap end |
#disabled_extensions ⇒ Object
Disable these extensions
741 742 743 |
# File 'lib/stable_diffusion/models/options.rb', line 741 def disabled_extensions @disabled_extensions end |
#do_not_show_images ⇒ Object
Do not show any images in gallery
532 533 534 |
# File 'lib/stable_diffusion/models/options.rb', line 532 def do_not_show_images @do_not_show_images end |
#dont_fix_second_order_samplers_schedule ⇒ Object
Do not fix prompt schedule for second order samplers.
421 422 423 |
# File 'lib/stable_diffusion/models/options.rb', line 421 def dont_fix_second_order_samplers_schedule @dont_fix_second_order_samplers_schedule end |
#dump_stacks_on_signal ⇒ Object
Print stack traces before exiting the program with ctrl+c.
224 225 226 |
# File 'lib/stable_diffusion/models/options.rb', line 224 def dump_stacks_on_signal @dump_stacks_on_signal end |
#enable_batch_seeds ⇒ Object
Make K-diffusion samplers produce same images in a batch as when making a single image
293 294 295 |
# File 'lib/stable_diffusion/models/options.rb', line 293 def enable_batch_seeds @enable_batch_seeds end |
#enable_console_prompts ⇒ Object
Print prompts to console when generating with txt2img and img2img.
194 195 196 |
# File 'lib/stable_diffusion/models/options.rb', line 194 def enable_console_prompts @enable_console_prompts end |
#enable_emphasis ⇒ Object
Enable emphasis
290 291 292 |
# File 'lib/stable_diffusion/models/options.rb', line 290 def enable_emphasis @enable_emphasis end |
#enable_pnginfo ⇒ Object
Write infotext to metadata of the generated image
606 607 608 |
# File 'lib/stable_diffusion/models/options.rb', line 606 def enable_pnginfo @enable_pnginfo end |
#enable_quantization ⇒ Object
Enable quantization in K samplers for sharper and cleaner results. This may change existing seeds
287 288 289 |
# File 'lib/stable_diffusion/models/options.rb', line 287 def enable_quantization @enable_quantization end |
#esrgan_tile ⇒ Object
Tile size for ESRGAN upscalers.
167 168 169 |
# File 'lib/stable_diffusion/models/options.rb', line 167 def esrgan_tile @esrgan_tile end |
#esrgan_tile_overlap ⇒ Object
Tile overlap for ESRGAN upscalers.
170 171 172 |
# File 'lib/stable_diffusion/models/options.rb', line 170 def esrgan_tile_overlap @esrgan_tile_overlap end |
#eta_ancestral ⇒ Object
Eta for k-diffusion samplers
678 679 680 |
# File 'lib/stable_diffusion/models/options.rb', line 678 def eta_ancestral @eta_ancestral end |
#eta_ddim ⇒ Object
Eta for DDIM
675 676 677 |
# File 'lib/stable_diffusion/models/options.rb', line 675 def eta_ddim @eta_ddim end |
#eta_noise_seed_delta ⇒ Object
Eta noise seed delta
708 709 710 |
# File 'lib/stable_diffusion/models/options.rb', line 708 def eta_noise_seed_delta @eta_noise_seed_delta end |
#export_for_4chan ⇒ Object
Save copy of large images as JPG
86 87 88 |
# File 'lib/stable_diffusion/models/options.rb', line 86 def export_for_4chan @export_for_4chan end |
#extra_networks_add_text_separator ⇒ Object
Extra networks separator
496 497 498 |
# File 'lib/stable_diffusion/models/options.rb', line 496 def extra_networks_add_text_separator @extra_networks_add_text_separator end |
#extra_networks_card_height ⇒ Object
Card height for Extra Networks
481 482 483 |
# File 'lib/stable_diffusion/models/options.rb', line 481 def extra_networks_card_height @extra_networks_card_height end |
#extra_networks_card_order ⇒ Object
Default order for Extra Networks cards
493 494 495 |
# File 'lib/stable_diffusion/models/options.rb', line 493 def extra_networks_card_order @extra_networks_card_order end |
#extra_networks_card_order_field ⇒ Object
Default order field for Extra Networks cards
490 491 492 |
# File 'lib/stable_diffusion/models/options.rb', line 490 def extra_networks_card_order_field @extra_networks_card_order_field end |
#extra_networks_card_show_desc ⇒ Object
Show description on card
487 488 489 |
# File 'lib/stable_diffusion/models/options.rb', line 487 def extra_networks_card_show_desc @extra_networks_card_show_desc end |
#extra_networks_card_text_scale ⇒ Object
Card text scale
484 485 486 |
# File 'lib/stable_diffusion/models/options.rb', line 484 def extra_networks_card_text_scale @extra_networks_card_text_scale end |
#extra_networks_card_width ⇒ Object
Card width for Extra Networks
478 479 480 |
# File 'lib/stable_diffusion/models/options.rb', line 478 def extra_networks_card_width @extra_networks_card_width end |
#extra_networks_default_multiplier ⇒ Object
Default multiplier for extra networks
475 476 477 |
# File 'lib/stable_diffusion/models/options.rb', line 475 def extra_networks_default_multiplier @extra_networks_default_multiplier end |
#extra_networks_dir_button_function ⇒ Object
Add a ‘/’ to the beginning of directory buttons
469 470 471 |
# File 'lib/stable_diffusion/models/options.rb', line 469 def @extra_networks_dir_button_function end |
#extra_networks_hidden_models ⇒ Object
Show cards for models in hidden directories
472 473 474 |
# File 'lib/stable_diffusion/models/options.rb', line 472 def extra_networks_hidden_models @extra_networks_hidden_models end |
#extra_networks_show_hidden_directories ⇒ Object
Show hidden directories
466 467 468 |
# File 'lib/stable_diffusion/models/options.rb', line 466 def extra_networks_show_hidden_directories @extra_networks_show_hidden_directories end |
#extra_options_accordion ⇒ Object
Place added settings into an accordion
815 816 817 |
# File 'lib/stable_diffusion/models/options.rb', line 815 def @extra_options_accordion end |
#extra_options_cols ⇒ Object
Number of columns for added settings
812 813 814 |
# File 'lib/stable_diffusion/models/options.rb', line 812 def @extra_options_cols end |
#extra_options_img2img ⇒ Object
Settings for img2img
809 810 811 |
# File 'lib/stable_diffusion/models/options.rb', line 809 def @extra_options_img2img end |
#extra_options_txt2img ⇒ Object
Settings for txt2img
806 807 808 |
# File 'lib/stable_diffusion/models/options.rb', line 806 def @extra_options_txt2img end |
#face_restoration ⇒ Object
Restore faces
179 180 181 |
# File 'lib/stable_diffusion/models/options.rb', line 179 def face_restoration @face_restoration end |
#face_restoration_model ⇒ Object
Face restoration model
182 183 184 |
# File 'lib/stable_diffusion/models/options.rb', line 182 def face_restoration_model @face_restoration_model end |
#face_restoration_unload ⇒ Object
Move face restoration model from VRAM into RAM after processing
188 189 190 |
# File 'lib/stable_diffusion/models/options.rb', line 188 def face_restoration_unload @face_restoration_unload end |
#font ⇒ Object
Font for image grids that have text
53 54 55 |
# File 'lib/stable_diffusion/models/options.rb', line 53 def font @font end |
#gallery_height ⇒ Object
Gallery height
547 548 549 |
# File 'lib/stable_diffusion/models/options.rb', line 547 def gallery_height @gallery_height end |
#gradio_theme ⇒ Object
Gradio theme
589 590 591 |
# File 'lib/stable_diffusion/models/options.rb', line 589 def gradio_theme @gradio_theme end |
#gradio_themes_cache ⇒ Object
Cache gradio themes locally
592 593 594 |
# File 'lib/stable_diffusion/models/options.rb', line 592 def gradio_themes_cache @gradio_themes_cache end |
#grid_background_color ⇒ Object
Background color for image grids
62 63 64 |
# File 'lib/stable_diffusion/models/options.rb', line 62 def grid_background_color @grid_background_color end |
#grid_extended_filename ⇒ Object
Add extended info (seed, prompt) to filename when saving grid
38 39 40 |
# File 'lib/stable_diffusion/models/options.rb', line 38 def grid_extended_filename @grid_extended_filename end |
#grid_format ⇒ Object
File format for grids
35 36 37 |
# File 'lib/stable_diffusion/models/options.rb', line 35 def grid_format @grid_format end |
#grid_only_if_multiple ⇒ Object
Do not save grids consisting of one picture
41 42 43 |
# File 'lib/stable_diffusion/models/options.rb', line 41 def grid_only_if_multiple @grid_only_if_multiple end |
#grid_prevent_empty_spots ⇒ Object
Prevent empty spots in grid (when set to autodetect)
44 45 46 |
# File 'lib/stable_diffusion/models/options.rb', line 44 def grid_prevent_empty_spots @grid_prevent_empty_spots end |
#grid_save ⇒ Object
Always save all generated image grids
32 33 34 |
# File 'lib/stable_diffusion/models/options.rb', line 32 def grid_save @grid_save end |
#grid_save_to_dirs ⇒ Object
Save grids to a subdirectory
155 156 157 |
# File 'lib/stable_diffusion/models/options.rb', line 155 def grid_save_to_dirs @grid_save_to_dirs end |
#grid_text_active_color ⇒ Object
Text color for image grids
56 57 58 |
# File 'lib/stable_diffusion/models/options.rb', line 56 def grid_text_active_color @grid_text_active_color end |
#grid_text_inactive_color ⇒ Object
Inactive text color for image grids
59 60 61 |
# File 'lib/stable_diffusion/models/options.rb', line 59 def grid_text_inactive_color @grid_text_inactive_color end |
#grid_zip_filename_pattern ⇒ Object
Archive filename pattern
47 48 49 |
# File 'lib/stable_diffusion/models/options.rb', line 47 def grid_zip_filename_pattern @grid_zip_filename_pattern end |
#hidden_tabs ⇒ Object
Hidden UI tabs
583 584 585 |
# File 'lib/stable_diffusion/models/options.rb', line 583 def hidden_tabs @hidden_tabs end |
#hide_ldm_prints ⇒ Object
Prevent Stability-AI’s ldm/sgm modules from printing noise to console.
221 222 223 |
# File 'lib/stable_diffusion/models/options.rb', line 221 def hide_ldm_prints @hide_ldm_prints end |
#hide_samplers ⇒ Object
Hide samplers in user interface
672 673 674 |
# File 'lib/stable_diffusion/models/options.rb', line 672 def hide_samplers @hide_samplers end |
#hires_fix_refiner_pass ⇒ Object
Hires fix: which pass to enable refiner for
311 312 313 |
# File 'lib/stable_diffusion/models/options.rb', line 311 def hires_fix_refiner_pass @hires_fix_refiner_pass end |
#hires_fix_show_prompts ⇒ Object
Hires fix: show hires prompt and negative prompt
565 566 567 |
# File 'lib/stable_diffusion/models/options.rb', line 565 def hires_fix_show_prompts @hires_fix_show_prompts end |
#hires_fix_show_sampler ⇒ Object
Hires fix: show hires checkpoint and sampler selection
562 563 564 |
# File 'lib/stable_diffusion/models/options.rb', line 562 def hires_fix_show_sampler @hires_fix_show_sampler end |
#hires_fix_use_firstpass_conds ⇒ Object
For hires fix, calculate conds of second pass using extra networks of first pass.
424 425 426 |
# File 'lib/stable_diffusion/models/options.rb', line 424 def hires_fix_use_firstpass_conds @hires_fix_use_firstpass_conds end |
#img2img_background_color ⇒ Object
With img2img, fill transparent parts of the input image with this color.
361 362 363 |
# File 'lib/stable_diffusion/models/options.rb', line 361 def img2img_background_color @img2img_background_color end |
#img2img_batch_show_results_limit ⇒ Object
Show the first N batch img2img results in UI
382 383 384 |
# File 'lib/stable_diffusion/models/options.rb', line 382 def img2img_batch_show_results_limit @img2img_batch_show_results_limit end |
#img2img_color_correction ⇒ Object
Apply color correction to img2img results to match original colors.
355 356 357 |
# File 'lib/stable_diffusion/models/options.rb', line 355 def img2img_color_correction @img2img_color_correction end |
#img2img_editor_height ⇒ Object
Height of the image editor
364 365 366 |
# File 'lib/stable_diffusion/models/options.rb', line 364 def img2img_editor_height @img2img_editor_height end |
#img2img_extra_noise ⇒ Object
Extra noise multiplier for img2img and hires fix
352 353 354 |
# File 'lib/stable_diffusion/models/options.rb', line 352 def img2img_extra_noise @img2img_extra_noise end |
#img2img_fix_steps ⇒ Object
With img2img, do exactly the amount of steps the slider specifies.
358 359 360 |
# File 'lib/stable_diffusion/models/options.rb', line 358 def img2img_fix_steps @img2img_fix_steps end |
#img2img_inpaint_mask_brush_color ⇒ Object
Inpaint mask brush color
370 371 372 |
# File 'lib/stable_diffusion/models/options.rb', line 370 def img2img_inpaint_mask_brush_color @img2img_inpaint_mask_brush_color end |
#img2img_inpaint_sketch_default_brush_color ⇒ Object
Inpaint sketch initial brush color
373 374 375 |
# File 'lib/stable_diffusion/models/options.rb', line 373 def img2img_inpaint_sketch_default_brush_color @img2img_inpaint_sketch_default_brush_color end |
#img2img_settings_accordion ⇒ Object
Settings in img2img hidden under Accordion
571 572 573 |
# File 'lib/stable_diffusion/models/options.rb', line 571 def img2img_settings_accordion @img2img_settings_accordion end |
#img2img_sketch_default_brush_color ⇒ Object
Sketch initial brush color
367 368 369 |
# File 'lib/stable_diffusion/models/options.rb', line 367 def img2img_sketch_default_brush_color @img2img_sketch_default_brush_color end |
#img_downscale_threshold ⇒ Object
File size limit for the above option, MB
89 90 91 |
# File 'lib/stable_diffusion/models/options.rb', line 89 def img_downscale_threshold @img_downscale_threshold end |
#img_max_size_mp ⇒ Object
Maximum image size
95 96 97 |
# File 'lib/stable_diffusion/models/options.rb', line 95 def img_max_size_mp @img_max_size_mp end |
#infotext_explanation ⇒ Object
Returns the value of attribute infotext_explanation.
603 604 605 |
# File 'lib/stable_diffusion/models/options.rb', line 603 def infotext_explanation @infotext_explanation end |
#infotext_skip_pasting ⇒ Object
Disregard fields from pasted infotext
633 634 635 |
# File 'lib/stable_diffusion/models/options.rb', line 633 def infotext_skip_pasting @infotext_skip_pasting end |
#infotext_styles ⇒ Object
Infer styles from prompts of pasted infotext
636 637 638 |
# File 'lib/stable_diffusion/models/options.rb', line 636 def infotext_styles @infotext_styles end |
#initial_noise_multiplier ⇒ Object
Noise multiplier for img2img
349 350 351 |
# File 'lib/stable_diffusion/models/options.rb', line 349 def initial_noise_multiplier @initial_noise_multiplier end |
#inpainting_mask_weight ⇒ Object
Inpainting conditioning mask strength
346 347 348 |
# File 'lib/stable_diffusion/models/options.rb', line 346 def inpainting_mask_weight @inpainting_mask_weight end |
#interrogate_clip_dict_limit ⇒ Object
CLIP: maximum number of lines in text file
445 446 447 |
# File 'lib/stable_diffusion/models/options.rb', line 445 def interrogate_clip_dict_limit @interrogate_clip_dict_limit end |
#interrogate_clip_max_length ⇒ Object
BLIP: maximum description length
442 443 444 |
# File 'lib/stable_diffusion/models/options.rb', line 442 def interrogate_clip_max_length @interrogate_clip_max_length end |
#interrogate_clip_min_length ⇒ Object
BLIP: minimum description length
439 440 441 |
# File 'lib/stable_diffusion/models/options.rb', line 439 def interrogate_clip_min_length @interrogate_clip_min_length end |
#interrogate_clip_num_beams ⇒ Object
BLIP: num_beams
436 437 438 |
# File 'lib/stable_diffusion/models/options.rb', line 436 def interrogate_clip_num_beams @interrogate_clip_num_beams end |
#interrogate_clip_skip_categories ⇒ Object
CLIP: skip inquire categories
448 449 450 |
# File 'lib/stable_diffusion/models/options.rb', line 448 def interrogate_clip_skip_categories @interrogate_clip_skip_categories end |
#interrogate_deepbooru_score_threshold ⇒ Object
deepbooru: score threshold
451 452 453 |
# File 'lib/stable_diffusion/models/options.rb', line 451 def interrogate_deepbooru_score_threshold @interrogate_deepbooru_score_threshold end |
#interrogate_keep_models_in_memory ⇒ Object
Keep models in VRAM
430 431 432 |
# File 'lib/stable_diffusion/models/options.rb', line 430 def interrogate_keep_models_in_memory @interrogate_keep_models_in_memory end |
#interrogate_return_ranks ⇒ Object
Include ranks of model tags matches in results.
433 434 435 |
# File 'lib/stable_diffusion/models/options.rb', line 433 def interrogate_return_ranks @interrogate_return_ranks end |
#jpeg_quality ⇒ Object
Quality for saved jpeg images
80 81 82 |
# File 'lib/stable_diffusion/models/options.rb', line 80 def jpeg_quality @jpeg_quality end |
#js_live_preview_in_modal_lightbox ⇒ Object
Show Live preview in full page image viewer
669 670 671 |
# File 'lib/stable_diffusion/models/options.rb', line 669 def js_live_preview_in_modal_lightbox @js_live_preview_in_modal_lightbox end |
#js_modal_lightbox ⇒ Object
Full page image viewer: enable
535 536 537 |
# File 'lib/stable_diffusion/models/options.rb', line 535 def js_modal_lightbox @js_modal_lightbox end |
#js_modal_lightbox_gamepad ⇒ Object
Full page image viewer: navigate with gamepad
541 542 543 |
# File 'lib/stable_diffusion/models/options.rb', line 541 def js_modal_lightbox_gamepad @js_modal_lightbox_gamepad end |
#js_modal_lightbox_gamepad_repeat ⇒ Object
Full page image viewer: gamepad repeat period
544 545 546 |
# File 'lib/stable_diffusion/models/options.rb', line 544 def js_modal_lightbox_gamepad_repeat @js_modal_lightbox_gamepad_repeat end |
#js_modal_lightbox_initially_zoomed ⇒ Object
Full page image viewer: show images zoomed in by default
538 539 540 |
# File 'lib/stable_diffusion/models/options.rb', line 538 def js_modal_lightbox_initially_zoomed @js_modal_lightbox_initially_zoomed end |
#k_sched_type ⇒ Object
Scheduler type
696 697 698 |
# File 'lib/stable_diffusion/models/options.rb', line 696 def k_sched_type @k_sched_type end |
#keyedit_delimiters ⇒ Object
Word delimiters when editing the prompt with Ctrl+up/down
517 518 519 |
# File 'lib/stable_diffusion/models/options.rb', line 517 def keyedit_delimiters @keyedit_delimiters end |
#keyedit_delimiters_whitespace ⇒ Object
Ctrl+up/down whitespace delimiters
520 521 522 |
# File 'lib/stable_diffusion/models/options.rb', line 520 def keyedit_delimiters_whitespace @keyedit_delimiters_whitespace end |
#keyedit_move ⇒ Object
Alt+left/right moves prompt elements
523 524 525 |
# File 'lib/stable_diffusion/models/options.rb', line 523 def keyedit_move @keyedit_move end |
#keyedit_precision_attention ⇒ Object
Precision for (attention:1.1) when editing the prompt with Ctrl+up/down
511 512 513 |
# File 'lib/stable_diffusion/models/options.rb', line 511 def keyedit_precision_attention @keyedit_precision_attention end |
#keyedit_precision_extra ⇒ Object
Precision for <extra networks:0.9> when editing the prompt with Ctrl+up/down
514 515 516 |
# File 'lib/stable_diffusion/models/options.rb', line 514 def keyedit_precision_extra @keyedit_precision_extra end |
#list_hidden_files ⇒ Object
Load models/files in hidden directories
215 216 217 |
# File 'lib/stable_diffusion/models/options.rb', line 215 def list_hidden_files @list_hidden_files end |
#live_preview_allow_lowvram_full ⇒ Object
Allow Full live preview method with lowvram/medvram
657 658 659 |
# File 'lib/stable_diffusion/models/options.rb', line 657 def live_preview_allow_lowvram_full @live_preview_allow_lowvram_full end |
#live_preview_content ⇒ Object
Live preview subject
660 661 662 |
# File 'lib/stable_diffusion/models/options.rb', line 660 def live_preview_content @live_preview_content end |
#live_preview_fast_interrupt ⇒ Object
Return image with chosen live preview method on interrupt
666 667 668 |
# File 'lib/stable_diffusion/models/options.rb', line 666 def live_preview_fast_interrupt @live_preview_fast_interrupt end |
#live_preview_refresh_period ⇒ Object
Progressbar and preview update period
663 664 665 |
# File 'lib/stable_diffusion/models/options.rb', line 663 def live_preview_refresh_period @live_preview_refresh_period end |
#live_previews_enable ⇒ Object
Show live previews of the created image
642 643 644 |
# File 'lib/stable_diffusion/models/options.rb', line 642 def live_previews_enable @live_previews_enable end |
#live_previews_image_format ⇒ Object
Live preview file format
645 646 647 |
# File 'lib/stable_diffusion/models/options.rb', line 645 def live_previews_image_format @live_previews_image_format end |
#localization ⇒ Object
Localization
574 575 576 |
# File 'lib/stable_diffusion/models/options.rb', line 574 def localization @localization end |
#lora_add_hashes_to_infotext ⇒ Object
Add Lora hashes to infotext
759 760 761 |
# File 'lib/stable_diffusion/models/options.rb', line 759 def lora_add_hashes_to_infotext @lora_add_hashes_to_infotext end |
#lora_functional ⇒ Object
Lora/Networks: use old method that takes longer when you have multiple Loras active and produces same results as kohya-ss/sd-webui-additional-networks extension
771 772 773 |
# File 'lib/stable_diffusion/models/options.rb', line 771 def lora_functional @lora_functional end |
#lora_hide_unknown_for_versions ⇒ Object
Hide networks of unknown versions for model versions
765 766 767 |
# File 'lib/stable_diffusion/models/options.rb', line 765 def lora_hide_unknown_for_versions @lora_hide_unknown_for_versions end |
#lora_in_memory_limit ⇒ Object
Number of Lora networks to keep cached in memory
768 769 770 |
# File 'lib/stable_diffusion/models/options.rb', line 768 def lora_in_memory_limit @lora_in_memory_limit end |
#lora_preferred_name ⇒ Object
When adding to prompt, refer to Lora by
756 757 758 |
# File 'lib/stable_diffusion/models/options.rb', line 756 def lora_preferred_name @lora_preferred_name end |
#lora_show_all ⇒ Object
Always show all networks on the Lora page
762 763 764 |
# File 'lib/stable_diffusion/models/options.rb', line 762 def lora_show_all @lora_show_all end |
#memmon_poll_rate ⇒ Object
VRAM usage polls per second during generation.
203 204 205 |
# File 'lib/stable_diffusion/models/options.rb', line 203 def memmon_poll_rate @memmon_poll_rate end |
#multiple_tqdm ⇒ Object
Add a second progress bar to the console that shows progress for an entire job.
209 210 211 |
# File 'lib/stable_diffusion/models/options.rb', line 209 def multiple_tqdm @multiple_tqdm end |
#n_rows ⇒ Object
Grid row count; use -1 for autodetect and 0 for it to be same as batch size
50 51 52 |
# File 'lib/stable_diffusion/models/options.rb', line 50 def n_rows @n_rows end |
#no_dpmpp_sde_batch_determinism ⇒ Object
Do not make DPM++ SDE deterministic across different batch sizes.
415 416 417 |
# File 'lib/stable_diffusion/models/options.rb', line 415 def no_dpmpp_sde_batch_determinism @no_dpmpp_sde_batch_determinism end |
#notification_audio ⇒ Object
Play notification sound after image generation
119 120 121 |
# File 'lib/stable_diffusion/models/options.rb', line 119 def notification_audio @notification_audio end |
#notification_volume ⇒ Object
Notification sound volume
122 123 124 |
# File 'lib/stable_diffusion/models/options.rb', line 122 def notification_volume @notification_volume end |
#outdir_extras_samples ⇒ Object
Output directory for images from extras tab
134 135 136 |
# File 'lib/stable_diffusion/models/options.rb', line 134 def outdir_extras_samples @outdir_extras_samples end |
#outdir_grids ⇒ Object
Output directory for grids; if empty, defaults to two directories below
137 138 139 |
# File 'lib/stable_diffusion/models/options.rb', line 137 def outdir_grids @outdir_grids end |
#outdir_img2img_grids ⇒ Object
Output directory for img2img grids
143 144 145 |
# File 'lib/stable_diffusion/models/options.rb', line 143 def outdir_img2img_grids @outdir_img2img_grids end |
#outdir_img2img_samples ⇒ Object
Output directory for img2img images
131 132 133 |
# File 'lib/stable_diffusion/models/options.rb', line 131 def outdir_img2img_samples @outdir_img2img_samples end |
#outdir_init_images ⇒ Object
Directory for saving init images when using img2img
149 150 151 |
# File 'lib/stable_diffusion/models/options.rb', line 149 def outdir_init_images @outdir_init_images end |
#outdir_samples ⇒ Object
Output directory for images; if empty, defaults to three directories below
125 126 127 |
# File 'lib/stable_diffusion/models/options.rb', line 125 def outdir_samples @outdir_samples end |
#outdir_save ⇒ Object
Directory for saving images using the Save button
146 147 148 |
# File 'lib/stable_diffusion/models/options.rb', line 146 def outdir_save @outdir_save end |
#outdir_txt2img_grids ⇒ Object
Output directory for txt2img grids
140 141 142 |
# File 'lib/stable_diffusion/models/options.rb', line 140 def outdir_txt2img_grids @outdir_txt2img_grids end |
#outdir_txt2img_samples ⇒ Object
Output directory for txt2img images
128 129 130 |
# File 'lib/stable_diffusion/models/options.rb', line 128 def outdir_txt2img_samples @outdir_txt2img_samples end |
#pad_cond_uncond ⇒ Object
Pad prompt/negative prompt to be same length
400 401 402 |
# File 'lib/stable_diffusion/models/options.rb', line 400 def pad_cond_uncond @pad_cond_uncond end |
#persistent_cond_cache ⇒ Object
Persistent cond cache
403 404 405 |
# File 'lib/stable_diffusion/models/options.rb', line 403 def persistent_cond_cache @persistent_cond_cache end |
#pin_memory ⇒ Object
Turn on pin_memory for DataLoader. Makes training slightly faster but can increase memory usage.
239 240 241 |
# File 'lib/stable_diffusion/models/options.rb', line 239 def pin_memory @pin_memory end |
#postprocessing_enable_in_main_ui ⇒ Object
Enable postprocessing operations in txt2img and img2img tabs
729 730 731 |
# File 'lib/stable_diffusion/models/options.rb', line 729 def postprocessing_enable_in_main_ui @postprocessing_enable_in_main_ui end |
#postprocessing_existing_caption_action ⇒ Object
Action for existing captions
738 739 740 |
# File 'lib/stable_diffusion/models/options.rb', line 738 def @postprocessing_existing_caption_action end |
#postprocessing_operation_order ⇒ Object
Postprocessing operation order
732 733 734 |
# File 'lib/stable_diffusion/models/options.rb', line 732 def postprocessing_operation_order @postprocessing_operation_order end |
#print_hypernet_extra ⇒ Object
Print extra hypernetwork information to console.
212 213 214 |
# File 'lib/stable_diffusion/models/options.rb', line 212 def print_hypernet_extra @print_hypernet_extra end |
#quicksettings_list ⇒ Object
Quicksettings list
577 578 579 |
# File 'lib/stable_diffusion/models/options.rb', line 577 def quicksettings_list @quicksettings_list end |
#randn_source ⇒ Object
Random number generator source.
305 306 307 |
# File 'lib/stable_diffusion/models/options.rb', line 305 def randn_source @randn_source end |
#realesrgan_enabled_models ⇒ Object
Select which Real-ESRGAN models to show in the web UI.
173 174 175 |
# File 'lib/stable_diffusion/models/options.rb', line 173 def realesrgan_enabled_models @realesrgan_enabled_models end |
#restore_config_state_file ⇒ Object
Config state file to restore from, under ‘config-states/’ folder
747 748 749 |
# File 'lib/stable_diffusion/models/options.rb', line 747 def restore_config_state_file @restore_config_state_file end |
#return_grid ⇒ Object
Show grid in gallery
529 530 531 |
# File 'lib/stable_diffusion/models/options.rb', line 529 def return_grid @return_grid end |
#return_mask ⇒ Object
For inpainting, include the greyscale mask in results for web
376 377 378 |
# File 'lib/stable_diffusion/models/options.rb', line 376 def return_mask @return_mask end |
#return_mask_composite ⇒ Object
For inpainting, include masked composite in results for web
379 380 381 |
# File 'lib/stable_diffusion/models/options.rb', line 379 def return_mask_composite @return_mask_composite end |
#rho ⇒ Object
rho
705 706 707 |
# File 'lib/stable_diffusion/models/options.rb', line 705 def rho @rho end |
#s_churn ⇒ Object
sigma churn
684 685 686 |
# File 'lib/stable_diffusion/models/options.rb', line 684 def s_churn @s_churn end |
#s_min_uncond ⇒ Object
Negative Guidance minimum sigma
388 389 390 |
# File 'lib/stable_diffusion/models/options.rb', line 388 def s_min_uncond @s_min_uncond end |
#s_noise ⇒ Object
sigma noise
693 694 695 |
# File 'lib/stable_diffusion/models/options.rb', line 693 def s_noise @s_noise end |
#s_tmax ⇒ Object
sigma tmax
690 691 692 |
# File 'lib/stable_diffusion/models/options.rb', line 690 def s_tmax @s_tmax end |
#s_tmin ⇒ Object
sigma tmin
687 688 689 |
# File 'lib/stable_diffusion/models/options.rb', line 687 def s_tmin @s_tmin end |
#samplers_in_dropdown ⇒ Object
Use dropdown for sampler selection instead of radio group
553 554 555 |
# File 'lib/stable_diffusion/models/options.rb', line 553 def samplers_in_dropdown @samplers_in_dropdown end |
#samples_filename_pattern ⇒ Object
Images filename pattern
23 24 25 |
# File 'lib/stable_diffusion/models/options.rb', line 23 def samples_filename_pattern @samples_filename_pattern end |
#samples_format ⇒ Object
File format for images
20 21 22 |
# File 'lib/stable_diffusion/models/options.rb', line 20 def samples_format @samples_format end |
#samples_log_stdout ⇒ Object
Always print all generation info to standard output
206 207 208 |
# File 'lib/stable_diffusion/models/options.rb', line 206 def samples_log_stdout @samples_log_stdout end |
#samples_save ⇒ Object
Always save all generated images
17 18 19 |
# File 'lib/stable_diffusion/models/options.rb', line 17 def samples_save @samples_save end |
#save_images_add_number ⇒ Object
Add number to filename when saving
26 27 28 |
# File 'lib/stable_diffusion/models/options.rb', line 26 def save_images_add_number @save_images_add_number end |
#save_images_before_color_correction ⇒ Object
Save a copy of image before applying color correction to img2img results
71 72 73 |
# File 'lib/stable_diffusion/models/options.rb', line 71 def save_images_before_color_correction @save_images_before_color_correction end |
#save_images_before_face_restoration ⇒ Object
Save a copy of image before doing face restoration.
65 66 67 |
# File 'lib/stable_diffusion/models/options.rb', line 65 def save_images_before_face_restoration @save_images_before_face_restoration end |
#save_images_before_highres_fix ⇒ Object
Save a copy of image before applying highres fix.
68 69 70 |
# File 'lib/stable_diffusion/models/options.rb', line 68 def save_images_before_highres_fix @save_images_before_highres_fix end |
#save_images_replace_action ⇒ Object
Saving the image to an existing file
29 30 31 |
# File 'lib/stable_diffusion/models/options.rb', line 29 def save_images_replace_action @save_images_replace_action end |
#save_incomplete_images ⇒ Object
Save incomplete images
116 117 118 |
# File 'lib/stable_diffusion/models/options.rb', line 116 def save_incomplete_images @save_incomplete_images end |
#save_init_img ⇒ Object
Save init images when using img2img
107 108 109 |
# File 'lib/stable_diffusion/models/options.rb', line 107 def save_init_img @save_init_img end |
#save_mask ⇒ Object
For inpainting, save a copy of the greyscale mask
74 75 76 |
# File 'lib/stable_diffusion/models/options.rb', line 74 def save_mask @save_mask end |
#save_mask_composite ⇒ Object
For inpainting, save a masked composite
77 78 79 |
# File 'lib/stable_diffusion/models/options.rb', line 77 def save_mask_composite @save_mask_composite end |
#save_optimizer_state ⇒ Object
Saves Optimizer state as separate *.optim file. Training of embedding or HN can be resumed with the matching optim file.
242 243 244 |
# File 'lib/stable_diffusion/models/options.rb', line 242 def save_optimizer_state @save_optimizer_state end |
#save_selected_only ⇒ Object
When using ‘Save’ button, only save a single selected image
104 105 106 |
# File 'lib/stable_diffusion/models/options.rb', line 104 def save_selected_only @save_selected_only end |
#save_to_dirs ⇒ Object
Save images to a subdirectory
152 153 154 |
# File 'lib/stable_diffusion/models/options.rb', line 152 def save_to_dirs @save_to_dirs end |
#save_training_settings_to_txt ⇒ Object
Save textual inversion and hypernet settings to a text file whenever training starts.
245 246 247 |
# File 'lib/stable_diffusion/models/options.rb', line 245 def save_training_settings_to_txt @save_training_settings_to_txt end |
#save_txt ⇒ Object
Create a text file with infotext next to every generated image
609 610 611 |
# File 'lib/stable_diffusion/models/options.rb', line 609 def save_txt @save_txt end |
#sd_checkpoint_cache ⇒ Object
Checkpoints to cache in RAM
281 282 283 |
# File 'lib/stable_diffusion/models/options.rb', line 281 def sd_checkpoint_cache @sd_checkpoint_cache end |
#sd_checkpoint_dropdown_use_short ⇒ Object
Checkpoint dropdown: use filenames without paths
559 560 561 |
# File 'lib/stable_diffusion/models/options.rb', line 559 def sd_checkpoint_dropdown_use_short @sd_checkpoint_dropdown_use_short end |
#sd_checkpoint_hash ⇒ Object
SHA256 hash of the current checkpoint
750 751 752 |
# File 'lib/stable_diffusion/models/options.rb', line 750 def sd_checkpoint_hash @sd_checkpoint_hash end |
#sd_checkpoints_keep_in_cpu ⇒ Object
Only keep one model on device
278 279 280 |
# File 'lib/stable_diffusion/models/options.rb', line 278 def sd_checkpoints_keep_in_cpu @sd_checkpoints_keep_in_cpu end |
#sd_checkpoints_limit ⇒ Object
Maximum number of checkpoints loaded at the same time
275 276 277 |
# File 'lib/stable_diffusion/models/options.rb', line 275 def sd_checkpoints_limit @sd_checkpoints_limit end |
#sd_hypernetwork ⇒ Object
Add hypernetwork to prompt
508 509 510 |
# File 'lib/stable_diffusion/models/options.rb', line 508 def sd_hypernetwork @sd_hypernetwork end |
#sd_lora ⇒ Object
Add network to prompt
753 754 755 |
# File 'lib/stable_diffusion/models/options.rb', line 753 def sd_lora @sd_lora end |
#sd_model_checkpoint ⇒ Object
Stable Diffusion checkpoint
272 273 274 |
# File 'lib/stable_diffusion/models/options.rb', line 272 def sd_model_checkpoint @sd_model_checkpoint end |
#sd_unet ⇒ Object
SD Unet
284 285 286 |
# File 'lib/stable_diffusion/models/options.rb', line 284 def sd_unet @sd_unet end |
#sd_vae ⇒ Object
SD VAE
331 332 333 |
# File 'lib/stable_diffusion/models/options.rb', line 331 def sd_vae @sd_vae end |
#sd_vae_checkpoint_cache ⇒ Object
VAE Checkpoints to cache in RAM
328 329 330 |
# File 'lib/stable_diffusion/models/options.rb', line 328 def sd_vae_checkpoint_cache @sd_vae_checkpoint_cache end |
#sd_vae_decode_method ⇒ Object
VAE type for decode
343 344 345 |
# File 'lib/stable_diffusion/models/options.rb', line 343 def sd_vae_decode_method @sd_vae_decode_method end |
#sd_vae_encode_method ⇒ Object
VAE type for encode
340 341 342 |
# File 'lib/stable_diffusion/models/options.rb', line 340 def sd_vae_encode_method @sd_vae_encode_method end |
#sd_vae_explanation ⇒ Object
Returns the value of attribute sd_vae_explanation.
325 326 327 |
# File 'lib/stable_diffusion/models/options.rb', line 325 def sd_vae_explanation @sd_vae_explanation end |
#sd_vae_overrides_per_model_preferences ⇒ Object
Selected VAE overrides per-model preferences
334 335 336 |
# File 'lib/stable_diffusion/models/options.rb', line 334 def sd_vae_overrides_per_model_preferences @sd_vae_overrides_per_model_preferences end |
#sdxl_crop_left ⇒ Object
crop left coordinate
317 318 319 |
# File 'lib/stable_diffusion/models/options.rb', line 317 def sdxl_crop_left @sdxl_crop_left end |
#sdxl_crop_top ⇒ Object
crop top coordinate
314 315 316 |
# File 'lib/stable_diffusion/models/options.rb', line 314 def sdxl_crop_top @sdxl_crop_top end |
#sdxl_refiner_high_aesthetic_score ⇒ Object
SDXL high aesthetic score
323 324 325 |
# File 'lib/stable_diffusion/models/options.rb', line 323 def sdxl_refiner_high_aesthetic_score @sdxl_refiner_high_aesthetic_score end |
#sdxl_refiner_low_aesthetic_score ⇒ Object
SDXL low aesthetic score
320 321 322 |
# File 'lib/stable_diffusion/models/options.rb', line 320 def sdxl_refiner_low_aesthetic_score @sdxl_refiner_low_aesthetic_score end |
#send_seed ⇒ Object
Send seed when sending prompt or image to other interface
598 599 600 |
# File 'lib/stable_diffusion/models/options.rb', line 598 def send_seed @send_seed end |
#send_size ⇒ Object
Send size when sending prompt or image to another interface
601 602 603 |
# File 'lib/stable_diffusion/models/options.rb', line 601 def send_size @send_size end |
#settings_in_ui ⇒ Object
Returns the value of attribute settings_in_ui.
803 804 805 |
# File 'lib/stable_diffusion/models/options.rb', line 803 def settings_in_ui @settings_in_ui end |
#sgm_noise_multiplier ⇒ Object
SGM noise multiplier
714 715 716 |
# File 'lib/stable_diffusion/models/options.rb', line 714 def sgm_noise_multiplier @sgm_noise_multiplier end |
#show_gradio_deprecation_warnings ⇒ Object
Show gradio deprecation warnings in console.
200 201 202 |
# File 'lib/stable_diffusion/models/options.rb', line 200 def show_gradio_deprecation_warnings @show_gradio_deprecation_warnings end |
#show_progress_every_n_steps ⇒ Object
Live preview display period
651 652 653 |
# File 'lib/stable_diffusion/models/options.rb', line 651 def show_progress_every_n_steps @show_progress_every_n_steps end |
#show_progress_grid ⇒ Object
Show previews of all images generated in a batch as a grid
648 649 650 |
# File 'lib/stable_diffusion/models/options.rb', line 648 def show_progress_grid @show_progress_grid end |
#show_progress_in_title ⇒ Object
Show generation progress in window title.
595 596 597 |
# File 'lib/stable_diffusion/models/options.rb', line 595 def show_progress_in_title @show_progress_in_title end |
#show_progress_type ⇒ Object
Live preview method
654 655 656 |
# File 'lib/stable_diffusion/models/options.rb', line 654 def show_progress_type @show_progress_type end |
#show_progressbar ⇒ Object
Show progressbar
639 640 641 |
# File 'lib/stable_diffusion/models/options.rb', line 639 def @show_progressbar end |
#show_warnings ⇒ Object
Show warnings in console.
197 198 199 |
# File 'lib/stable_diffusion/models/options.rb', line 197 def show_warnings @show_warnings end |
#sigma_max ⇒ Object
sigma max
702 703 704 |
# File 'lib/stable_diffusion/models/options.rb', line 702 def sigma_max @sigma_max end |
#sigma_min ⇒ Object
sigma min
699 700 701 |
# File 'lib/stable_diffusion/models/options.rb', line 699 def sigma_min @sigma_min end |
#target_side_length ⇒ Object
Width/height limit for the above option, in pixels
92 93 94 |
# File 'lib/stable_diffusion/models/options.rb', line 92 def target_side_length @target_side_length end |
#temp_dir ⇒ Object
Directory for temporary images; leave empty for default
110 111 112 |
# File 'lib/stable_diffusion/models/options.rb', line 110 def temp_dir @temp_dir end |
#textual_inversion_add_hashes_to_infotext ⇒ Object
Add Textual Inversion hashes to infotext
505 506 507 |
# File 'lib/stable_diffusion/models/options.rb', line 505 def textual_inversion_add_hashes_to_infotext @textual_inversion_add_hashes_to_infotext end |
#textual_inversion_print_at_load ⇒ Object
Print a list of Textual Inversion embeddings when loading model
502 503 504 |
# File 'lib/stable_diffusion/models/options.rb', line 502 def textual_inversion_print_at_load @textual_inversion_print_at_load end |
#tiling ⇒ Object
Tiling
308 309 310 |
# File 'lib/stable_diffusion/models/options.rb', line 308 def tiling @tiling end |
#token_merging_ratio ⇒ Object
Token merging ratio
391 392 393 |
# File 'lib/stable_diffusion/models/options.rb', line 391 def token_merging_ratio @token_merging_ratio end |
#token_merging_ratio_hr ⇒ Object
Token merging ratio for high-res pass
397 398 399 |
# File 'lib/stable_diffusion/models/options.rb', line 397 def token_merging_ratio_hr @token_merging_ratio_hr end |
#token_merging_ratio_img2img ⇒ Object
Token merging ratio for img2img
394 395 396 |
# File 'lib/stable_diffusion/models/options.rb', line 394 def token_merging_ratio_img2img @token_merging_ratio_img2img end |
#training_enable_tensorboard ⇒ Object
Enable tensorboard logging.
263 264 265 |
# File 'lib/stable_diffusion/models/options.rb', line 263 def training_enable_tensorboard @training_enable_tensorboard end |
#training_image_repeats_per_epoch ⇒ Object
Number of repeats for a single input image per epoch; used only for displaying epoch number
254 255 256 |
# File 'lib/stable_diffusion/models/options.rb', line 254 def training_image_repeats_per_epoch @training_image_repeats_per_epoch end |
#training_tensorboard_flush_every ⇒ Object
How often, in seconds, to flush the pending tensorboard events and summaries to disk.
269 270 271 |
# File 'lib/stable_diffusion/models/options.rb', line 269 def training_tensorboard_flush_every @training_tensorboard_flush_every end |
#training_tensorboard_save_images ⇒ Object
Save generated images within tensorboard.
266 267 268 |
# File 'lib/stable_diffusion/models/options.rb', line 266 def training_tensorboard_save_images @training_tensorboard_save_images end |
#training_write_csv_every ⇒ Object
Save an csv containing the loss to log directory every N steps, 0 to disable
257 258 259 |
# File 'lib/stable_diffusion/models/options.rb', line 257 def training_write_csv_every @training_write_csv_every end |
#training_xattention_optimizations ⇒ Object
Use cross attention optimizations while training
260 261 262 |
# File 'lib/stable_diffusion/models/options.rb', line 260 def training_xattention_optimizations @training_xattention_optimizations end |
#txt2img_settings_accordion ⇒ Object
Settings in txt2img hidden under Accordion
568 569 570 |
# File 'lib/stable_diffusion/models/options.rb', line 568 def txt2img_settings_accordion @txt2img_settings_accordion end |
#ui_extra_networks_tab_reorder ⇒ Object
Extra networks tab order
499 500 501 |
# File 'lib/stable_diffusion/models/options.rb', line 499 def ui_extra_networks_tab_reorder @ui_extra_networks_tab_reorder end |
#ui_reorder_list ⇒ Object
UI item order for txt2img/img2img tabs
586 587 588 |
# File 'lib/stable_diffusion/models/options.rb', line 586 def ui_reorder_list @ui_reorder_list end |
#ui_tab_order ⇒ Object
UI tab order
580 581 582 |
# File 'lib/stable_diffusion/models/options.rb', line 580 def ui_tab_order @ui_tab_order end |
#uni_pc_lower_order_final ⇒ Object
UniPC lower order final
726 727 728 |
# File 'lib/stable_diffusion/models/options.rb', line 726 def uni_pc_lower_order_final @uni_pc_lower_order_final end |
#uni_pc_order ⇒ Object
UniPC order
723 724 725 |
# File 'lib/stable_diffusion/models/options.rb', line 723 def uni_pc_order @uni_pc_order end |
#uni_pc_skip_type ⇒ Object
UniPC skip type
720 721 722 |
# File 'lib/stable_diffusion/models/options.rb', line 720 def uni_pc_skip_type @uni_pc_skip_type end |
#uni_pc_variant ⇒ Object
UniPC variant
717 718 719 |
# File 'lib/stable_diffusion/models/options.rb', line 717 def uni_pc_variant @uni_pc_variant end |
#unload_models_when_training ⇒ Object
Move VAE and CLIP to RAM when training if possible. Saves VRAM.
236 237 238 |
# File 'lib/stable_diffusion/models/options.rb', line 236 def unload_models_when_training @unload_models_when_training end |
#upcast_attn ⇒ Object
Upcast cross attention layer to float32
302 303 304 |
# File 'lib/stable_diffusion/models/options.rb', line 302 def upcast_attn @upcast_attn end |
#upscaler_for_img2img ⇒ Object
Upscaler for img2img
176 177 178 |
# File 'lib/stable_diffusion/models/options.rb', line 176 def upscaler_for_img2img @upscaler_for_img2img end |
#upscaling_max_images_in_cache ⇒ Object
Maximum number of images in upscaling cache
735 736 737 |
# File 'lib/stable_diffusion/models/options.rb', line 735 def upscaling_max_images_in_cache @upscaling_max_images_in_cache end |
#use_old_emphasis_implementation ⇒ Object
Use old emphasis implementation. Can be useful to reproduce old seeds.
409 410 411 |
# File 'lib/stable_diffusion/models/options.rb', line 409 def use_old_emphasis_implementation @use_old_emphasis_implementation end |
#use_old_hires_fix_width_height ⇒ Object
For hires fix, use width/height sliders to set final resolution rather than first pass (disables Upscale by, Resize width/height to).
418 419 420 |
# File 'lib/stable_diffusion/models/options.rb', line 418 def use_old_hires_fix_width_height @use_old_hires_fix_width_height end |
#use_old_karras_scheduler_sigmas ⇒ Object
Use old karras scheduler sigmas (0.1 to 10).
412 413 414 |
# File 'lib/stable_diffusion/models/options.rb', line 412 def use_old_karras_scheduler_sigmas @use_old_karras_scheduler_sigmas end |
#use_old_scheduling ⇒ Object
Use old prompt editing timelines.
427 428 429 |
# File 'lib/stable_diffusion/models/options.rb', line 427 def use_old_scheduling @use_old_scheduling end |
#use_original_name_batch ⇒ Object
Use original name for output filename during batch process in extras tab
98 99 100 |
# File 'lib/stable_diffusion/models/options.rb', line 98 def use_original_name_batch @use_original_name_batch end |
#use_save_to_dirs_for_ui ⇒ Object
When using "Save" button, save images to a subdirectory
158 159 160 |
# File 'lib/stable_diffusion/models/options.rb', line 158 def use_save_to_dirs_for_ui @use_save_to_dirs_for_ui end |
#use_upscaler_name_as_suffix ⇒ Object
Use upscaler name as filename suffix in the extras tab
101 102 103 |
# File 'lib/stable_diffusion/models/options.rb', line 101 def use_upscaler_name_as_suffix @use_upscaler_name_as_suffix end |
#webp_lossless ⇒ Object
Use lossless compression for webp images
83 84 85 |
# File 'lib/stable_diffusion/models/options.rb', line 83 def webp_lossless @webp_lossless end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 |
# File 'lib/stable_diffusion/models/options.rb', line 818 def self.attribute_map { :'samples_save' => :'samples_save', :'samples_format' => :'samples_format', :'samples_filename_pattern' => :'samples_filename_pattern', :'save_images_add_number' => :'save_images_add_number', :'save_images_replace_action' => :'save_images_replace_action', :'grid_save' => :'grid_save', :'grid_format' => :'grid_format', :'grid_extended_filename' => :'grid_extended_filename', :'grid_only_if_multiple' => :'grid_only_if_multiple', :'grid_prevent_empty_spots' => :'grid_prevent_empty_spots', :'grid_zip_filename_pattern' => :'grid_zip_filename_pattern', :'n_rows' => :'n_rows', :'font' => :'font', :'grid_text_active_color' => :'grid_text_active_color', :'grid_text_inactive_color' => :'grid_text_inactive_color', :'grid_background_color' => :'grid_background_color', :'save_images_before_face_restoration' => :'save_images_before_face_restoration', :'save_images_before_highres_fix' => :'save_images_before_highres_fix', :'save_images_before_color_correction' => :'save_images_before_color_correction', :'save_mask' => :'save_mask', :'save_mask_composite' => :'save_mask_composite', :'jpeg_quality' => :'jpeg_quality', :'webp_lossless' => :'webp_lossless', :'export_for_4chan' => :'export_for_4chan', :'img_downscale_threshold' => :'img_downscale_threshold', :'target_side_length' => :'target_side_length', :'img_max_size_mp' => :'img_max_size_mp', :'use_original_name_batch' => :'use_original_name_batch', :'use_upscaler_name_as_suffix' => :'use_upscaler_name_as_suffix', :'save_selected_only' => :'save_selected_only', :'save_init_img' => :'save_init_img', :'temp_dir' => :'temp_dir', :'clean_temp_dir_at_start' => :'clean_temp_dir_at_start', :'save_incomplete_images' => :'save_incomplete_images', :'notification_audio' => :'notification_audio', :'notification_volume' => :'notification_volume', :'outdir_samples' => :'outdir_samples', :'outdir_txt2img_samples' => :'outdir_txt2img_samples', :'outdir_img2img_samples' => :'outdir_img2img_samples', :'outdir_extras_samples' => :'outdir_extras_samples', :'outdir_grids' => :'outdir_grids', :'outdir_txt2img_grids' => :'outdir_txt2img_grids', :'outdir_img2img_grids' => :'outdir_img2img_grids', :'outdir_save' => :'outdir_save', :'outdir_init_images' => :'outdir_init_images', :'save_to_dirs' => :'save_to_dirs', :'grid_save_to_dirs' => :'grid_save_to_dirs', :'use_save_to_dirs_for_ui' => :'use_save_to_dirs_for_ui', :'directories_filename_pattern' => :'directories_filename_pattern', :'directories_max_prompt_words' => :'directories_max_prompt_words', :'esrgan_tile' => :'ESRGAN_tile', :'esrgan_tile_overlap' => :'ESRGAN_tile_overlap', :'realesrgan_enabled_models' => :'realesrgan_enabled_models', :'upscaler_for_img2img' => :'upscaler_for_img2img', :'face_restoration' => :'face_restoration', :'face_restoration_model' => :'face_restoration_model', :'code_former_weight' => :'code_former_weight', :'face_restoration_unload' => :'face_restoration_unload', :'auto_launch_browser' => :'auto_launch_browser', :'enable_console_prompts' => :'enable_console_prompts', :'show_warnings' => :'show_warnings', :'show_gradio_deprecation_warnings' => :'show_gradio_deprecation_warnings', :'memmon_poll_rate' => :'memmon_poll_rate', :'samples_log_stdout' => :'samples_log_stdout', :'multiple_tqdm' => :'multiple_tqdm', :'print_hypernet_extra' => :'print_hypernet_extra', :'list_hidden_files' => :'list_hidden_files', :'disable_mmap_load_safetensors' => :'disable_mmap_load_safetensors', :'hide_ldm_prints' => :'hide_ldm_prints', :'dump_stacks_on_signal' => :'dump_stacks_on_signal', :'api_enable_requests' => :'api_enable_requests', :'api_forbid_local_requests' => :'api_forbid_local_requests', :'api_useragent' => :'api_useragent', :'unload_models_when_training' => :'unload_models_when_training', :'pin_memory' => :'pin_memory', :'save_optimizer_state' => :'save_optimizer_state', :'save_training_settings_to_txt' => :'save_training_settings_to_txt', :'dataset_filename_word_regex' => :'dataset_filename_word_regex', :'dataset_filename_join_string' => :'dataset_filename_join_string', :'training_image_repeats_per_epoch' => :'training_image_repeats_per_epoch', :'training_write_csv_every' => :'training_write_csv_every', :'training_xattention_optimizations' => :'training_xattention_optimizations', :'training_enable_tensorboard' => :'training_enable_tensorboard', :'training_tensorboard_save_images' => :'training_tensorboard_save_images', :'training_tensorboard_flush_every' => :'training_tensorboard_flush_every', :'sd_model_checkpoint' => :'sd_model_checkpoint', :'sd_checkpoints_limit' => :'sd_checkpoints_limit', :'sd_checkpoints_keep_in_cpu' => :'sd_checkpoints_keep_in_cpu', :'sd_checkpoint_cache' => :'sd_checkpoint_cache', :'sd_unet' => :'sd_unet', :'enable_quantization' => :'enable_quantization', :'enable_emphasis' => :'enable_emphasis', :'enable_batch_seeds' => :'enable_batch_seeds', :'comma_padding_backtrack' => :'comma_padding_backtrack', :'clip_stop_at_last_layers' => :'CLIP_stop_at_last_layers', :'upcast_attn' => :'upcast_attn', :'randn_source' => :'randn_source', :'tiling' => :'tiling', :'hires_fix_refiner_pass' => :'hires_fix_refiner_pass', :'sdxl_crop_top' => :'sdxl_crop_top', :'sdxl_crop_left' => :'sdxl_crop_left', :'sdxl_refiner_low_aesthetic_score' => :'sdxl_refiner_low_aesthetic_score', :'sdxl_refiner_high_aesthetic_score' => :'sdxl_refiner_high_aesthetic_score', :'sd_vae_explanation' => :'sd_vae_explanation', :'sd_vae_checkpoint_cache' => :'sd_vae_checkpoint_cache', :'sd_vae' => :'sd_vae', :'sd_vae_overrides_per_model_preferences' => :'sd_vae_overrides_per_model_preferences', :'auto_vae_precision' => :'auto_vae_precision', :'sd_vae_encode_method' => :'sd_vae_encode_method', :'sd_vae_decode_method' => :'sd_vae_decode_method', :'inpainting_mask_weight' => :'inpainting_mask_weight', :'initial_noise_multiplier' => :'initial_noise_multiplier', :'img2img_extra_noise' => :'img2img_extra_noise', :'img2img_color_correction' => :'img2img_color_correction', :'img2img_fix_steps' => :'img2img_fix_steps', :'img2img_background_color' => :'img2img_background_color', :'img2img_editor_height' => :'img2img_editor_height', :'img2img_sketch_default_brush_color' => :'img2img_sketch_default_brush_color', :'img2img_inpaint_mask_brush_color' => :'img2img_inpaint_mask_brush_color', :'img2img_inpaint_sketch_default_brush_color' => :'img2img_inpaint_sketch_default_brush_color', :'return_mask' => :'return_mask', :'return_mask_composite' => :'return_mask_composite', :'img2img_batch_show_results_limit' => :'img2img_batch_show_results_limit', :'cross_attention_optimization' => :'cross_attention_optimization', :'s_min_uncond' => :'s_min_uncond', :'token_merging_ratio' => :'token_merging_ratio', :'token_merging_ratio_img2img' => :'token_merging_ratio_img2img', :'token_merging_ratio_hr' => :'token_merging_ratio_hr', :'pad_cond_uncond' => :'pad_cond_uncond', :'persistent_cond_cache' => :'persistent_cond_cache', :'batch_cond_uncond' => :'batch_cond_uncond', :'use_old_emphasis_implementation' => :'use_old_emphasis_implementation', :'use_old_karras_scheduler_sigmas' => :'use_old_karras_scheduler_sigmas', :'no_dpmpp_sde_batch_determinism' => :'no_dpmpp_sde_batch_determinism', :'use_old_hires_fix_width_height' => :'use_old_hires_fix_width_height', :'dont_fix_second_order_samplers_schedule' => :'dont_fix_second_order_samplers_schedule', :'hires_fix_use_firstpass_conds' => :'hires_fix_use_firstpass_conds', :'use_old_scheduling' => :'use_old_scheduling', :'interrogate_keep_models_in_memory' => :'interrogate_keep_models_in_memory', :'interrogate_return_ranks' => :'interrogate_return_ranks', :'interrogate_clip_num_beams' => :'interrogate_clip_num_beams', :'interrogate_clip_min_length' => :'interrogate_clip_min_length', :'interrogate_clip_max_length' => :'interrogate_clip_max_length', :'interrogate_clip_dict_limit' => :'interrogate_clip_dict_limit', :'interrogate_clip_skip_categories' => :'interrogate_clip_skip_categories', :'interrogate_deepbooru_score_threshold' => :'interrogate_deepbooru_score_threshold', :'deepbooru_sort_alpha' => :'deepbooru_sort_alpha', :'deepbooru_use_spaces' => :'deepbooru_use_spaces', :'deepbooru_escape' => :'deepbooru_escape', :'deepbooru_filter_tags' => :'deepbooru_filter_tags', :'extra_networks_show_hidden_directories' => :'extra_networks_show_hidden_directories', :'extra_networks_dir_button_function' => :'extra_networks_dir_button_function', :'extra_networks_hidden_models' => :'extra_networks_hidden_models', :'extra_networks_default_multiplier' => :'extra_networks_default_multiplier', :'extra_networks_card_width' => :'extra_networks_card_width', :'extra_networks_card_height' => :'extra_networks_card_height', :'extra_networks_card_text_scale' => :'extra_networks_card_text_scale', :'extra_networks_card_show_desc' => :'extra_networks_card_show_desc', :'extra_networks_card_order_field' => :'extra_networks_card_order_field', :'extra_networks_card_order' => :'extra_networks_card_order', :'extra_networks_add_text_separator' => :'extra_networks_add_text_separator', :'ui_extra_networks_tab_reorder' => :'ui_extra_networks_tab_reorder', :'textual_inversion_print_at_load' => :'textual_inversion_print_at_load', :'textual_inversion_add_hashes_to_infotext' => :'textual_inversion_add_hashes_to_infotext', :'sd_hypernetwork' => :'sd_hypernetwork', :'keyedit_precision_attention' => :'keyedit_precision_attention', :'keyedit_precision_extra' => :'keyedit_precision_extra', :'keyedit_delimiters' => :'keyedit_delimiters', :'keyedit_delimiters_whitespace' => :'keyedit_delimiters_whitespace', :'keyedit_move' => :'keyedit_move', :'disable_token_counters' => :'disable_token_counters', :'return_grid' => :'return_grid', :'do_not_show_images' => :'do_not_show_images', :'js_modal_lightbox' => :'js_modal_lightbox', :'js_modal_lightbox_initially_zoomed' => :'js_modal_lightbox_initially_zoomed', :'js_modal_lightbox_gamepad' => :'js_modal_lightbox_gamepad', :'js_modal_lightbox_gamepad_repeat' => :'js_modal_lightbox_gamepad_repeat', :'gallery_height' => :'gallery_height', :'compact_prompt_box' => :'compact_prompt_box', :'samplers_in_dropdown' => :'samplers_in_dropdown', :'dimensions_and_batch_together' => :'dimensions_and_batch_together', :'sd_checkpoint_dropdown_use_short' => :'sd_checkpoint_dropdown_use_short', :'hires_fix_show_sampler' => :'hires_fix_show_sampler', :'hires_fix_show_prompts' => :'hires_fix_show_prompts', :'txt2img_settings_accordion' => :'txt2img_settings_accordion', :'img2img_settings_accordion' => :'img2img_settings_accordion', :'localization' => :'localization', :'quicksettings_list' => :'quicksettings_list', :'ui_tab_order' => :'ui_tab_order', :'hidden_tabs' => :'hidden_tabs', :'ui_reorder_list' => :'ui_reorder_list', :'gradio_theme' => :'gradio_theme', :'gradio_themes_cache' => :'gradio_themes_cache', :'show_progress_in_title' => :'show_progress_in_title', :'send_seed' => :'send_seed', :'send_size' => :'send_size', :'infotext_explanation' => :'infotext_explanation', :'enable_pnginfo' => :'enable_pnginfo', :'save_txt' => :'save_txt', :'add_model_name_to_info' => :'add_model_name_to_info', :'add_model_hash_to_info' => :'add_model_hash_to_info', :'add_vae_name_to_info' => :'add_vae_name_to_info', :'add_vae_hash_to_info' => :'add_vae_hash_to_info', :'add_user_name_to_info' => :'add_user_name_to_info', :'add_version_to_infotext' => :'add_version_to_infotext', :'disable_weights_auto_swap' => :'disable_weights_auto_swap', :'infotext_skip_pasting' => :'infotext_skip_pasting', :'infotext_styles' => :'infotext_styles', :'show_progressbar' => :'show_progressbar', :'live_previews_enable' => :'live_previews_enable', :'live_previews_image_format' => :'live_previews_image_format', :'show_progress_grid' => :'show_progress_grid', :'show_progress_every_n_steps' => :'show_progress_every_n_steps', :'show_progress_type' => :'show_progress_type', :'live_preview_allow_lowvram_full' => :'live_preview_allow_lowvram_full', :'live_preview_content' => :'live_preview_content', :'live_preview_refresh_period' => :'live_preview_refresh_period', :'live_preview_fast_interrupt' => :'live_preview_fast_interrupt', :'js_live_preview_in_modal_lightbox' => :'js_live_preview_in_modal_lightbox', :'hide_samplers' => :'hide_samplers', :'eta_ddim' => :'eta_ddim', :'eta_ancestral' => :'eta_ancestral', :'ddim_discretize' => :'ddim_discretize', :'s_churn' => :'s_churn', :'s_tmin' => :'s_tmin', :'s_tmax' => :'s_tmax', :'s_noise' => :'s_noise', :'k_sched_type' => :'k_sched_type', :'sigma_min' => :'sigma_min', :'sigma_max' => :'sigma_max', :'rho' => :'rho', :'eta_noise_seed_delta' => :'eta_noise_seed_delta', :'always_discard_next_to_last_sigma' => :'always_discard_next_to_last_sigma', :'sgm_noise_multiplier' => :'sgm_noise_multiplier', :'uni_pc_variant' => :'uni_pc_variant', :'uni_pc_skip_type' => :'uni_pc_skip_type', :'uni_pc_order' => :'uni_pc_order', :'uni_pc_lower_order_final' => :'uni_pc_lower_order_final', :'postprocessing_enable_in_main_ui' => :'postprocessing_enable_in_main_ui', :'postprocessing_operation_order' => :'postprocessing_operation_order', :'upscaling_max_images_in_cache' => :'upscaling_max_images_in_cache', :'postprocessing_existing_caption_action' => :'postprocessing_existing_caption_action', :'disabled_extensions' => :'disabled_extensions', :'disable_all_extensions' => :'disable_all_extensions', :'restore_config_state_file' => :'restore_config_state_file', :'sd_checkpoint_hash' => :'sd_checkpoint_hash', :'sd_lora' => :'sd_lora', :'lora_preferred_name' => :'lora_preferred_name', :'lora_add_hashes_to_infotext' => :'lora_add_hashes_to_infotext', :'lora_show_all' => :'lora_show_all', :'lora_hide_unknown_for_versions' => :'lora_hide_unknown_for_versions', :'lora_in_memory_limit' => :'lora_in_memory_limit', :'lora_functional' => :'lora_functional', :'canvas_hotkey_zoom' => :'canvas_hotkey_zoom', :'canvas_hotkey_adjust' => :'canvas_hotkey_adjust', :'canvas_hotkey_move' => :'canvas_hotkey_move', :'canvas_hotkey_fullscreen' => :'canvas_hotkey_fullscreen', :'canvas_hotkey_reset' => :'canvas_hotkey_reset', :'canvas_hotkey_overlap' => :'canvas_hotkey_overlap', :'canvas_show_tooltip' => :'canvas_show_tooltip', :'canvas_auto_expand' => :'canvas_auto_expand', :'canvas_blur_prompt' => :'canvas_blur_prompt', :'canvas_disabled_functions' => :'canvas_disabled_functions', :'settings_in_ui' => :'settings_in_ui', :'extra_options_txt2img' => :'extra_options_txt2img', :'extra_options_img2img' => :'extra_options_img2img', :'extra_options_cols' => :'extra_options_cols', :'extra_options_accordion' => :'extra_options_accordion' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
3072 3073 3074 |
# File 'lib/stable_diffusion/models/options.rb', line 3072 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
1366 1367 1368 1369 |
# File 'lib/stable_diffusion/models/options.rb', line 1366 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 |
# File 'lib/stable_diffusion/models/options.rb', line 1092 def self.openapi_types { :'samples_save' => :'Object', :'samples_format' => :'Object', :'samples_filename_pattern' => :'Object', :'save_images_add_number' => :'Object', :'save_images_replace_action' => :'Object', :'grid_save' => :'Object', :'grid_format' => :'Object', :'grid_extended_filename' => :'Object', :'grid_only_if_multiple' => :'Object', :'grid_prevent_empty_spots' => :'Object', :'grid_zip_filename_pattern' => :'Object', :'n_rows' => :'Object', :'font' => :'Object', :'grid_text_active_color' => :'Object', :'grid_text_inactive_color' => :'Object', :'grid_background_color' => :'Object', :'save_images_before_face_restoration' => :'Object', :'save_images_before_highres_fix' => :'Object', :'save_images_before_color_correction' => :'Object', :'save_mask' => :'Object', :'save_mask_composite' => :'Object', :'jpeg_quality' => :'Object', :'webp_lossless' => :'Object', :'export_for_4chan' => :'Object', :'img_downscale_threshold' => :'Object', :'target_side_length' => :'Object', :'img_max_size_mp' => :'Object', :'use_original_name_batch' => :'Object', :'use_upscaler_name_as_suffix' => :'Object', :'save_selected_only' => :'Object', :'save_init_img' => :'Object', :'temp_dir' => :'Object', :'clean_temp_dir_at_start' => :'Object', :'save_incomplete_images' => :'Object', :'notification_audio' => :'Object', :'notification_volume' => :'Object', :'outdir_samples' => :'Object', :'outdir_txt2img_samples' => :'Object', :'outdir_img2img_samples' => :'Object', :'outdir_extras_samples' => :'Object', :'outdir_grids' => :'Object', :'outdir_txt2img_grids' => :'Object', :'outdir_img2img_grids' => :'Object', :'outdir_save' => :'Object', :'outdir_init_images' => :'Object', :'save_to_dirs' => :'Object', :'grid_save_to_dirs' => :'Object', :'use_save_to_dirs_for_ui' => :'Object', :'directories_filename_pattern' => :'Object', :'directories_max_prompt_words' => :'Object', :'esrgan_tile' => :'Object', :'esrgan_tile_overlap' => :'Object', :'realesrgan_enabled_models' => :'Object', :'upscaler_for_img2img' => :'Object', :'face_restoration' => :'Object', :'face_restoration_model' => :'Object', :'code_former_weight' => :'Object', :'face_restoration_unload' => :'Object', :'auto_launch_browser' => :'Object', :'enable_console_prompts' => :'Object', :'show_warnings' => :'Object', :'show_gradio_deprecation_warnings' => :'Object', :'memmon_poll_rate' => :'Object', :'samples_log_stdout' => :'Object', :'multiple_tqdm' => :'Object', :'print_hypernet_extra' => :'Object', :'list_hidden_files' => :'Object', :'disable_mmap_load_safetensors' => :'Object', :'hide_ldm_prints' => :'Object', :'dump_stacks_on_signal' => :'Object', :'api_enable_requests' => :'Object', :'api_forbid_local_requests' => :'Object', :'api_useragent' => :'Object', :'unload_models_when_training' => :'Object', :'pin_memory' => :'Object', :'save_optimizer_state' => :'Object', :'save_training_settings_to_txt' => :'Object', :'dataset_filename_word_regex' => :'Object', :'dataset_filename_join_string' => :'Object', :'training_image_repeats_per_epoch' => :'Object', :'training_write_csv_every' => :'Object', :'training_xattention_optimizations' => :'Object', :'training_enable_tensorboard' => :'Object', :'training_tensorboard_save_images' => :'Object', :'training_tensorboard_flush_every' => :'Object', :'sd_model_checkpoint' => :'Object', :'sd_checkpoints_limit' => :'Object', :'sd_checkpoints_keep_in_cpu' => :'Object', :'sd_checkpoint_cache' => :'Object', :'sd_unet' => :'Object', :'enable_quantization' => :'Object', :'enable_emphasis' => :'Object', :'enable_batch_seeds' => :'Object', :'comma_padding_backtrack' => :'Object', :'clip_stop_at_last_layers' => :'Object', :'upcast_attn' => :'Object', :'randn_source' => :'Object', :'tiling' => :'Object', :'hires_fix_refiner_pass' => :'Object', :'sdxl_crop_top' => :'Object', :'sdxl_crop_left' => :'Object', :'sdxl_refiner_low_aesthetic_score' => :'Object', :'sdxl_refiner_high_aesthetic_score' => :'Object', :'sd_vae_explanation' => :'Object', :'sd_vae_checkpoint_cache' => :'Object', :'sd_vae' => :'Object', :'sd_vae_overrides_per_model_preferences' => :'Object', :'auto_vae_precision' => :'Object', :'sd_vae_encode_method' => :'Object', :'sd_vae_decode_method' => :'Object', :'inpainting_mask_weight' => :'Object', :'initial_noise_multiplier' => :'Object', :'img2img_extra_noise' => :'Object', :'img2img_color_correction' => :'Object', :'img2img_fix_steps' => :'Object', :'img2img_background_color' => :'Object', :'img2img_editor_height' => :'Object', :'img2img_sketch_default_brush_color' => :'Object', :'img2img_inpaint_mask_brush_color' => :'Object', :'img2img_inpaint_sketch_default_brush_color' => :'Object', :'return_mask' => :'Object', :'return_mask_composite' => :'Object', :'img2img_batch_show_results_limit' => :'Object', :'cross_attention_optimization' => :'Object', :'s_min_uncond' => :'Object', :'token_merging_ratio' => :'Object', :'token_merging_ratio_img2img' => :'Object', :'token_merging_ratio_hr' => :'Object', :'pad_cond_uncond' => :'Object', :'persistent_cond_cache' => :'Object', :'batch_cond_uncond' => :'Object', :'use_old_emphasis_implementation' => :'Object', :'use_old_karras_scheduler_sigmas' => :'Object', :'no_dpmpp_sde_batch_determinism' => :'Object', :'use_old_hires_fix_width_height' => :'Object', :'dont_fix_second_order_samplers_schedule' => :'Object', :'hires_fix_use_firstpass_conds' => :'Object', :'use_old_scheduling' => :'Object', :'interrogate_keep_models_in_memory' => :'Object', :'interrogate_return_ranks' => :'Object', :'interrogate_clip_num_beams' => :'Object', :'interrogate_clip_min_length' => :'Object', :'interrogate_clip_max_length' => :'Object', :'interrogate_clip_dict_limit' => :'Object', :'interrogate_clip_skip_categories' => :'Object', :'interrogate_deepbooru_score_threshold' => :'Object', :'deepbooru_sort_alpha' => :'Object', :'deepbooru_use_spaces' => :'Object', :'deepbooru_escape' => :'Object', :'deepbooru_filter_tags' => :'Object', :'extra_networks_show_hidden_directories' => :'Object', :'extra_networks_dir_button_function' => :'Object', :'extra_networks_hidden_models' => :'Object', :'extra_networks_default_multiplier' => :'Object', :'extra_networks_card_width' => :'Object', :'extra_networks_card_height' => :'Object', :'extra_networks_card_text_scale' => :'Object', :'extra_networks_card_show_desc' => :'Object', :'extra_networks_card_order_field' => :'Object', :'extra_networks_card_order' => :'Object', :'extra_networks_add_text_separator' => :'Object', :'ui_extra_networks_tab_reorder' => :'Object', :'textual_inversion_print_at_load' => :'Object', :'textual_inversion_add_hashes_to_infotext' => :'Object', :'sd_hypernetwork' => :'Object', :'keyedit_precision_attention' => :'Object', :'keyedit_precision_extra' => :'Object', :'keyedit_delimiters' => :'Object', :'keyedit_delimiters_whitespace' => :'Object', :'keyedit_move' => :'Object', :'disable_token_counters' => :'Object', :'return_grid' => :'Object', :'do_not_show_images' => :'Object', :'js_modal_lightbox' => :'Object', :'js_modal_lightbox_initially_zoomed' => :'Object', :'js_modal_lightbox_gamepad' => :'Object', :'js_modal_lightbox_gamepad_repeat' => :'Object', :'gallery_height' => :'Object', :'compact_prompt_box' => :'Object', :'samplers_in_dropdown' => :'Object', :'dimensions_and_batch_together' => :'Object', :'sd_checkpoint_dropdown_use_short' => :'Object', :'hires_fix_show_sampler' => :'Object', :'hires_fix_show_prompts' => :'Object', :'txt2img_settings_accordion' => :'Object', :'img2img_settings_accordion' => :'Object', :'localization' => :'Object', :'quicksettings_list' => :'Object', :'ui_tab_order' => :'Object', :'hidden_tabs' => :'Object', :'ui_reorder_list' => :'Object', :'gradio_theme' => :'Object', :'gradio_themes_cache' => :'Object', :'show_progress_in_title' => :'Object', :'send_seed' => :'Object', :'send_size' => :'Object', :'infotext_explanation' => :'Object', :'enable_pnginfo' => :'Object', :'save_txt' => :'Object', :'add_model_name_to_info' => :'Object', :'add_model_hash_to_info' => :'Object', :'add_vae_name_to_info' => :'Object', :'add_vae_hash_to_info' => :'Object', :'add_user_name_to_info' => :'Object', :'add_version_to_infotext' => :'Object', :'disable_weights_auto_swap' => :'Object', :'infotext_skip_pasting' => :'Object', :'infotext_styles' => :'Object', :'show_progressbar' => :'Object', :'live_previews_enable' => :'Object', :'live_previews_image_format' => :'Object', :'show_progress_grid' => :'Object', :'show_progress_every_n_steps' => :'Object', :'show_progress_type' => :'Object', :'live_preview_allow_lowvram_full' => :'Object', :'live_preview_content' => :'Object', :'live_preview_refresh_period' => :'Object', :'live_preview_fast_interrupt' => :'Object', :'js_live_preview_in_modal_lightbox' => :'Object', :'hide_samplers' => :'Object', :'eta_ddim' => :'Object', :'eta_ancestral' => :'Object', :'ddim_discretize' => :'Object', :'s_churn' => :'Object', :'s_tmin' => :'Object', :'s_tmax' => :'Object', :'s_noise' => :'Object', :'k_sched_type' => :'Object', :'sigma_min' => :'Object', :'sigma_max' => :'Object', :'rho' => :'Object', :'eta_noise_seed_delta' => :'Object', :'always_discard_next_to_last_sigma' => :'Object', :'sgm_noise_multiplier' => :'Object', :'uni_pc_variant' => :'Object', :'uni_pc_skip_type' => :'Object', :'uni_pc_order' => :'Object', :'uni_pc_lower_order_final' => :'Object', :'postprocessing_enable_in_main_ui' => :'Object', :'postprocessing_operation_order' => :'Object', :'upscaling_max_images_in_cache' => :'Object', :'postprocessing_existing_caption_action' => :'Object', :'disabled_extensions' => :'Object', :'disable_all_extensions' => :'Object', :'restore_config_state_file' => :'Object', :'sd_checkpoint_hash' => :'Object', :'sd_lora' => :'Object', :'lora_preferred_name' => :'Object', :'lora_add_hashes_to_infotext' => :'Object', :'lora_show_all' => :'Object', :'lora_hide_unknown_for_versions' => :'Object', :'lora_in_memory_limit' => :'Object', :'lora_functional' => :'Object', :'canvas_hotkey_zoom' => :'Object', :'canvas_hotkey_adjust' => :'Object', :'canvas_hotkey_move' => :'Object', :'canvas_hotkey_fullscreen' => :'Object', :'canvas_hotkey_reset' => :'Object', :'canvas_hotkey_overlap' => :'Object', :'canvas_show_tooltip' => :'Object', :'canvas_auto_expand' => :'Object', :'canvas_blur_prompt' => :'Object', :'canvas_disabled_functions' => :'Object', :'settings_in_ui' => :'Object', :'extra_options_txt2img' => :'Object', :'extra_options_img2img' => :'Object', :'extra_options_cols' => :'Object', :'extra_options_accordion' => :'Object' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 |
# File 'lib/stable_diffusion/models/options.rb', line 2784 def ==(o) return true if self.equal?(o) self.class == o.class && samples_save == o.samples_save && samples_format == o.samples_format && samples_filename_pattern == o.samples_filename_pattern && save_images_add_number == o.save_images_add_number && save_images_replace_action == o.save_images_replace_action && grid_save == o.grid_save && grid_format == o.grid_format && grid_extended_filename == o.grid_extended_filename && grid_only_if_multiple == o.grid_only_if_multiple && grid_prevent_empty_spots == o.grid_prevent_empty_spots && grid_zip_filename_pattern == o.grid_zip_filename_pattern && n_rows == o.n_rows && font == o.font && grid_text_active_color == o.grid_text_active_color && grid_text_inactive_color == o.grid_text_inactive_color && grid_background_color == o.grid_background_color && save_images_before_face_restoration == o.save_images_before_face_restoration && save_images_before_highres_fix == o.save_images_before_highres_fix && save_images_before_color_correction == o.save_images_before_color_correction && save_mask == o.save_mask && save_mask_composite == o.save_mask_composite && jpeg_quality == o.jpeg_quality && webp_lossless == o.webp_lossless && export_for_4chan == o.export_for_4chan && img_downscale_threshold == o.img_downscale_threshold && target_side_length == o.target_side_length && img_max_size_mp == o.img_max_size_mp && use_original_name_batch == o.use_original_name_batch && use_upscaler_name_as_suffix == o.use_upscaler_name_as_suffix && save_selected_only == o.save_selected_only && save_init_img == o.save_init_img && temp_dir == o.temp_dir && clean_temp_dir_at_start == o.clean_temp_dir_at_start && save_incomplete_images == o.save_incomplete_images && notification_audio == o.notification_audio && notification_volume == o.notification_volume && outdir_samples == o.outdir_samples && outdir_txt2img_samples == o.outdir_txt2img_samples && outdir_img2img_samples == o.outdir_img2img_samples && outdir_extras_samples == o.outdir_extras_samples && outdir_grids == o.outdir_grids && outdir_txt2img_grids == o.outdir_txt2img_grids && outdir_img2img_grids == o.outdir_img2img_grids && outdir_save == o.outdir_save && outdir_init_images == o.outdir_init_images && save_to_dirs == o.save_to_dirs && grid_save_to_dirs == o.grid_save_to_dirs && use_save_to_dirs_for_ui == o.use_save_to_dirs_for_ui && directories_filename_pattern == o.directories_filename_pattern && directories_max_prompt_words == o.directories_max_prompt_words && esrgan_tile == o.esrgan_tile && esrgan_tile_overlap == o.esrgan_tile_overlap && realesrgan_enabled_models == o.realesrgan_enabled_models && upscaler_for_img2img == o.upscaler_for_img2img && face_restoration == o.face_restoration && face_restoration_model == o.face_restoration_model && code_former_weight == o.code_former_weight && face_restoration_unload == o.face_restoration_unload && auto_launch_browser == o.auto_launch_browser && enable_console_prompts == o.enable_console_prompts && show_warnings == o.show_warnings && show_gradio_deprecation_warnings == o.show_gradio_deprecation_warnings && memmon_poll_rate == o.memmon_poll_rate && samples_log_stdout == o.samples_log_stdout && multiple_tqdm == o.multiple_tqdm && print_hypernet_extra == o.print_hypernet_extra && list_hidden_files == o.list_hidden_files && disable_mmap_load_safetensors == o.disable_mmap_load_safetensors && hide_ldm_prints == o.hide_ldm_prints && dump_stacks_on_signal == o.dump_stacks_on_signal && api_enable_requests == o.api_enable_requests && api_forbid_local_requests == o.api_forbid_local_requests && api_useragent == o.api_useragent && unload_models_when_training == o.unload_models_when_training && pin_memory == o.pin_memory && save_optimizer_state == o.save_optimizer_state && save_training_settings_to_txt == o.save_training_settings_to_txt && dataset_filename_word_regex == o.dataset_filename_word_regex && dataset_filename_join_string == o.dataset_filename_join_string && training_image_repeats_per_epoch == o.training_image_repeats_per_epoch && training_write_csv_every == o.training_write_csv_every && training_xattention_optimizations == o.training_xattention_optimizations && training_enable_tensorboard == o.training_enable_tensorboard && training_tensorboard_save_images == o.training_tensorboard_save_images && training_tensorboard_flush_every == o.training_tensorboard_flush_every && sd_model_checkpoint == o.sd_model_checkpoint && sd_checkpoints_limit == o.sd_checkpoints_limit && sd_checkpoints_keep_in_cpu == o.sd_checkpoints_keep_in_cpu && sd_checkpoint_cache == o.sd_checkpoint_cache && sd_unet == o.sd_unet && enable_quantization == o.enable_quantization && enable_emphasis == o.enable_emphasis && enable_batch_seeds == o.enable_batch_seeds && comma_padding_backtrack == o.comma_padding_backtrack && clip_stop_at_last_layers == o.clip_stop_at_last_layers && upcast_attn == o.upcast_attn && randn_source == o.randn_source && tiling == o.tiling && hires_fix_refiner_pass == o.hires_fix_refiner_pass && sdxl_crop_top == o.sdxl_crop_top && sdxl_crop_left == o.sdxl_crop_left && sdxl_refiner_low_aesthetic_score == o.sdxl_refiner_low_aesthetic_score && sdxl_refiner_high_aesthetic_score == o.sdxl_refiner_high_aesthetic_score && sd_vae_explanation == o.sd_vae_explanation && sd_vae_checkpoint_cache == o.sd_vae_checkpoint_cache && sd_vae == o.sd_vae && sd_vae_overrides_per_model_preferences == o.sd_vae_overrides_per_model_preferences && auto_vae_precision == o.auto_vae_precision && sd_vae_encode_method == o.sd_vae_encode_method && sd_vae_decode_method == o.sd_vae_decode_method && inpainting_mask_weight == o.inpainting_mask_weight && initial_noise_multiplier == o.initial_noise_multiplier && img2img_extra_noise == o.img2img_extra_noise && img2img_color_correction == o.img2img_color_correction && img2img_fix_steps == o.img2img_fix_steps && img2img_background_color == o.img2img_background_color && img2img_editor_height == o.img2img_editor_height && img2img_sketch_default_brush_color == o.img2img_sketch_default_brush_color && img2img_inpaint_mask_brush_color == o.img2img_inpaint_mask_brush_color && img2img_inpaint_sketch_default_brush_color == o.img2img_inpaint_sketch_default_brush_color && return_mask == o.return_mask && return_mask_composite == o.return_mask_composite && img2img_batch_show_results_limit == o.img2img_batch_show_results_limit && cross_attention_optimization == o.cross_attention_optimization && s_min_uncond == o.s_min_uncond && token_merging_ratio == o.token_merging_ratio && token_merging_ratio_img2img == o.token_merging_ratio_img2img && token_merging_ratio_hr == o.token_merging_ratio_hr && pad_cond_uncond == o.pad_cond_uncond && persistent_cond_cache == o.persistent_cond_cache && batch_cond_uncond == o.batch_cond_uncond && use_old_emphasis_implementation == o.use_old_emphasis_implementation && use_old_karras_scheduler_sigmas == o.use_old_karras_scheduler_sigmas && no_dpmpp_sde_batch_determinism == o.no_dpmpp_sde_batch_determinism && use_old_hires_fix_width_height == o.use_old_hires_fix_width_height && dont_fix_second_order_samplers_schedule == o.dont_fix_second_order_samplers_schedule && hires_fix_use_firstpass_conds == o.hires_fix_use_firstpass_conds && use_old_scheduling == o.use_old_scheduling && interrogate_keep_models_in_memory == o.interrogate_keep_models_in_memory && interrogate_return_ranks == o.interrogate_return_ranks && interrogate_clip_num_beams == o.interrogate_clip_num_beams && interrogate_clip_min_length == o.interrogate_clip_min_length && interrogate_clip_max_length == o.interrogate_clip_max_length && interrogate_clip_dict_limit == o.interrogate_clip_dict_limit && interrogate_clip_skip_categories == o.interrogate_clip_skip_categories && interrogate_deepbooru_score_threshold == o.interrogate_deepbooru_score_threshold && deepbooru_sort_alpha == o.deepbooru_sort_alpha && deepbooru_use_spaces == o.deepbooru_use_spaces && deepbooru_escape == o.deepbooru_escape && == o. && extra_networks_show_hidden_directories == o.extra_networks_show_hidden_directories && == o. && extra_networks_hidden_models == o.extra_networks_hidden_models && extra_networks_default_multiplier == o.extra_networks_default_multiplier && extra_networks_card_width == o.extra_networks_card_width && extra_networks_card_height == o.extra_networks_card_height && extra_networks_card_text_scale == o.extra_networks_card_text_scale && extra_networks_card_show_desc == o.extra_networks_card_show_desc && extra_networks_card_order_field == o.extra_networks_card_order_field && extra_networks_card_order == o.extra_networks_card_order && extra_networks_add_text_separator == o.extra_networks_add_text_separator && ui_extra_networks_tab_reorder == o.ui_extra_networks_tab_reorder && textual_inversion_print_at_load == o.textual_inversion_print_at_load && textual_inversion_add_hashes_to_infotext == o.textual_inversion_add_hashes_to_infotext && sd_hypernetwork == o.sd_hypernetwork && keyedit_precision_attention == o.keyedit_precision_attention && keyedit_precision_extra == o.keyedit_precision_extra && keyedit_delimiters == o.keyedit_delimiters && keyedit_delimiters_whitespace == o.keyedit_delimiters_whitespace && keyedit_move == o.keyedit_move && disable_token_counters == o.disable_token_counters && return_grid == o.return_grid && do_not_show_images == o.do_not_show_images && js_modal_lightbox == o.js_modal_lightbox && js_modal_lightbox_initially_zoomed == o.js_modal_lightbox_initially_zoomed && js_modal_lightbox_gamepad == o.js_modal_lightbox_gamepad && js_modal_lightbox_gamepad_repeat == o.js_modal_lightbox_gamepad_repeat && gallery_height == o.gallery_height && compact_prompt_box == o.compact_prompt_box && samplers_in_dropdown == o.samplers_in_dropdown && dimensions_and_batch_together == o.dimensions_and_batch_together && sd_checkpoint_dropdown_use_short == o.sd_checkpoint_dropdown_use_short && hires_fix_show_sampler == o.hires_fix_show_sampler && hires_fix_show_prompts == o.hires_fix_show_prompts && txt2img_settings_accordion == o.txt2img_settings_accordion && img2img_settings_accordion == o.img2img_settings_accordion && localization == o.localization && quicksettings_list == o.quicksettings_list && ui_tab_order == o.ui_tab_order && hidden_tabs == o.hidden_tabs && ui_reorder_list == o.ui_reorder_list && gradio_theme == o.gradio_theme && gradio_themes_cache == o.gradio_themes_cache && show_progress_in_title == o.show_progress_in_title && send_seed == o.send_seed && send_size == o.send_size && infotext_explanation == o.infotext_explanation && enable_pnginfo == o.enable_pnginfo && save_txt == o.save_txt && add_model_name_to_info == o.add_model_name_to_info && add_model_hash_to_info == o.add_model_hash_to_info && add_vae_name_to_info == o.add_vae_name_to_info && add_vae_hash_to_info == o.add_vae_hash_to_info && add_user_name_to_info == o.add_user_name_to_info && add_version_to_infotext == o.add_version_to_infotext && disable_weights_auto_swap == o.disable_weights_auto_swap && infotext_skip_pasting == o.infotext_skip_pasting && infotext_styles == o.infotext_styles && == o. && live_previews_enable == o.live_previews_enable && live_previews_image_format == o.live_previews_image_format && show_progress_grid == o.show_progress_grid && show_progress_every_n_steps == o.show_progress_every_n_steps && show_progress_type == o.show_progress_type && live_preview_allow_lowvram_full == o.live_preview_allow_lowvram_full && live_preview_content == o.live_preview_content && live_preview_refresh_period == o.live_preview_refresh_period && live_preview_fast_interrupt == o.live_preview_fast_interrupt && js_live_preview_in_modal_lightbox == o.js_live_preview_in_modal_lightbox && hide_samplers == o.hide_samplers && eta_ddim == o.eta_ddim && eta_ancestral == o.eta_ancestral && ddim_discretize == o.ddim_discretize && s_churn == o.s_churn && s_tmin == o.s_tmin && s_tmax == o.s_tmax && s_noise == o.s_noise && k_sched_type == o.k_sched_type && sigma_min == o.sigma_min && sigma_max == o.sigma_max && rho == o.rho && eta_noise_seed_delta == o.eta_noise_seed_delta && always_discard_next_to_last_sigma == o.always_discard_next_to_last_sigma && sgm_noise_multiplier == o.sgm_noise_multiplier && uni_pc_variant == o.uni_pc_variant && uni_pc_skip_type == o.uni_pc_skip_type && uni_pc_order == o.uni_pc_order && uni_pc_lower_order_final == o.uni_pc_lower_order_final && postprocessing_enable_in_main_ui == o.postprocessing_enable_in_main_ui && postprocessing_operation_order == o.postprocessing_operation_order && upscaling_max_images_in_cache == o.upscaling_max_images_in_cache && == o. && disabled_extensions == o.disabled_extensions && disable_all_extensions == o.disable_all_extensions && restore_config_state_file == o.restore_config_state_file && sd_checkpoint_hash == o.sd_checkpoint_hash && sd_lora == o.sd_lora && lora_preferred_name == o.lora_preferred_name && lora_add_hashes_to_infotext == o.lora_add_hashes_to_infotext && lora_show_all == o.lora_show_all && lora_hide_unknown_for_versions == o.lora_hide_unknown_for_versions && lora_in_memory_limit == o.lora_in_memory_limit && lora_functional == o.lora_functional && canvas_hotkey_zoom == o.canvas_hotkey_zoom && canvas_hotkey_adjust == o.canvas_hotkey_adjust && canvas_hotkey_move == o.canvas_hotkey_move && canvas_hotkey_fullscreen == o.canvas_hotkey_fullscreen && canvas_hotkey_reset == o.canvas_hotkey_reset && canvas_hotkey_overlap == o.canvas_hotkey_overlap && canvas_show_tooltip == o.canvas_show_tooltip && == o. && canvas_blur_prompt == o.canvas_blur_prompt && canvas_disabled_functions == o.canvas_disabled_functions && settings_in_ui == o.settings_in_ui && == o. && == o. && == o. && == o. end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 |
# File 'lib/stable_diffusion/models/options.rb', line 3102 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model StableDiffusion.const_get(type).build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 |
# File 'lib/stable_diffusion/models/options.rb', line 3171 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 |
# File 'lib/stable_diffusion/models/options.rb', line 3079 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) end end self end |
#eql?(o) ⇒ Boolean
3059 3060 3061 |
# File 'lib/stable_diffusion/models/options.rb', line 3059 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
3065 3066 3067 |
# File 'lib/stable_diffusion/models/options.rb', line 3065 def hash [samples_save, samples_format, samples_filename_pattern, save_images_add_number, save_images_replace_action, grid_save, grid_format, grid_extended_filename, grid_only_if_multiple, grid_prevent_empty_spots, grid_zip_filename_pattern, n_rows, font, grid_text_active_color, grid_text_inactive_color, grid_background_color, save_images_before_face_restoration, save_images_before_highres_fix, save_images_before_color_correction, save_mask, save_mask_composite, jpeg_quality, webp_lossless, export_for_4chan, img_downscale_threshold, target_side_length, img_max_size_mp, use_original_name_batch, use_upscaler_name_as_suffix, save_selected_only, save_init_img, temp_dir, clean_temp_dir_at_start, save_incomplete_images, notification_audio, notification_volume, outdir_samples, outdir_txt2img_samples, outdir_img2img_samples, outdir_extras_samples, outdir_grids, outdir_txt2img_grids, outdir_img2img_grids, outdir_save, outdir_init_images, save_to_dirs, grid_save_to_dirs, use_save_to_dirs_for_ui, directories_filename_pattern, directories_max_prompt_words, esrgan_tile, esrgan_tile_overlap, realesrgan_enabled_models, upscaler_for_img2img, face_restoration, face_restoration_model, code_former_weight, face_restoration_unload, auto_launch_browser, enable_console_prompts, show_warnings, show_gradio_deprecation_warnings, memmon_poll_rate, samples_log_stdout, multiple_tqdm, print_hypernet_extra, list_hidden_files, disable_mmap_load_safetensors, hide_ldm_prints, dump_stacks_on_signal, api_enable_requests, api_forbid_local_requests, api_useragent, unload_models_when_training, pin_memory, save_optimizer_state, save_training_settings_to_txt, dataset_filename_word_regex, dataset_filename_join_string, training_image_repeats_per_epoch, training_write_csv_every, training_xattention_optimizations, training_enable_tensorboard, training_tensorboard_save_images, training_tensorboard_flush_every, sd_model_checkpoint, sd_checkpoints_limit, sd_checkpoints_keep_in_cpu, sd_checkpoint_cache, sd_unet, enable_quantization, enable_emphasis, enable_batch_seeds, comma_padding_backtrack, clip_stop_at_last_layers, upcast_attn, randn_source, tiling, hires_fix_refiner_pass, sdxl_crop_top, sdxl_crop_left, sdxl_refiner_low_aesthetic_score, sdxl_refiner_high_aesthetic_score, sd_vae_explanation, sd_vae_checkpoint_cache, sd_vae, sd_vae_overrides_per_model_preferences, auto_vae_precision, sd_vae_encode_method, sd_vae_decode_method, inpainting_mask_weight, initial_noise_multiplier, img2img_extra_noise, img2img_color_correction, img2img_fix_steps, img2img_background_color, img2img_editor_height, img2img_sketch_default_brush_color, img2img_inpaint_mask_brush_color, img2img_inpaint_sketch_default_brush_color, return_mask, return_mask_composite, img2img_batch_show_results_limit, cross_attention_optimization, s_min_uncond, token_merging_ratio, token_merging_ratio_img2img, token_merging_ratio_hr, pad_cond_uncond, persistent_cond_cache, batch_cond_uncond, use_old_emphasis_implementation, use_old_karras_scheduler_sigmas, no_dpmpp_sde_batch_determinism, use_old_hires_fix_width_height, dont_fix_second_order_samplers_schedule, hires_fix_use_firstpass_conds, use_old_scheduling, interrogate_keep_models_in_memory, interrogate_return_ranks, interrogate_clip_num_beams, interrogate_clip_min_length, interrogate_clip_max_length, interrogate_clip_dict_limit, interrogate_clip_skip_categories, interrogate_deepbooru_score_threshold, deepbooru_sort_alpha, deepbooru_use_spaces, deepbooru_escape, , extra_networks_show_hidden_directories, , extra_networks_hidden_models, extra_networks_default_multiplier, extra_networks_card_width, extra_networks_card_height, extra_networks_card_text_scale, extra_networks_card_show_desc, extra_networks_card_order_field, extra_networks_card_order, extra_networks_add_text_separator, ui_extra_networks_tab_reorder, textual_inversion_print_at_load, textual_inversion_add_hashes_to_infotext, sd_hypernetwork, keyedit_precision_attention, keyedit_precision_extra, keyedit_delimiters, keyedit_delimiters_whitespace, keyedit_move, disable_token_counters, return_grid, do_not_show_images, js_modal_lightbox, js_modal_lightbox_initially_zoomed, js_modal_lightbox_gamepad, js_modal_lightbox_gamepad_repeat, gallery_height, compact_prompt_box, samplers_in_dropdown, dimensions_and_batch_together, sd_checkpoint_dropdown_use_short, hires_fix_show_sampler, hires_fix_show_prompts, txt2img_settings_accordion, img2img_settings_accordion, localization, quicksettings_list, ui_tab_order, hidden_tabs, ui_reorder_list, gradio_theme, gradio_themes_cache, show_progress_in_title, send_seed, send_size, infotext_explanation, enable_pnginfo, save_txt, add_model_name_to_info, add_model_hash_to_info, add_vae_name_to_info, add_vae_hash_to_info, add_user_name_to_info, add_version_to_infotext, disable_weights_auto_swap, infotext_skip_pasting, infotext_styles, , live_previews_enable, live_previews_image_format, show_progress_grid, show_progress_every_n_steps, show_progress_type, live_preview_allow_lowvram_full, live_preview_content, live_preview_refresh_period, live_preview_fast_interrupt, js_live_preview_in_modal_lightbox, hide_samplers, eta_ddim, eta_ancestral, ddim_discretize, s_churn, s_tmin, s_tmax, s_noise, k_sched_type, sigma_min, sigma_max, rho, eta_noise_seed_delta, always_discard_next_to_last_sigma, sgm_noise_multiplier, uni_pc_variant, uni_pc_skip_type, uni_pc_order, uni_pc_lower_order_final, postprocessing_enable_in_main_ui, postprocessing_operation_order, upscaling_max_images_in_cache, , disabled_extensions, disable_all_extensions, restore_config_state_file, sd_checkpoint_hash, sd_lora, lora_preferred_name, lora_add_hashes_to_infotext, lora_show_all, lora_hide_unknown_for_versions, lora_in_memory_limit, lora_functional, canvas_hotkey_zoom, canvas_hotkey_adjust, canvas_hotkey_move, canvas_hotkey_fullscreen, canvas_hotkey_reset, canvas_hotkey_overlap, canvas_show_tooltip, , canvas_blur_prompt, canvas_disabled_functions, settings_in_ui, , , , ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
2771 2772 2773 2774 |
# File 'lib/stable_diffusion/models/options.rb', line 2771 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
3147 3148 3149 |
# File 'lib/stable_diffusion/models/options.rb', line 3147 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 |
# File 'lib/stable_diffusion/models/options.rb', line 3153 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
3141 3142 3143 |
# File 'lib/stable_diffusion/models/options.rb', line 3141 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
2778 2779 2780 |
# File 'lib/stable_diffusion/models/options.rb', line 2778 def valid? true end |