Instructions to use JunhaoZhuang/Cobra with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use JunhaoZhuang/Cobra 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("JunhaoZhuang/Cobra", 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
Download image_encoder/pytorch_model.bin from JunhaoZhuang/Cobra: direct link, hf CLI and curl.
- Browser
- Download file 2.53 GB
-
https://huggingface.co/JunhaoZhuang/Cobra/resolve/main/image_encoder/pytorch_model.bin
- Command line
-
hf download hf://JunhaoZhuang/Cobra/image_encoder/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/JunhaoZhuang/Cobra/resolve/main/image_encoder/pytorch_model.bin
2.53 GB
- Xet hash:
- 7f4f485bc586db4b718603ccc6294d9505843b5317fe04ea1084bbd2353e18d9
- Size of remote file:
- 2.53 GB
- SHA256:
- 3d3ec1e66737f77a4f3bc2df3c52eacefc69ce7825e2784183b1d4e9877d9193
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.