Instructions to use HopeTD/consulting with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use HopeTD/consulting with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ByteDance/Hyper-SD", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("HopeTD/consulting") prompt = "Hopedesigns" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download caption_coco.yaml from HopeTD/consulting: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/HopeTD/consulting/resolve/main/caption_coco.yaml
- Command line
-
hf download hf://HopeTD/consulting/caption_coco.yaml
-
curl -L -o caption_coco.yaml https://huggingface.co/HopeTD/consulting/resolve/main/caption_coco.yaml
684 Bytes
| image_root: '/export/share/datasets/vision/coco/images/' | |
| ann_root: 'annotation' | |
| coco_gt_root: 'annotation/coco_gt' | |
| # set pretrained as a file path or an url | |
| pretrained: 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_caption_capfilt_large.pth' | |
| # size of vit model; base or large | |
| vit: 'base' | |
| vit_grad_ckpt: False | |
| vit_ckpt_layer: 0 | |
| batch_size: 32 | |
| init_lr: 1e-5 | |
| # vit: 'large' | |
| # vit_grad_ckpt: True | |
| # vit_ckpt_layer: 5 | |
| # batch_size: 16 | |
| # init_lr: 2e-6 | |
| image_size: 384 | |
| # generation configs | |
| max_length: 20 | |
| min_length: 5 | |
| num_beams: 3 | |
| prompt: 'a picture of ' | |
| # optimizer | |
| weight_decay: 0.05 | |
| min_lr: 0 | |
| max_epoch: 5 | |