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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 691542746c11c2572a6b1ebe01ca5e1d59ccdce3b3a3ded98a04da1adc1a45e7
4
- data.tar.gz: 5054814602c875af5798ccfa1a23581a85bb41630f8682a5c6a19c9dde8aa2be
3
+ metadata.gz: 3722c0511e8c8d5868e801885721dc7f93f808d9bce49bf87a30e9bbffcc3f0b
4
+ data.tar.gz: c6fa44b555e8d7e4dfaacad3703aebf089b2e0f22227d580d8acea32742900cb
5
5
  SHA512:
6
- metadata.gz: 860515e0128471380abd4d5830cb493060f3360838b0418a65f56f88eda11e73af565c173e21c93a610a1cc5eef34ba25d469cfd31f67850d3da4176e6d59a4d
7
- data.tar.gz: 311b21b641f541a50061003af9bf08d9ec7bc5d86c41848fa7ec5135f305be1e9762d49e5576d1935d0b243437d236d9cb9e09e83bf297dd89292349a5b65ca4
6
+ metadata.gz: 053ad1ed637f8d589babb029fc6e87fc45f2f3e2d62a6fe955052aa46fd8df880967eb6ac21335e676648a1e881ec6942a40ce0b303206c93bd0a39bd24a21c1
7
+ data.tar.gz: 69cc1321a15727e12194eb18467ffd97f7bb86c973e7104df15708e4c909985e45685f781b6cb94acc2b0eb2627b40c45cd968cb69d3fd8fc483f89f27124dd3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stability_sdk (0.2.7)
4
+ stability_sdk (0.2.8)
5
5
  grpc (>= 1.0.0)
6
6
  mime-types (>= 3.0.0)
7
7
 
@@ -14,7 +14,7 @@ module StabilitySDK
14
14
  DEFAULT_START_SCHEDULE = 1.0
15
15
  DEFAULT_END_SCHEDULE = 0.01
16
16
 
17
- sampler_algorithms = {
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) ? sampler_algorithms[options[:sampler]] : DEFAULT_SAMPLER_ALGORITHM,
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,
@@ -1,3 +1,3 @@
1
1
  module StabilitySDK
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
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.7
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-28 00:00:00.000000000 Z
11
+ date: 2022-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc