Instructions to use DionTimmer/controlnet_qrcode-control_v1p_sd15 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use DionTimmer/controlnet_qrcode-control_v1p_sd15 with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("DionTimmer/controlnet_qrcode-control_v1p_sd15") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Should have a `model_type` key in its config.json
#4
by DeveloperXXX - opened
I try to initialize the baseline model as follows;
import transformers
model_name = "DionTimmer/controlnet_qrcode-control_v1p_sd15"
baseline_model = transformers.AutoModelForSequenceClassification.from_pretrained(
model_name,
return_dict=False,
torchscript=True,
).eval()
and it throws error; Should have a model_type key in its config.json