stability_sdk 0.3.0 → 0.3.1
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 +4 -4
- data/README.md +5 -1
- data/Rakefile +1 -1
- data/lib/generation_pb.rb +21 -0
- 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: eb4bcef5f20a0b7147814c3c3cd90df2b39a54dc162d207a6c7f91141888cdb3
|
4
|
+
data.tar.gz: 77aa1b30334169b9437ca8798334fb081b7ff1c4305d09c69128bc5348768ba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d82e9bd6fdc0cec8b74e6ef774a82bd0d922327d99adae5b8ecccb55e7c7b3111e59d99c46fba8576aacbfd65fd4b3ea0c69a6e691b4b9967319a67b8a778b3f
|
7
|
+
data.tar.gz: 11ea3112c72f6a4a76fa6cd21457bf3808fddfa6956ffa170e7eebfdbdaca58f2e91dc68accb813b91bda6d82874c73b5d3fc4cf59025acdf96b969f98305904
|
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
|
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.
|
4
|
+
version: 0.3.1
|
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
|
+
date: 2022-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|