Instructions to use 1038lab/SDMatte with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use 1038lab/SDMatte 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("1038lab/SDMatte", 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
License Incompatibility
License Incompatibility
Hi, Iβd like to report a potential license conflict in 1038lab/SDMatte. From what I can tell, this model appears to be an adapter version ofstabilityai/stable-diffusion-2, which is licensed under the OpenRAIL++ . However, the model is currently published under the gpl-3.0 License, which might not be compatible due to use-based restrictions from the OpenRAIL++ license.
β οΈ Key Violations of the OpenRAIL++ License:
Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5.
πΉ Suggestions for Resolving
To align with the OpenRAIL++ license:
1. Add Use-based restrictions
2. Replace the tag of gpl-3.0 license reference with OpenRAIL++ License
Hope this helps clarify the situation! Let me know if you have any questions or need help updating the license terms β happy to assist π Let me know if I misunderstood anything β happy to help clarify further!
Thanks for your attention!