Image-to-Image
Diffusers
Safetensors
HSIGenePipeline
hsigene
hyperspectral
latent-diffusion
controlnet
Instructions to use BiliSakura/HSIGene with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BiliSakura/HSIGene with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("BiliSakura/HSIGene") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
| """VAE utilities.""" | |
| import torch.nn as nn | |
| def zero_module(module): | |
| """Zero out the parameters of a module and return it.""" | |
| for p in module.parameters(): | |
| p.detach().zero_() | |
| return module | |