SwaggerStableDiffusionWebui 1.0.394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +150 -0
- data/Rakefile +10 -0
- data/SwaggerStableDiffusionWebui.gemspec +38 -0
- data/docs/BodyDetectControlnetDetectPost.md +26 -0
- data/docs/DefaultApi.md +3127 -0
- data/docs/Estimation.md +30 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/LocationInner.md +15 -0
- data/docs/PredictBody.md +30 -0
- data/docs/ProgressRequest.md +20 -0
- data/docs/ProgressResponse.md +32 -0
- data/docs/QuicksettingsHint.md +20 -0
- data/docs/Request.md +15 -0
- data/docs/ResetBody.md +20 -0
- data/docs/ValidationError.md +22 -0
- data/git_push.sh +57 -0
- data/lib/SwaggerStableDiffusionWebui/api/default_api.rb +3027 -0
- data/lib/SwaggerStableDiffusionWebui/api_client.rb +391 -0
- data/lib/SwaggerStableDiffusionWebui/api_error.rb +58 -0
- data/lib/SwaggerStableDiffusionWebui/configuration.rb +288 -0
- data/lib/SwaggerStableDiffusionWebui/models/body_detect_controlnet_detect_post.rb +265 -0
- data/lib/SwaggerStableDiffusionWebui/models/estimation.rb +285 -0
- data/lib/SwaggerStableDiffusionWebui/models/http_validation_error.rb +221 -0
- data/lib/SwaggerStableDiffusionWebui/models/location_inner.rb +230 -0
- data/lib/SwaggerStableDiffusionWebui/models/predict_body.rb +283 -0
- data/lib/SwaggerStableDiffusionWebui/models/progress_request.rb +232 -0
- data/lib/SwaggerStableDiffusionWebui/models/progress_response.rb +301 -0
- data/lib/SwaggerStableDiffusionWebui/models/quicksettings_hint.rb +238 -0
- data/lib/SwaggerStableDiffusionWebui/models/request.rb +230 -0
- data/lib/SwaggerStableDiffusionWebui/models/reset_body.rb +238 -0
- data/lib/SwaggerStableDiffusionWebui/models/validation_error.rb +254 -0
- data/lib/SwaggerStableDiffusionWebui/version.rb +15 -0
- data/lib/SwaggerStableDiffusionWebui.rb +51 -0
- data/spec/api/default_api_spec.rb +574 -0
- data/spec/api_client_spec.rb +228 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/body_detect_controlnet_detect_post_spec.rb +58 -0
- data/spec/models/estimation_spec.rb +70 -0
- data/spec/models/http_validation_error_spec.rb +34 -0
- data/spec/models/location_inner_spec.rb +28 -0
- data/spec/models/predict_body_spec.rb +70 -0
- data/spec/models/progress_request_spec.rb +40 -0
- data/spec/models/progress_response_spec.rb +76 -0
- data/spec/models/quicksettings_hint_spec.rb +40 -0
- data/spec/models/request_spec.rb +28 -0
- data/spec/models/reset_body_spec.rb +40 -0
- data/spec/models/validation_error_spec.rb +46 -0
- data/spec/spec_helper.rb +111 -0
- metadata +147 -0
data/docs/Estimation.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::Estimation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **msg** | **String** | | [optional][default to 'estimation'] |
|
8
|
+
| **rank** | **Integer** | | [optional] |
|
9
|
+
| **queue_size** | **Integer** | | |
|
10
|
+
| **avg_event_process_time** | **Float** | | [optional] |
|
11
|
+
| **avg_event_concurrent_process_time** | **Float** | | [optional] |
|
12
|
+
| **rank_eta** | **Float** | | [optional] |
|
13
|
+
| **queue_eta** | **Float** | | |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'SwaggerStableDiffusionWebui'
|
19
|
+
|
20
|
+
instance = SwaggerStableDiffusionWebui::Estimation.new(
|
21
|
+
msg: null,
|
22
|
+
rank: null,
|
23
|
+
queue_size: null,
|
24
|
+
avg_event_process_time: null,
|
25
|
+
avg_event_concurrent_process_time: null,
|
26
|
+
rank_eta: null,
|
27
|
+
queue_eta: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::HTTPValidationError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **detail** | [**Array<ValidationError>**](ValidationError.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'SwaggerStableDiffusionWebui'
|
13
|
+
|
14
|
+
instance = SwaggerStableDiffusionWebui::HTTPValidationError.new(
|
15
|
+
detail: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::LocationInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'SwaggerStableDiffusionWebui'
|
12
|
+
|
13
|
+
instance = SwaggerStableDiffusionWebui::LocationInner.new()
|
14
|
+
```
|
15
|
+
|
data/docs/PredictBody.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::PredictBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **session_hash** | **String** | | [optional] |
|
8
|
+
| **event_id** | **String** | | [optional] |
|
9
|
+
| **data** | **Array<Object>** | | |
|
10
|
+
| **event_data** | **Object** | | [optional] |
|
11
|
+
| **fn_index** | **Integer** | | [optional] |
|
12
|
+
| **batched** | **Boolean** | | [optional][default to false] |
|
13
|
+
| **request** | [**Request**](Request.md) | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'SwaggerStableDiffusionWebui'
|
19
|
+
|
20
|
+
instance = SwaggerStableDiffusionWebui::PredictBody.new(
|
21
|
+
session_hash: null,
|
22
|
+
event_id: null,
|
23
|
+
data: null,
|
24
|
+
event_data: null,
|
25
|
+
fn_index: null,
|
26
|
+
batched: null,
|
27
|
+
request: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::ProgressRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id_task** | **String** | id of the task to get progress for | [optional] |
|
8
|
+
| **id_live_preview** | **Integer** | id of last received last preview image | [optional][default to -1] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'SwaggerStableDiffusionWebui'
|
14
|
+
|
15
|
+
instance = SwaggerStableDiffusionWebui::ProgressRequest.new(
|
16
|
+
id_task: null,
|
17
|
+
id_live_preview: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::ProgressResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **active** | **Boolean** | | |
|
8
|
+
| **queued** | **Boolean** | | |
|
9
|
+
| **completed** | **Boolean** | | |
|
10
|
+
| **progress** | **Float** | The progress with a range of 0 to 1 | [optional] |
|
11
|
+
| **eta** | **Float** | | [optional] |
|
12
|
+
| **live_preview** | **String** | Current live preview; a data: uri | [optional] |
|
13
|
+
| **id_live_preview** | **Integer** | Send this together with next request to prevent receiving same image | [optional] |
|
14
|
+
| **textinfo** | **String** | Info text used by WebUI. | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'SwaggerStableDiffusionWebui'
|
20
|
+
|
21
|
+
instance = SwaggerStableDiffusionWebui::ProgressResponse.new(
|
22
|
+
active: null,
|
23
|
+
queued: null,
|
24
|
+
completed: null,
|
25
|
+
progress: null,
|
26
|
+
eta: null,
|
27
|
+
live_preview: null,
|
28
|
+
id_live_preview: null,
|
29
|
+
textinfo: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::QuicksettingsHint
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | |
|
8
|
+
| **label** | **String** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'SwaggerStableDiffusionWebui'
|
14
|
+
|
15
|
+
instance = SwaggerStableDiffusionWebui::QuicksettingsHint.new(
|
16
|
+
name: null,
|
17
|
+
label: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Request.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::Request
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'SwaggerStableDiffusionWebui'
|
12
|
+
|
13
|
+
instance = SwaggerStableDiffusionWebui::Request.new()
|
14
|
+
```
|
15
|
+
|
data/docs/ResetBody.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::ResetBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **session_hash** | **String** | | |
|
8
|
+
| **fn_index** | **Integer** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'SwaggerStableDiffusionWebui'
|
14
|
+
|
15
|
+
instance = SwaggerStableDiffusionWebui::ResetBody.new(
|
16
|
+
session_hash: null,
|
17
|
+
fn_index: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::ValidationError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **loc** | [**Array<LocationInner>**](LocationInner.md) | | |
|
8
|
+
| **msg** | **String** | | |
|
9
|
+
| **type** | **String** | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SwaggerStableDiffusionWebui'
|
15
|
+
|
16
|
+
instance = SwaggerStableDiffusionWebui::ValidationError.new(
|
17
|
+
loc: null,
|
18
|
+
msg: null,
|
19
|
+
type: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=$(git remote)
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|