Open Amazon90 opened 1 year ago
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)