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 retrieval_flickr.yaml from HopeTD/consulting: direct link, hf CLI and curl.
- Browser
- Download file 692 Bytes
-
https://huggingface.co/HopeTD/consulting/resolve/main/retrieval_flickr.yaml
- Command line
-
hf download hf://HopeTD/consulting/retrieval_flickr.yaml
-
curl -L -o retrieval_flickr.yaml https://huggingface.co/HopeTD/consulting/resolve/main/retrieval_flickr.yaml
692 Bytes
| image_root: '/export/share/datasets/vision/flickr30k/' | |
| ann_root: 'annotation' | |
| dataset: 'flickr' | |
| # set pretrained as a file path or an url | |
| pretrained: 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_retrieval_flickr.pth' | |
| # size of vit model; base or large | |
| vit: 'base' | |
| batch_size_train: 32 | |
| batch_size_test: 64 | |
| vit_grad_ckpt: True | |
| vit_ckpt_layer: 4 | |
| init_lr: 1e-5 | |
| # vit: 'large' | |
| # batch_size_train: 16 | |
| # batch_size_test: 32 | |
| # vit_grad_ckpt: True | |
| # vit_ckpt_layer: 10 | |
| # init_lr: 5e-6 | |
| image_size: 384 | |
| queue_size: 57600 | |
| alpha: 0.4 | |
| k_test: 128 | |
| negative_all_rank: False | |
| # optimizer | |
| weight_decay: 0.05 | |
| min_lr: 0 | |
| max_epoch: 6 | |