stability_sdk 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/stability_sdk/client.rb +2 -2
- data/lib/stability_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3722c0511e8c8d5868e801885721dc7f93f808d9bce49bf87a30e9bbffcc3f0b
|
4
|
+
data.tar.gz: c6fa44b555e8d7e4dfaacad3703aebf089b2e0f22227d580d8acea32742900cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 053ad1ed637f8d589babb029fc6e87fc45f2f3e2d62a6fe955052aa46fd8df880967eb6ac21335e676648a1e881ec6942a40ce0b303206c93bd0a39bd24a21c1
|
7
|
+
data.tar.gz: 69cc1321a15727e12194eb18467ffd97f7bb86c973e7104df15708e4c909985e45685f781b6cb94acc2b0eb2627b40c45cd968cb69d3fd8fc483f89f27124dd3
|
data/Gemfile.lock
CHANGED
data/lib/stability_sdk/client.rb
CHANGED
@@ -14,7 +14,7 @@ module StabilitySDK
|
|
14
14
|
DEFAULT_START_SCHEDULE = 1.0
|
15
15
|
DEFAULT_END_SCHEDULE = 0.01
|
16
16
|
|
17
|
-
|
17
|
+
SAMPLER_ALGORITHMS = {
|
18
18
|
"ddim": Gooseai::DiffusionSampler::SAMPLER_DDIM,
|
19
19
|
"plms": Gooseai::DiffusionSampler::SAMPLER_DDPM,
|
20
20
|
"k_euler": Gooseai::DiffusionSampler::SAMPLER_K_EULER,
|
@@ -46,7 +46,7 @@ module StabilitySDK
|
|
46
46
|
steps = options.has_key?(:steps) ? options[:steps].to_i : DEFAULT_STEPS
|
47
47
|
seed = options.has_key?(:seed) ? [options[:seed].to_i] : [rand(4294967295)]
|
48
48
|
transform = Gooseai::TransformType.new(
|
49
|
-
diffusion: options.has_key?(:sampler) ?
|
49
|
+
diffusion: options.has_key?(:sampler) ? SAMPLER_ALGORITHMS[options[:sampler]] : DEFAULT_SAMPLER_ALGORITHM,
|
50
50
|
)
|
51
51
|
parameters = [Gooseai::StepParameter.new(
|
52
52
|
scaled_step: 0,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stability_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosei Moriyama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|