Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

mkoohim
/
PathoGen

Image-to-Image
Diffusers
PyTorch
diffusion
inpainting
histopathology
medical-imaging
pathology
Model card Files Files and versions
xet
Community

Instructions to use mkoohim/PathoGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use mkoohim/PathoGen with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    from diffusers.utils import load_image
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("mkoohim/PathoGen", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Turn this cat into a dog"
    input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
    
    image = pipe(image=input_image, prompt=prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
PathoGen
198 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
mkoohim's picture
mkoohim
fix readme
259b91f verified 5 months ago
  • scheduler
    Add PathoGen model: attention weights and configs 5 months ago
  • .gitattributes
    83 Bytes
    Add PathoGen model: attention weights and configs 5 months ago
  • README.md
    2.8 kB
    fix readme 5 months ago
  • attention.pt

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    198 MB
    xet
    Add PathoGen model: attention weights and configs 5 months ago
  • config.json
    839 Bytes
    Add PathoGen model: attention weights and configs 5 months ago