Skip to content

Commit a3c84ef

Browse files
authored
Merge pull request #43 from KevinBatdorf/stable-diffusion-v2
Add stable diffusion v2 test version
2 parents 20cae07 + e716975 commit a3c84ef

File tree

7 files changed

+28
-7
lines changed

7 files changed

+28
-7
lines changed

Diff for: .github/workflows/build-production-zip.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
CI: true
1616

1717
- name: Package
18-
uses: actions/upload-artifact@v2
18+
uses: actions/upload-artifact@v3
1919
with:
2020
name: stable-diffusion
2121
retention-days: 5

Diff for: cypress/support/gutenberg.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ export const closeBlockInserter = () => {
6969
};
7070
export const addBlock = (slug) => {
7171
cy.openBlockInserter();
72-
cy.get(`button[class*="${slug}"]`).click();
72+
cy.window().then((win) => {
73+
cy.waitUntil(() =>
74+
win.document.querySelector(`button[class*="${slug}"]`),
75+
);
76+
cy.get(`button[class*="${slug}"]`).should('exist');
77+
cy.get(`button[class*="${slug}"]`).click({ force: true });
78+
});
7379
};
7480
export const wpDataSelect = (store, selector, ...parameters) => {
7581
cy.window().then((win) => {

Diff for: readme.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: kbat82
33
Tags: block, stable diffusion, ai, prompt, artificial intelligence, generate, pokemon, dall-e, midjourney
44
Tested up to: 6.1
5-
Stable tag: 0.6.0
5+
Stable tag: 0.7.0
66
License: GPL-2.0-or-later
77
License URI: https://www.gnu.org/licenses/gpl-2.0.html
88

@@ -56,6 +56,9 @@ We also offer additional features on top of the Replicate API, such as prompt/ou
5656

5757
== Changelog ==
5858

59+
= 0.7.0 - 2022-11-24 =
60+
- Feature: Add test version of Stable Diffusion v2
61+
5962
= 0.6.0 - 2022-11-22 =
6063
- Feature: Add OpenJourney model - Stable Diffusion fine tuned on Midjourney v4 images.
6164

Diff for: src/components/features/PromptGenerator.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ export const PromptGenerator = ({
2727

2828
// For now only show on this model
2929
if (
30-
!['stability-ai/stable-diffusion', 'prompthero/openjourney'].includes(
31-
currentModel,
32-
)
30+
![
31+
'stability-ai/stable-diffusion',
32+
'prompthero/openjourney',
33+
'cjwbw/stable-diffusion-v2',
34+
].includes(currentModel)
3335
)
3436
return null;
3537

Diff for: src/models.ts

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ export const models: ModelAttributes[] = [
1111
),
1212
image: 'https://bucketeer-be99e627-94e7-4e5b-a292-54eeb40ac303.s3.amazonaws.com/public/models_models_featured_image/c63d605d-b5e3-4fb0-9b0d-79f00a710f7c/out-0.png',
1313
},
14+
{
15+
id: 'cjwbw/stable-diffusion-v2',
16+
name: __('Stable Diffusion v2 (Test)', 'stable-diffusion'),
17+
description: __(
18+
'Test implimentation of Stable Diffusion V2',
19+
'stable-diffusion',
20+
),
21+
image: 'https://bucketeer-be99e627-94e7-4e5b-a292-54eeb40ac303.s3.amazonaws.com/public/models_models_featured_image/d8e0c1ca-1256-43d2-b5e6-773c61ffc629/out-0_2.png',
22+
},
1423
{
1524
id: 'lambdal/text-to-pokemon',
1625
name: __('Text to Pokémon', 'stable-diffusion'),

Diff for: src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export type AvailableModels =
22
| 'stability-ai/stable-diffusion'
3+
| 'cjwbw/stable-diffusion-v2'
34
| 'lambdal/text-to-pokemon'
45
| 'prompthero/openjourney'
56
| 'methexis-inc/img2prompt'

Diff for: stable-diffusion.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Generate unique images from text prompts using machine learning, all in the cloud.
55
* Requires at least: 5.8
66
* Requires PHP: 7.0
7-
* Version: 0.6.0
7+
* Version: 0.7.0
88
* Author: Kevin Batdorf
99
* License: GPL-2.0-or-later
1010
* License URI: https://www.gnu.org/licenses/gpl-2.0.html

0 commit comments

Comments
 (0)