Skip to content

Commit db49e04

Browse files
committed
Review
1 parent 520fd58 commit db49e04

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

TensorStack.StableDiffusion/Common/TextEncoderResult.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) TensorStack. All rights reserved.
22
// Licensed under the Apache 2.0 License.
3-
using System;
43
using TensorStack.Common.Tensor;
54

65
namespace TensorStack.StableDiffusion.Common
@@ -32,6 +31,4 @@ public Tensor<float> GetHiddenStates(int index)
3231
return _hiddenStates[0];
3332
}
3433
}
35-
36-
public record TextEncoderBatchedResult(Memory<float> PromptEmbeds, Memory<float> PromptPooledEmbeds);
3734
}

TensorStack.StableDiffusion/Models/CLIPTextModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System.Threading;
55
using System.Threading.Tasks;
66
using TensorStack.Common;
7-
using TensorStack.Common.Tensor;
87
using TensorStack.StableDiffusion.Common;
98
using TensorStack.StableDiffusion.Config;
109
using TensorStack.TextGeneration.Tokenizers;

TensorStack.StableDiffusion/Pipelines/Flux/FluxBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ private async Task<Tensor<float>> CreateLatentInputAsync(IPipelineOptions option
421421
/// <returns></returns>
422422
protected Tensor<float> CreateLatentImageIds(IPipelineOptions options)
423423
{
424-
var height = options.Height / AutoEncoder.LatentChannels;
425-
var width = options.Width / AutoEncoder.LatentChannels;
424+
var height = options.Height / AutoEncoder.LatentChannels;
425+
var width = options.Width / AutoEncoder.LatentChannels;
426426
var latentIds = new Tensor<float>([height, width, 3]);
427427

428428
for (int i = 0; i < height; i++)

TensorStack.StableDiffusion/Pipelines/Flux/FluxConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public record FluxConfig : PipelineConfig
1818
public FluxConfig()
1919
{
2020
Tokenizer = new TokenizerConfig();
21-
Tokenizer2 = new TokenizerConfig{MaxLength = 512 };
21+
Tokenizer2 = new TokenizerConfig { MaxLength = 512 };
2222
TextEncoder = new CLIPModelConfig();
2323
TextEncoder2 = new CLIPModelConfig
2424
{

TensorStack.StableDiffusion/Pipelines/IPipelineOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface IPipelineOptions : IRunOptions
2727
float ControlNetStrength { get; set; }
2828
ImageTensor InputControlImage { get; set; }
2929

30-
int ClipSkip{ get; set; }
30+
int ClipSkip { get; set; }
3131
float AestheticScore { get; set; }
3232
float AestheticNegativeScore { get; set; }
3333

TensorStack.StableDiffusion/Pipelines/PipelineConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public abstract record PipelineConfig
1111
/// <summary>
1212
/// Gets or sets the type.
1313
/// </summary>
14-
public abstract PipelineType Pipeline { get;}
14+
public abstract PipelineType Pipeline { get; }
1515

1616
/// <summary>
1717
/// Saves the configuration to file.

0 commit comments

Comments
 (0)