stability_sdk 0.3.0 → 0.3.2

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: 3e707d41b381676dfbc958975bae028b82a52a7828529c52db7809db125791e9
4
- data.tar.gz: 9e7aafbd1c0e5638ad2bc860312e55a0b2973ec3c8423fa050730cfa15887efa
3
+ metadata.gz: 4bfbab3c7b0c366f01681d5adf54193d9473741c8616d3417628011f87e60bea
4
+ data.tar.gz: f30748cc3ddefc1250b286f695cf039d8297970ef8757720620b9cec9d60e0cc
5
5
  SHA512:
6
- metadata.gz: 37cb8a18a1accb3cf30f6dc780781f71dfe75ad648713a2c335d1b2be41f7546c0450d88ec0ae833354db24a3d3659fe0ac8163d1f3a1a076f08e8e344282c9c
7
- data.tar.gz: aa66ce05d53d3d5bd6aa661f752a5d71f61c9835804d69f38834e07bc4e5259d971816eb4d4061264cfadc9a825a425b0469c794369eb48c1080cdbf1d1342d3
6
+ metadata.gz: 7f1eab7a664df5a09cd7785f9636e7e7542b87ed3ce475ceb5dd40005ec6ddc2e246346e258225d2e6f04b3472f28a316c91a32b3aa3e069acf031df5db20b82
7
+ data.tar.gz: c74dffd4dcbffb5d3211d6bc4762d76384badef93c85e33432c93bf7c3b4c1f0eab2b934c8af0f4065f791e1fd3204408cdc50a5c16037c3cc26b44ef6bc449e
data/README.md CHANGED
@@ -148,9 +148,13 @@ cd api-interfaces
148
148
 
149
149
  # checkout some branch/commit you need
150
150
  git fetch
151
- git reset --hard origin/some_branch
151
+ git checkout origin/some_branch # or `git reset --hard origin/some_branch`
152
152
 
153
153
  cd ..
154
+ git add
155
+
156
+ # if you need to follow the updates of submodules inside the Stability-AI/api-interfaces, you have to update submodules recursively
157
+ git submodule update --init --recursive
154
158
  ```
155
159
 
156
160
  - build
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ task :default => :test
11
11
 
12
12
  desc "Parse proto file and generate output"
13
13
  task :protoc do
14
- sh "grpc_tools_ruby_protoc -I api-interfaces/src/proto/ --ruby_out=lib --grpc_out=lib api-interfaces/src/proto/generation.proto"
14
+ sh "grpc_tools_ruby_protoc -I api-interfaces/src/proto/ -I api-interfaces/src/tensorizer/proto/ --ruby_out=lib --grpc_out=lib api-interfaces/src/proto/generation.proto"
15
15
  end
16
16
 
17
17
  desc "Compile a dashboard proto file"
data/lib/generation_pb.rb CHANGED
@@ -3,6 +3,8 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'tensors_pb'
7
+
6
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
9
  add_file("generation.proto", :syntax => :proto3) do
8
10
  add_message "gooseai.Token" do
@@ -28,6 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
30
  optional :text, :string, 6
29
31
  optional :tokens, :message, 7, "gooseai.Tokens"
30
32
  optional :classifier, :message, 11, "gooseai.ClassifierParameters"
33
+ optional :tensor, :message, 14, "tensors.Tensor"
31
34
  end
32
35
  end
33
36
  add_message "gooseai.PromptParameters" do
@@ -48,6 +51,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
48
51
  proto3_optional :latent_channels, :uint64, 3
49
52
  proto3_optional :downsampling_factor, :uint64, 4
50
53
  proto3_optional :cfg_scale, :float, 5
54
+ proto3_optional :init_noise_scale, :float, 6
51
55
  end
52
56
  add_message "gooseai.ConditionerParameters" do
53
57
  proto3_optional :vector_adjust_prior, :string, 1
@@ -108,6 +112,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
108
112
  proto3_optional :steps, :uint64, 5
109
113
  proto3_optional :transform, :message, 6, "gooseai.TransformType"
110
114
  repeated :parameters, :message, 7, "gooseai.StepParameter"
115
+ proto3_optional :masked_area_init, :enum, 8, "gooseai.MaskedAreaInit"
116
+ proto3_optional :weight_method, :enum, 9, "gooseai.WeightMethod"
111
117
  end
112
118
  add_message "gooseai.ClassifierConcept" do
113
119
  optional :concept, :string, 1
@@ -186,6 +192,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
186
192
  value :ARTIFACT_EMBEDDING, 5
187
193
  value :ARTIFACT_CLASSIFICATIONS, 6
188
194
  value :ARTIFACT_MASK, 7
195
+ value :ARTIFACT_LATENT, 8
196
+ value :ARTIFACT_TENSOR, 9
197
+ end
198
+ add_enum "gooseai.MaskedAreaInit" do
199
+ value :MASKED_AREA_INIT_ZERO, 0
200
+ value :MASKED_AREA_INIT_RANDOM, 1
201
+ value :MASKED_AREA_INIT_ORIGINAL, 2
202
+ end
203
+ add_enum "gooseai.WeightMethod" do
204
+ value :TEXT_ENCODER, 0
205
+ value :CROSS_ATTENTION, 1
189
206
  end
190
207
  add_enum "gooseai.DiffusionSampler" do
191
208
  value :SAMPLER_DDIM, 0
@@ -196,6 +213,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
196
213
  value :SAMPLER_K_DPM_2, 5
197
214
  value :SAMPLER_K_DPM_2_ANCESTRAL, 6
198
215
  value :SAMPLER_K_LMS, 7
216
+ value :SAMPLER_K_DPMPP_2S_ANCESTRAL, 8
217
+ value :SAMPLER_K_DPMPP_2M, 9
199
218
  end
200
219
  add_enum "gooseai.Upscaler" do
201
220
  value :UPSCALER_RGB, 0
@@ -278,6 +297,8 @@ module Gooseai
278
297
  ChainRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gooseai.ChainRequest").msgclass
279
298
  FinishReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gooseai.FinishReason").enummodule
280
299
  ArtifactType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gooseai.ArtifactType").enummodule
300
+ MaskedAreaInit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gooseai.MaskedAreaInit").enummodule
301
+ WeightMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gooseai.WeightMethod").enummodule
281
302
  DiffusionSampler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gooseai.DiffusionSampler").enummodule
282
303
  Upscaler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gooseai.Upscaler").enummodule
283
304
  GuidancePreset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gooseai.GuidancePreset").enummodule
@@ -1,3 +1,3 @@
1
1
  module StabilitySDK
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/tensors_pb.rb ADDED
@@ -0,0 +1,63 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: tensors.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("tensors.proto", :syntax => :proto3) do
8
+ add_message "tensors.Tensor" do
9
+ optional :dtype, :enum, 1, "tensors.Dtype"
10
+ repeated :shape, :int64, 2
11
+ optional :data, :bytes, 3
12
+ proto3_optional :attr_type, :enum, 4, "tensors.AttributeType"
13
+ end
14
+ add_message "tensors.Attribute" do
15
+ optional :name, :string, 1
16
+ oneof :value do
17
+ optional :module, :message, 3, "tensors.Module"
18
+ optional :tensor, :message, 4, "tensors.Tensor"
19
+ optional :string, :string, 5
20
+ optional :int64, :int64, 6
21
+ optional :float, :float, 7
22
+ optional :bool, :bool, 8
23
+ end
24
+ end
25
+ add_message "tensors.Module" do
26
+ optional :name, :string, 1
27
+ repeated :names, :string, 2
28
+ repeated :attributes, :message, 3, "tensors.Attribute"
29
+ end
30
+ add_enum "tensors.Dtype" do
31
+ value :DT_INVALID, 0
32
+ value :DT_FLOAT32, 1
33
+ value :DT_FLOAT64, 2
34
+ value :DT_FLOAT16, 3
35
+ value :DT_BFLOAT16, 4
36
+ value :DT_COMPLEX32, 5
37
+ value :DT_COMPLEX64, 6
38
+ value :DT_COMPLEX128, 7
39
+ value :DT_UINT8, 8
40
+ value :DT_INT8, 9
41
+ value :DT_INT16, 10
42
+ value :DT_INT32, 11
43
+ value :DT_INT64, 12
44
+ value :DT_BOOL, 13
45
+ value :DT_QUINT8, 14
46
+ value :DT_QINT8, 15
47
+ value :DT_QINT32, 16
48
+ value :DT_QUINT4_2, 17
49
+ end
50
+ add_enum "tensors.AttributeType" do
51
+ value :AT_PARAMETER, 0
52
+ value :AT_BUFFER, 1
53
+ end
54
+ end
55
+ end
56
+
57
+ module Tensors
58
+ Tensor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensors.Tensor").msgclass
59
+ Attribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensors.Attribute").msgclass
60
+ Module = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensors.Module").msgclass
61
+ Dtype = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensors.Dtype").enummodule
62
+ AttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensors.AttributeType").enummodule
63
+ 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.3.0
4
+ version: 0.3.2
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-11-17 00:00:00.000000000 Z
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -116,6 +116,7 @@ files:
116
116
  - lib/stability_sdk/client.rb
117
117
  - lib/stability_sdk/dashboard_client.rb
118
118
  - lib/stability_sdk/version.rb
119
+ - lib/tensors_pb.rb
119
120
  - stability_sdk.gemspec
120
121
  homepage: https://github.com/cou929/stability-sdk-ruby
121
122
  licenses: