Instructions to use haoningwu/MRGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use haoningwu/MRGen with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("haoningwu/MRGen", 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
Upload 2 files
Browse files- vae/config.json +1 -1
vae/config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
"_diffusers_version": "0.29.2",
|
| 4 |
-
"_name_or_path": "/mnt/petrelfs/wuhaoning/MedicalGen/MRI_diffusion/train_vae/
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
128,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
"_diffusers_version": "0.29.2",
|
| 4 |
+
"_name_or_path": "/mnt/petrelfs/wuhaoning/MedicalGen/MRI_diffusion/train_vae/MedGen_240930-000404/checkpoint_lastest/",
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
128,
|