stability_sdk 0.2.6 → 0.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81079c9fb4e28945d59ed682205c0404d5d26df6712747a78f6fdce672573046
4
- data.tar.gz: 56fe2bc98e3a71a2f14f75628281837f2fe7d2bcc350161f1676d450861da2db
3
+ metadata.gz: 3722c0511e8c8d5868e801885721dc7f93f808d9bce49bf87a30e9bbffcc3f0b
4
+ data.tar.gz: c6fa44b555e8d7e4dfaacad3703aebf089b2e0f22227d580d8acea32742900cb
5
5
  SHA512:
6
- metadata.gz: 0e1778effd5d0042e07d0fdd371cde67c8ba6008ad7a2a1c661aff784fad2b33cb2603af322fa80e4d897b9950ad8cd31286308246772f150bde05b1395c23d5
7
- data.tar.gz: ea0a7f96144d477ee4051cfb123dcd640e20233ac291d2fee1ce6b89b191f886060ee7651836a5ef0f513e640a44e978c94124096420d41da563201ecdec435e
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.6)
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.6"
2
+ VERSION = "0.2.8"
3
3
  end
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.description = "Interacting with stability.ai APIs (e.g. stable diffusion inference). Ruby client of https://github.com/Stability-AI/stability-sdk ."
11
11
  spec.homepage = "https://github.com/cou929/stability-sdk-ruby"
12
12
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
+ spec.license = "MIT"
13
14
 
14
15
  spec.metadata["homepage_uri"] = spec.homepage
15
16
  spec.metadata["source_code_uri"] = "https://github.com/cou929/stability-sdk-ruby"
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.6
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
@@ -80,7 +80,8 @@ files:
80
80
  - lib/stability_sdk/version.rb
81
81
  - stability_sdk.gemspec
82
82
  homepage: https://github.com/cou929/stability-sdk-ruby
83
- licenses: []
83
+ licenses:
84
+ - MIT
84
85
  metadata:
85
86
  homepage_uri: https://github.com/cou929/stability-sdk-ruby
86
87
  source_code_uri: https://github.com/cou929/stability-sdk-ruby