Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

minpeter
/
soldier-sketch

Text-to-Image
Diffusers
flux
lora
template:sd-lora
fluxgym
Model card Files Files and versions
xet
Community

Instructions to use minpeter/soldier-sketch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use minpeter/soldier-sketch with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("minpeter/soldier-sketch")
    
    prompt = "ss, a detailed sketch of a soldier in a helmet holding a modern rifle against a stark white background."
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
soldier-sketch
48.3 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
minpeter's picture
minpeter
Delete soldier-sketch-000004.safetensors
d577b86 verified about 1 year ago
  • sample
    Upload folder using huggingface_hub about 1 year ago
  • .gitattributes
    5.52 kB
    Upload folder using huggingface_hub about 1 year ago
  • README.md
    1.27 kB
    Upload folder using huggingface_hub about 1 year ago
  • dataset.toml
    283 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • sample_prompts.txt
    322 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • soldier-sketch.safetensors
    39.8 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • train.sh
    1.45 kB
    Upload folder using huggingface_hub about 1 year ago