Text-to-Image
Diffusers
TensorBoard
stable-diffusion-xl
stable-diffusion-xl-diffusers
lora
template:sd-lora
Run this model with HF Jobs
Run computational-mama/tardispace 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/computational-mama/tardispace. 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/computational-mama/tardispace 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 computational-mama/tardispace with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use computational-mama/tardispace with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("computational-mama/tardispace") prompt = "A <s0><s1> character pink green tardigrade floating in an empty curvilinear space" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesFiles changed (12)
- .gitattributes+2
- README.mdAdded+90
- image-0.pngAdded
- image-1.pngAdded
- image-2.pngAdded
- image-3.pngAdded
- logs/dreambooth-lora-sd-xl/1714041059.0567343/events.out.tfevents.1714041059.r-computational-mama-autotrain-tardispace-gnlehqsc-dc48e-ek7g6.182.1Added+3
- logs/dreambooth-lora-sd-xl/1714041059.0580099/hparams.ymlAdded+75
- logs/dreambooth-lora-sd-xl/events.out.tfevents.1714041059.r-computational-mama-autotrain-tardispace-gnlehqsc-dc48e-ek7g6.182.0Added+3
- pytorch_lora_weights.safetensorsAdded+3
- tardispace.safetensorsAdded+3
- tardispace_emb.safetensorsAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines333435363732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textimage-0.png filter=lfs diff=lfs merge=lfs -textimage-1.png filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990---tags:- stable-diffusion-xl- stable-diffusion-xl-diffusers- text-to-image- diffusers- lora- template:sd-lorawidget:- text: A <s0><s1> character pink green tardigrade floating in an empty curvilinear space output: url: image-0.png- text: A <s0><s1> character sleepy blue green tardigrade laying on the floor of an empty space with columns output: url: image-1.png- text: A <s0><s1> character a green pink tardigrade standing in front of a camera in an empty space with colonnade output: url: image-2.png- text: A <s0><s1> character a blue purple tardigrade walking in a curvilinear empty space output: url: image-3.pngbase_model: stabilityai/stable-diffusion-xl-base-1.0instance_prompt: A <s0><s1> characterlicense: openrail++---
# SDXL LoRA DreamBooth - computational-mama/tardispace
<Gallery />
## Model description
### These are computational-mama/tardispace LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
## Download model
### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
- **LoRA**: download **[`tardispace.safetensors` here 💾](/computational-mama/tardispace/blob/main/tardispace.safetensors)**. - Place it on your `models/Lora` folder. - On AUTOMATIC1111, load the LoRA by adding `<lora:tardispace:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).- *Embeddings*: download **[`tardispace_emb.safetensors` here 💾](/computational-mama/tardispace/blob/main/tardispace_emb.safetensors)**. - Place it on it on your `embeddings` folder - Use it by adding `tardispace_emb` to your prompt. For example, `A tardispace_emb character` (you need both the LoRA and the embeddings as they were trained together for this LoRA)
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
```pyfrom diffusers import AutoPipelineForText2Imageimport torchfrom huggingface_hub import hf_hub_downloadfrom safetensors.torch import load_file pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')pipeline.load_lora_weights('computational-mama/tardispace', weight_name='pytorch_lora_weights.safetensors')embedding_path = hf_hub_download(repo_id='computational-mama/tardispace', filename='tardispace_emb.safetensors' repo_type="model")state_dict = load_file(embedding_path)pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2) image = pipeline('A <s0><s1> character').images[0]```
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
## Trigger words
To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
to trigger concept `TOK` → use `<s0><s1>` in your prompt
## DetailsAll [Files & versions](/computational-mama/tardispace/tree/main).
The weights were trained using [🧨 diffusers Advanced Dreambooth Training Script](https://github.com/huggingface/diffusers/blob/main/examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py).
LoRA for the text encoder was enabled. False.
Pivotal tuning was enabled: True.
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
123version https://git-lfs.github.com/spec/v1oid sha256:dd0dd85779926a4da45da9c34d1cb41027075d5c64a541a7da73bb88f02f5c1fsize 3569123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1.0e-08adam_weight_decay: 0.0001adam_weight_decay_text_encoder: nullallow_tf32: falsecache_dir: nullcache_latents: truecaption_column: promptcenter_crop: falsecheckpointing_steps: 100000checkpoints_total_limit: nullclass_data_dir: nullclass_prompt: nullcrops_coords_top_left_h: 0crops_coords_top_left_w: 0dataloader_num_workers: 0dataset_config_name: nulldataset_name: ./219690b7-be29-44d9-9769-28fc8806fbe5enable_xformers_memory_efficient_attention: falsegradient_accumulation_steps: 1gradient_checkpointing: truehub_model_id: nullhub_token: nullimage_column: imageinstance_data_dir: nullinstance_prompt: A <s0><s1> characterlearning_rate: 1.0local_rank: -1logging_dir: logslr_num_cycles: 1lr_power: 1.0lr_scheduler: constantlr_warmup_steps: 0max_grad_norm: 1.0max_train_steps: 720mixed_precision: bf16noise_offset: 0num_class_images: 100num_new_tokens_per_abstraction: 2num_train_epochs: 120num_validation_images: 4optimizer: prodigyoutput_dir: tardispacepretrained_model_name_or_path: stabilityai/stable-diffusion-xl-base-1.0pretrained_vae_model_name_or_path: madebyollin/sdxl-vae-fp16-fixprior_generation_precision: nullprior_loss_weight: 1.0prodigy_beta3: nullprodigy_decouple: trueprodigy_safeguard_warmup: trueprodigy_use_bias_correction: truepush_to_hub: falserank: 32repeats: 3report_to: tensorboardresolution: 1024resume_from_checkpoint: nullrevision: nullsample_batch_size: 4scale_lr: falseseed: 42snr_gamma: nulltext_encoder_lr: 1.0token_abstraction: TOKtrain_batch_size: 2train_text_encoder: falsetrain_text_encoder_frac: 1.0train_text_encoder_ti: truetrain_text_encoder_ti_frac: 0.5use_8bit_adam: falsevalidation_epochs: 50validation_prompt: nullvariant: nullwith_prior_preservation: false123version https://git-lfs.github.com/spec/v1oid sha256:d627cbe73255b43b93b5f9251923e77b54f59a644e5542ed35524d369b4c45b0size 60314123version https://git-lfs.github.com/spec/v1oid sha256:0f0be24ef9f7cb51650be7aa86cb9d7254a9be8ffcd5e8178898048b73a2153esize 185963768123version https://git-lfs.github.com/spec/v1oid sha256:294a0c6d0b01e422e5f0f30dad4c980c70132da64dc9b853d029ea2fcd62d3c8size 186046568123version https://git-lfs.github.com/spec/v1oid sha256:4df0c4312f27c54c65f33ee364af79e5ee7c744f05f5d447048a74de47466452size 16536.gitattributes+2
README.mdAdded+90
image-0.pngAdded

Large File Pointer Details
- SHA256: a75b77eb9e0947cf6043a55c3db1feebbf11fa2994ad988bcbb22e69d1bba215
- Pointer size: 132 Bytes
- Size of remote file: 1.04 MB
image-1.pngAdded

Large File Pointer Details
- SHA256: 37cd0a3275ee37ba8f9ae6ac3f5498653ee1e42693e79376529259448cbaa044
- Pointer size: 132 Bytes
- Size of remote file: 1 MB
image-2.pngAdded

image-3.pngAdded

logs/dreambooth-lora-sd-xl/1714041059.0567343/events.out.tfevents.1714041059.r-computational-mama-autotrain-tardispace-gnlehqsc-dc48e-ek7g6.182.1Added+3
logs/dreambooth-lora-sd-xl/1714041059.0580099/hparams.ymlAdded+75
logs/dreambooth-lora-sd-xl/events.out.tfevents.1714041059.r-computational-mama-autotrain-tardispace-gnlehqsc-dc48e-ek7g6.182.0Added+3
pytorch_lora_weights.safetensorsAdded+3
tardispace.safetensorsAdded+3
tardispace_emb.safetensorsAdded+3