StylePile
StylePile copied to clipboard
The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
To create a public link, set `share=True` in `launch()`.
[Lobe]: Initializing Lobe
Startup time: 59.3s (load scripts: 28.9s, create ui: 1.1s, gradio launch: 29.2s).
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --xformers --no-gradio-queue --no-half-vae
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
[-] ADetailer initialized. version: 23.9.0, num models: 9
2023-09-01 14:38:16,986 - ControlNet - INFO - ControlNet v1.1.313
ControlNet preprocessor location: D:\AITech\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-09-01 14:38:17,071 - ControlNet - INFO - ControlNet v1.1.313
sd-webui-prompt-all-in-one background API service started successfully.
Loading weights [48a00220c1] from D:\AITech\stable-diffusion-webui\models\Stable-diffusion\None_HD_Portrait_v10.safetensors
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:412: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
gr.Gallery(value=ResultDirectionImages, show_label=False).style(
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:412: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
gr.Gallery(value=ResultDirectionImages, show_label=False).style(
Creating model from config: D:\AITech\stable-diffusion-webui\configs\v1-inference.yaml
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:416: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
gr.Gallery(value=ResultMoodImages, show_label=False).style(
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:416: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
gr.Gallery(value=ResultMoodImages, show_label=False).style(
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:420: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
gr.Gallery(value=ResultArtistImages, show_label=False).style(
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:420: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
gr.Gallery(value=ResultArtistImages, show_label=False).style(
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:424: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
gr.Gallery(value=ArtMovementImages, show_label=False).style(
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:424: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
gr.Gallery(value=ArtMovementImages, show_label=False).style(
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:428: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
gr.Gallery(value=ResultColorImages, show_label=False).style(
D:\AITech\stable-diffusion-webui\extensions\StylePile\scripts\StylePile.py:428: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
gr.Gallery(value=ResultColorImages, show_label=False).style(
Running on local URL: http://127.0.0.1:7860
Applying attention optimization: xformers... done.
Model loaded in 4.6s (load weights from disk: 0.3s, create model: 0.3s, apply weights to model: 2.0s, apply half(): 1.0s, calculate empty prompt: 0.8s).
Same issue.
version: v1.6.0 python: 3.10.11 torch: 2.0.1+cu118 xformers: 0.0.20 gradio: 3.41.2 checkpoint: [171c237b86]
I think the developer has stopped maintaining this extension.
@Amazon90 It seems that the developer has stopped maintaining this extension you can change the script file to slove this /stable-diffusion-webui/extensions/StylePile/scripts/StylePile.py at line number 441
+ with gr.Tab("Directions") as StyleTab:
+ gr.Gallery(value=ResultDirectionImages, show_label=False, columns=3)
- with gr.Tab("Directions") as StyleTab:
- gr.Gallery(value=ResultDirectionImages, show_label=False).style(
- grid=(3, 3, 3, 3, 4, 4), container=False)
+ with gr.Tab("Moods"):
+ gr.Gallery(value=ResultMoodImages, show_label=False, columns=3)
- with gr.Tab("Moods"):
- gr.Gallery(value=ResultMoodImages, show_label=False).style(
- grid=(3, 3, 3, 3, 4, 4), container=False)
+ with gr.Tab("Artists"):
+ gr.Gallery(value=ResultArtistImages, show_label=False, columns=3)
- with gr.Tab("Artists"):
- gr.Gallery(value=ResultArtistImages, show_label=False).style(
- grid=(2, 2, 2, 2, 3, 3), container=False)
+ with gr.Tab("Art movements"):
+ gr.Gallery(value=ArtMovementImages, show_label=False, columns=3)
- with gr.Tab("Art movements"):
- gr.Gallery(value=ArtMovementImages, show_label=False).style(
- grid=(3, 3, 3, 3, 4, 4), container=False)
+ with gr.Tab("Colors"):
+ gr.Gallery(value=ResultColorImages, show_label=False, columns=3)
- with gr.Tab("Colors"):
- gr.Gallery(value=ResultColorImages, show_label=False).style(
- grid=(3, 3, 3, 3, 4, 4), container=False)
@Amazon90 It seems that the developer has stopped maintaining this extension you can change the script file to slove this /stable-diffusion-webui/extensions/StylePile/scripts/StylePile.py at line number 441
+ with gr.Tab("Directions") as StyleTab: + gr.Gallery(value=ResultDirectionImages, show_label=False, columns=3) - with gr.Tab("Directions") as StyleTab: - gr.Gallery(value=ResultDirectionImages, show_label=False).style( - grid=(3, 3, 3, 3, 4, 4), container=False) + with gr.Tab("Moods"): + gr.Gallery(value=ResultMoodImages, show_label=False, columns=3) - with gr.Tab("Moods"): - gr.Gallery(value=ResultMoodImages, show_label=False).style( - grid=(3, 3, 3, 3, 4, 4), container=False) + with gr.Tab("Artists"): + gr.Gallery(value=ResultArtistImages, show_label=False, columns=3) - with gr.Tab("Artists"): - gr.Gallery(value=ResultArtistImages, show_label=False).style( - grid=(2, 2, 2, 2, 3, 3), container=False) + with gr.Tab("Art movements"): + gr.Gallery(value=ArtMovementImages, show_label=False, columns=3) - with gr.Tab("Art movements"): - gr.Gallery(value=ArtMovementImages, show_label=False).style( - grid=(3, 3, 3, 3, 4, 4), container=False) + with gr.Tab("Colors"): + gr.Gallery(value=ResultColorImages, show_label=False, columns=3) - with gr.Tab("Colors"): - gr.Gallery(value=ResultColorImages, show_label=False).style( - grid=(3, 3, 3, 3, 4, 4), container=False)
This worked for me but line was on 411 and hit error until I used original spacing on last two second lines ie gr.Gallery starts below space after with
^^^Thanks for this by the way,
Thx,
PS just for other that may have same problem.
1- Dont make a copy of the /stable-diffusion-webui/extensions/StylePile/scripts/StylePile.py or at least dont keep it in there 2- Delete the folder for cache files pycache
Now when you restart it will be ok.
@Amazon90 It seems that the developer has stopped maintaining this extension you can change the script file to slove this /stable-diffusion-webui/extensions/StylePile/scripts/StylePile.py at line number 441
+ with gr.Tab("Directions") as StyleTab: + gr.Gallery(value=ResultDirectionImages, show_label=False, columns=3) - with gr.Tab("Directions") as StyleTab: - gr.Gallery(value=ResultDirectionImages, show_label=False).style( - grid=(3, 3, 3, 3, 4, 4), container=False) + with gr.Tab("Moods"): + gr.Gallery(value=ResultMoodImages, show_label=False, columns=3) - with gr.Tab("Moods"): - gr.Gallery(value=ResultMoodImages, show_label=False).style( - grid=(3, 3, 3, 3, 4, 4), container=False) + with gr.Tab("Artists"): + gr.Gallery(value=ResultArtistImages, show_label=False, columns=3) - with gr.Tab("Artists"): - gr.Gallery(value=ResultArtistImages, show_label=False).style( - grid=(2, 2, 2, 2, 3, 3), container=False) + with gr.Tab("Art movements"): + gr.Gallery(value=ArtMovementImages, show_label=False, columns=3) - with gr.Tab("Art movements"): - gr.Gallery(value=ArtMovementImages, show_label=False).style( - grid=(3, 3, 3, 3, 4, 4), container=False) + with gr.Tab("Colors"): + gr.Gallery(value=ResultColorImages, show_label=False, columns=3) - with gr.Tab("Colors"): - gr.Gallery(value=ResultColorImages, show_label=False).style( - grid=(3, 3, 3, 3, 4, 4), container=False)
remove git diff + symble,
with gr.Tab("Directions") as StyleTab:
gr.Gallery(value=ResultDirectionImages, show_label=False, columns=3)
with gr.Tab("Moods"):
gr.Gallery(value=ResultMoodImages, show_label=False, columns=3)
with gr.Tab("Artists"):
gr.Gallery(value=ResultArtistImages, show_label=False, columns=3)
with gr.Tab("Art movements"):
gr.Gallery(value=ArtMovementImages, show_label=False, columns=3)
with gr.Tab("Colors"):
gr.Gallery(value=ResultColorImages, show_label=False, columns=3)