Skip to content

Commit e5a7763

Browse files
author
Werner Oswald
committed
Typo fixed
1 parent b546625 commit e5a7763

8 files changed

+1541
-58
lines changed

.streamlit/config.toml

+183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
# Streamlit version: 1.13.0
2+
3+
[global]
4+
5+
# By default, Streamlit checks if the Python watchdog module is available and, if not, prints a warning asking for you to install it. The watchdog module is not required, but highly recommended. It improves Streamlit's ability to detect changes to files in your filesystem.
6+
# If you'd like to turn off this warning, set this to True.
7+
# Default: false
8+
disableWatchdogWarning = false
9+
10+
# If True, will show a warning when you run a Streamlit-enabled script via "python my_script.py".
11+
# Default: true
12+
showWarningOnDirectExecution = true
13+
14+
# DataFrame serialization.
15+
# Acceptable values: - 'legacy': Serialize DataFrames using Streamlit's custom format. Slow but battle-tested. - 'arrow': Serialize DataFrames using Apache Arrow. Much faster and versatile.
16+
# Default: "arrow"
17+
dataFrameSerialization = "arrow"
18+
19+
20+
[logger]
21+
22+
# Level of logging: 'error', 'warning', 'info', or 'debug'.
23+
# Default: 'info'
24+
level = "info"
25+
26+
# String format for logging messages. If logger.datetimeFormat is set, logger messages will default to `%(asctime)s.%(msecs)03d %(message)s`. See [Python's documentation](https://docs.python.org/2.6/library/logging.html#formatter-objects) for available attributes.
27+
# Default: "%(asctime)s %(message)s"
28+
messageFormat = "%(asctime)s %(message)s"
29+
30+
31+
[client]
32+
33+
# Whether to enable st.cache.
34+
# Default: true
35+
caching = true
36+
37+
# If false, makes your Streamlit script not draw to a Streamlit app.
38+
# Default: true
39+
displayEnabled = true
40+
41+
# Controls whether uncaught app exceptions are displayed in the browser. By default, this is set to True and Streamlit displays app exceptions and associated tracebacks in the browser.
42+
# If set to False, an exception will result in a generic message being shown in the browser, and exceptions and tracebacks will be printed to the console only.
43+
# Default: true
44+
showErrorDetails = true
45+
46+
47+
[runner]
48+
49+
# Allows you to type a variable or string by itself in a single line of Python code to write it to the app.
50+
# Default: true
51+
magicEnabled = true
52+
53+
# Install a Python tracer to allow you to stop or pause your script at any point and introspect it. As a side-effect, this slows down your script's execution.
54+
# Default: false
55+
installTracer = false
56+
57+
# Sets the MPLBACKEND environment variable to Agg inside Streamlit to prevent Python crashing.
58+
# Default: true
59+
fixMatplotlib = true
60+
61+
# Run the Python Garbage Collector after each script execution. This can help avoid excess memory use in Streamlit apps, but could introduce delay in rerunning the app script for high-memory-use applications.
62+
# Default: true
63+
postScriptGC = true
64+
65+
# Handle script rerun requests immediately, rather than waiting for script execution to reach a yield point. Enabling this will make Streamlit much more responsive to user interaction, but it can lead to race conditions in apps that mutate session_state data outside of explicit session_state assignment statements.
66+
# Default: false
67+
fastReruns = false
68+
69+
70+
[server]
71+
72+
# List of folders that should not be watched for changes. This impacts both "Run on Save" and @st.cache.
73+
# Relative paths will be taken as relative to the current working directory.
74+
# Example: ['/home/user1/env', 'relative/path/to/folder']
75+
# Default: []
76+
folderWatchBlacklist = []
77+
78+
# Change the type of file watcher used by Streamlit, or turn it off completely.
79+
# Allowed values: * "auto" : Streamlit will attempt to use the watchdog module, and falls back to polling if watchdog is not available. * "watchdog" : Force Streamlit to use the watchdog module. * "poll" : Force Streamlit to always use polling. * "none" : Streamlit will not watch files.
80+
# Default: "auto"
81+
fileWatcherType = "auto"
82+
83+
# Symmetric key used to produce signed cookies. If deploying on multiple replicas, this should be set to the same value across all replicas to ensure they all share the same secret.
84+
# Default: randomly generated secret key.
85+
#cookieSecret =
86+
87+
# If false, will attempt to open a browser window on start.
88+
# Default: false unless (1) we are on a Linux box where DISPLAY is unset, or (2) we are running in the Streamlit Atom plugin.
89+
headless = true
90+
91+
# Automatically rerun script when the file is modified on disk.
92+
# Default: false
93+
runOnSave = false
94+
95+
# The address where the server will listen for client and browser connections. Use this if you want to bind the server to a specific address. If set, the server will only be accessible from this address, and not from any aliases (like localhost).
96+
# Default: (unset)
97+
# address =
98+
99+
# The port where the server will listen for browser connections.
100+
# Default: 8501
101+
port = 8501
102+
103+
# The base path for the URL where Streamlit should be served from.
104+
# Default: ""
105+
baseUrlPath = ""
106+
107+
# Enables support for Cross-Origin Request Sharing (CORS) protection, for added security.
108+
# Due to conflicts between CORS and XSRF, if `server.enableXsrfProtection` is on and `server.enableCORS` is off at the same time, we will prioritize `server.enableXsrfProtection`.
109+
# Default: true
110+
enableCORS = true
111+
112+
# Enables support for Cross-Site Request Forgery (XSRF) protection, for added security.
113+
# Due to conflicts between CORS and XSRF, if `server.enableXsrfProtection` is on and `server.enableCORS` is off at the same time, we will prioritize `server.enableXsrfProtection`.
114+
# Default: true
115+
enableXsrfProtection = true
116+
117+
# Max size, in megabytes, for files uploaded with the file_uploader.
118+
# Default: 200
119+
maxUploadSize = 200
120+
121+
# Max size, in megabytes, of messages that can be sent via the WebSocket connection.
122+
# Default: 200
123+
maxMessageSize = 200
124+
125+
# Enables support for websocket compression.
126+
# Default: false
127+
enableWebsocketCompression = false
128+
129+
130+
[browser]
131+
132+
# Internet address where users should point their browsers in order to connect to the app. Can be IP address or DNS name and path.
133+
# This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser
134+
# Default: 'localhost'
135+
serverAddress = "localhost"
136+
137+
# Whether to send usage statistics to Streamlit.
138+
# Default: true
139+
gatherUsageStats = false
140+
141+
# Port where users should point their browsers in order to connect to the app.
142+
# This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser
143+
# Default: whatever value is set in server.port.
144+
serverPort = 8501
145+
146+
147+
[mapbox]
148+
149+
# Configure Streamlit to use a custom Mapbox token for elements like st.pydeck_chart and st.map. To get a token for yourself, create an account at https://mapbox.com. It's free (for moderate usage levels)!
150+
# Default: ""
151+
token = ""
152+
153+
154+
[deprecation]
155+
156+
# Set to false to disable the deprecation warning for the file uploader encoding.
157+
# Default: true
158+
showfileUploaderEncoding = true
159+
160+
# Set to false to disable the deprecation warning for using the global pyplot instance.
161+
# Default: true
162+
showPyplotGlobalUse = true
163+
164+
165+
[theme]
166+
167+
# The preset Streamlit theme that your custom theme inherits from. One of "light" or "dark".
168+
# base =
169+
170+
# Primary accent color for interactive elements.
171+
# primaryColor =
172+
173+
# Background color for the main content area.
174+
# backgroundColor =
175+
176+
# Background color used for the sidebar and most interactive widgets.
177+
# secondaryBackgroundColor =
178+
179+
# Color used for almost all text.
180+
# textColor =
181+
182+
# Font family for all text in the app, except code blocks. One of "sans serif", "serif", or "monospace".
183+
# font =

scripts/tools/config/webui_streamlit.yaml

+28-52
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ general:
4040
optimized_config: "optimizedSD/v1-inference.yaml"
4141
update_preview: True
4242
update_preview_frequency: 5
43+
streamlit_telemetry: False
44+
default_theme: dark
45+
huggingface_token: ""
46+
use_sd_concepts_library: True
47+
sd_concepts_library_folder: "models/custom/sd-concepts-library"
48+
gfpgan_gpu: 0
49+
esrgan_gpu: 0
50+
enable_attention_slicing: False
51+
enable_minimal_memory_usage : False
52+
4353

4454
txt2img:
4555
prompt:
@@ -394,61 +404,27 @@ img2img:
394404
write_info_files: True
395405

396406
img2var:
397-
prompt:
398-
sampling_steps: 30
399-
# Adding an int to toggles enables the corresponding feature.
400-
# 0: Create prompt matrix (separate multiple prompts using |, and get all combinations of them)
401-
# 1: Normalize Prompt Weights (ensure sum of weights add up to 1.0)
402-
# 2: Loopback (use images from previous batch when creating next batch)
403-
# 3: Random loopback seed
404-
# 4: Save individual images
405-
# 5: Save grid
406-
# 6: Sort samples by prompt
407-
# 7: Write sample info files
408-
# 8: jpg samples
409-
# 9: Fix faces using GFPGAN
410-
# 10: Upscale images using Real-ESRGAN
411-
sampler_name: "k_euler"
412-
denoising_strength: 0.45
413-
# 0: Keep masked area
414-
# 1: Regenerate only masked area
415-
mask_mode_list: 0
416-
mask_restore: False
417-
# 0: Just resize
418-
# 1: Crop and resize
419-
# 2: Resize and fill
420-
resize_mode: 0
421407

422-
noise_mode_list: 0
423-
424-
425-
# Leave blank for random seed:
426-
seed: ""
427-
ddim_eta: 0.0
428-
cfg_scale: 7.5
429-
batch_count: 1
430-
batch_size: 1
431-
height: 512
408+
var_samples: 4
409+
sampler_name: k_lms
410+
cfg_scale: 12.0
411+
sampling_steps: 30
432412
width: 512
433-
# Textual inversion embeddings file path:
434-
fp: ""
435-
loopback: True
436-
random_seed_loopback: True
437-
separate_prompts: False
438-
update_preview: True
439-
update_preview_frequency: 5
440-
normalize_prompt_weights: True
441-
save_individual_images: True
442-
save_grid: True
443-
group_by_prompt: True
444-
save_as_jpg: False
413+
height: 512
414+
ddim_eta: 1.0
445415
use_GFPGAN: False
446-
use_RealESRGAN: False
447-
RealESRGAN_model: "RealESRGAN_x4plus"
448-
variant_amount: 0.0
449-
variant_seed: ""
450-
write_info_files: True
451-
416+
bg_upsampling: False
417+
upscale: 1
452418

453419
gfpgan:
454420
strength: 100
421+
422+
concepts_library:
423+
concepts_per_page: 12
424+
425+
textual_inversion:
426+
pretrained_model_name_or_path: "models/ldm/stable-diffusion-v1-4"
427+
tokenizer_name: ""
428+
429+
daisi_app:
430+
running_on_daisi_io: False

0 commit comments

Comments
 (0)