saddam213 commited on
Commit
7f75524
·
verified ·
1 Parent(s): 88765af

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: text-to-image
3
+ ---
4
+ # Chroma1-HD-ts
5
+ Original model: https://huggingface.co/lodestones/Chroma1-HD
6
+
7
+ Model repository for `TensorStack` library and the windows `Diffuse` application
8
+
9
+
10
+ ## C# Inference Demo
11
+ ```csharp
12
+ // Pipeline Config
13
+ var pipelineConfig = new PipelineConfig
14
+ {
15
+ Path = "TensorStack/Chroma1-HD-ts",
16
+ Pipeline = "ChromaPipeline",
17
+ ProcessType = ProcessType.TextToImage,
18
+ IsFullOffloadEnabled = true,
19
+ DataType = DataType.Bfloat16
20
+ };
21
+
22
+ // Create Pipeline
23
+ using (var pythonPipeline = new PythonPipeline(pipelineConfig))
24
+ {
25
+ // Download/Load Model
26
+ await pythonPipeline.LoadAsync();
27
+
28
+ // Generate Option
29
+ var options = new PipelineOptions
30
+ {
31
+ Prompt = "Cute doggo riding a bicycle",
32
+ Steps = 30,
33
+ Width = 1024,
34
+ Height = 1024,
35
+ GuidanceScale = 4f,
36
+ Scheduler = SchedulerType.FlowMatchEulerDiscrete
37
+ };
38
+
39
+ // Generate
40
+ var response = await pythonPipeline.GenerateAsync(options);
41
+
42
+ // Save Image
43
+ await response
44
+ .AsImageTensor()
45
+ .SaveAsync("Result.png");
46
+ }
47
+ ```