samim2024 commited on
Commit
86c0030
1 Parent(s): 8cb07a0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md CHANGED
@@ -24,5 +24,30 @@ inference:
24
  fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting,
25
  blurry, amputation
26
  ---
 
27
  ![preview](samples/4.jpeg)
28
  ![preview](samples/5.jpeg)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting,
25
  blurry, amputation
26
  ---
27
+ # **Samim Kumar Patel, Pretrained Model, With proper use of best Hyperparameters for Business UseCases for Production Level*
28
  ![preview](samples/4.jpeg)
29
  ![preview](samples/5.jpeg)
30
+
31
+ Introducing the pretrained Model from the base Model called stabilityai/stable-diffusion-2, which is very fast and production deployable.
32
+ It is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input.
33
+
34
+
35
+ ### Diffusers usage
36
+
37
+ ```bash
38
+ pip install torch diffusers
39
+ ```
40
+
41
+ ```py
42
+ from diffusers import StableDiffusionPipeline
43
+ import torch
44
+
45
+ model_id = "samim2024/text-to-image"
46
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
47
+ pipe = pipe.to("cuda")
48
+
49
+ prompt = "a photo of an astronaut riding a horse on mars"
50
+ image = pipe(prompt).images[0]
51
+
52
+ image.save("astronaut_rides_horse.png")
53
+ ```