Skip to content

Commit

Permalink
Merge pull request #42 from KevinBatdorf/release/0.6.0
Browse files Browse the repository at this point in the history
Release/0.6.0
  • Loading branch information
KevinBatdorf authored Nov 22, 2022
2 parents 5ccd329 + 472ac44 commit 20cae07
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
10 changes: 7 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: kbat82
Tags: block, stable diffusion, ai, prompt, artificial intelligence, generate, pokemon, dall-e, midjourney
Tested up to: 6.1
Stable tag: 0.5.0
Stable tag: 0.6.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -17,8 +17,9 @@ This plugin interfaces with the Replicate API and allows you to run open-source
Semi interactive demo at [https://www.block-diffusion.com/](https://www.block-diffusion.com/)

= Features =
- Stable Diffusion model
- Text to Pokémon model
- Stable Diffusion - A latent text-to-image diffusion model capable of generating photo-realistic images given any text input
- Text to Pokémon - Generate Pokémon from a text description
- Open Journey - Stable Diffusion fine tuned on Midjourney v4 images.
- Multiple outputs
- Image input with basic controls
- Download, copy, or import into the editor
Expand Down Expand Up @@ -55,6 +56,9 @@ We also offer additional features on top of the Replicate API, such as prompt/ou

== Changelog ==

= 0.6.0 - 2022-11-22 =
- Feature: Add OpenJourney model - Stable Diffusion fine tuned on Midjourney v4 images.

= 0.5.0 - 2022-11-06 =
- Feature: Add interactive image input 🚀
- Tweak: Update types to support new num_output format
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputGenerator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const InputGenerator = ({ inputsData, disabled }: Props) => {
useEffect(() => {
setInput('width', inputsData?.width?.default ?? 512);
setInput('height', inputsData?.height?.default ?? 512);
setInput('prompt', inputsData?.prompt?.default ?? '');
// setInput('prompt', inputsData?.prompt?.default ?? '');
}, [inputsData, setInput]);

return (
Expand Down
7 changes: 6 additions & 1 deletion src/components/features/PromptGenerator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export const PromptGenerator = ({
const [prompt, setPrompt] = useState<string>();

// For now only show on this model
if (currentModel !== 'stability-ai/stable-diffusion') return null;
if (
!['stability-ai/stable-diffusion', 'prompthero/openjourney'].includes(
currentModel,
)
)
return null;

const handlePress = async () => {
if (!has('optIns', 'prompt-accept')) {
Expand Down
2 changes: 1 addition & 1 deletion stable-diffusion.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Generate unique images from text prompts using machine learning, all in the cloud.
* Requires at least: 5.8
* Requires PHP: 7.0
* Version: 0.5.0
* Version: 0.6.0
* Author: Kevin Batdorf
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down

0 comments on commit 20cae07

Please sign in to comment.