Run this model with HF Jobs
Run Nihirc/Prompt2MedImage on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Nihirc/Prompt2MedImage. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Nihirc/Prompt2MedImage on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Nihirc/Prompt2MedImage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Nihirc/Prompt2MedImage with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Nihirc/Prompt2MedImage", 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
Nihir Chadderwala commited on
Commit ·
6b672af
1
Parent(s): dcaaff0
Submit model weights to HF
Browse filesFiles changed (3)
123version https://git-lfs.github.com/spec/v1oid sha256:aa85fdb850eed8e76381606755f9d014f9bdc6f7823665c694eded92a9956708size 224012345678910111213141516171819202122232425262728293031323334353637383940414243444546474849adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1.0e-08adam_weight_decay: 0.01allow_tf32: falsecache_dir: nullcaption_column: textcenter_crop: truecheckpointing_steps: 2000checkpoints_total_limit: nulldataloader_num_workers: 0dataset_config_name: nulldataset_name: nullenable_xformers_memory_efficient_attention: falsegradient_accumulation_steps: 5gradient_checkpointing: truehub_model_id: nullhub_token: nullimage_column: imageinput_pertubation: 0learning_rate: 1.0e-05local_rank: 0logging_dir: logslr_scheduler: constantlr_warmup_steps: 0max_grad_norm: 1.0max_train_samples: nullmax_train_steps: 29300mixed_precision: fp16noise_offset: 0non_ema_revision: nullnum_train_epochs: 50output_dir: modelpretrained_model_name_or_path: CompVis/stable-diffusion-v1-4push_to_hub: falserandom_flip: truereport_to: tensorboardresolution: 512resume_from_checkpoint: nullrevision: nullscale_lr: falseseed: nullsnr_gamma: nulltracker_project_name: text2image-fine-tunetrain_batch_size: 3train_data_dir: /home/ubuntu/imagesuse_8bit_adam: falseuse_ema: truevalidation_epochs: 5123version https://git-lfs.github.com/spec/v1oid sha256:e9d48972eb94b1cee63a6903450f10a3a33d7f8172d4c4c9b6a1fbd0f94e7afesize 1448578logs/text2image-fine-tune/1683738483.331732/events.out.tfevents.1683738483.ip-172-31-13-192.88493.1Deleted-3
logs/text2image-fine-tune/1683738483.3331249/hparams.ymlDeleted-49
logs/text2image-fine-tune/events.out.tfevents.1683738483.ip-172-31-13-192.88493.0Deleted-3