Text-to-Image
Diffusers
Safetensors
StableDiffusionXLPipeline
materials
microstructure
electron_micrograph
characterization
scientific_figure_understanding
Instructions to use UniParser/EM3M-Gen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use UniParser/EM3M-Gen with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("UniParser/EM3M-Gen", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -37,8 +37,8 @@ model_id = "NNNan/UniEM-Gen"
|
|
| 37 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 38 |
pipe = pipe.to("cuda")
|
| 39 |
|
| 40 |
-
# Example prompt
|
| 41 |
-
prompt = "
|
| 42 |
|
| 43 |
# Generate image
|
| 44 |
image = pipe(prompt).images[0]
|
|
|
|
| 37 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 38 |
pipe = pipe.to("cuda")
|
| 39 |
|
| 40 |
+
# Example prompt, sampled from UniEM-3M.
|
| 41 |
+
prompt = "SEM of Ceramic Powder: A mix of plate-like and rod-shaped particles. nanostructured. high density. densely packed and agglomerated. Multilayer. Wide range of particle sizes. Grayscale particles on a dark background."
|
| 42 |
|
| 43 |
# Generate image
|
| 44 |
image = pipe(prompt).images[0]
|