Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Robothy authored Dec 19, 2023
1 parent 62686c3 commit b6cf4d3
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
# Stable Diffusion Webui Java SDK

[![Main Branch Build](https://github.com/Robothy/sdwebui-java-sdk/actions/workflows/build.yml/badge.svg)](https://github.com/Robothy/sdwebui-java-sdk/actions/workflows/build.yml)
[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-green.svg)](https://github.com/robothy/sdwebui-java-sdk/blob/main/LICENSE)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.robothy/sdwebui-java-sdk.svg)](https://search.maven.org/artifact/io.github.robothy/sdwebui-java-sdk/)

sdwebui-java-sdk is a Java library for building Java applications that integrate with [Stable Diffusion Webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui).

## Usage

### Add Denendencies

Maven

```
<dependency>
<groupId>io.github.robothy</groupId>
<artifactId>sdwebui-java-sdk</artifactId>
<version>${latest-version}</version>
</dependency>
```

Gradle
```
implementation "io.github.robothy:sdwebui-java-sdk:${latest-version}"
```

### Create `SdWebui` instance

```java
Expand Down Expand Up @@ -47,4 +68,4 @@ Image2ImageResult image2ImageResult = sd.img2img(Image2ImageOptions.builder()
Files.write(filepath, Base64.getDecoder().decode(base64img));
```

![](docs/images/img2img-dog.png)
![](docs/images/img2img-dog.png)

0 comments on commit b6cf4d3

Please sign in to comment.