Instructions to use ShineChen1024/ENSEMBLE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ShineChen1024/ENSEMBLE with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ShineChen1024/ENSEMBLE", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| nohup: ignoring input | |
| Traceback (most recent call last): | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 761, in hf_raise_for_status | |
| response.raise_for_status() | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/httpx/_models.py", line 829, in raise_for_status | |
| raise HTTPStatusError(message, request=request, response=self) | |
| httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://huggingface.co/api/models/ShineChen1024/ENSEMBLE/preupload/main' | |
| For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403 | |
| The above exception was the direct cause of the following exception: | |
| Traceback (most recent call last): | |
| File "<stdin>", line 15, in <module> | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn | |
| return fn(*args, **kwargs) | |
| ^^^^^^^^^^^^^^^^^^^ | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/hf_api.py", line 2056, in _inner | |
| return fn(self, *args, **kwargs) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/hf_api.py", line 5608, in upload_folder | |
| return self.create_commit( | |
| ^^^^^^^^^^^^^^^^^^^ | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn | |
| return fn(*args, **kwargs) | |
| ^^^^^^^^^^^^^^^^^^^ | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/hf_api.py", line 2056, in _inner | |
| return fn(self, *args, **kwargs) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/hf_api.py", line 4920, in create_commit | |
| self.preupload_lfs_files( | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/hf_api.py", line 5147, in preupload_lfs_files | |
| _fetch_upload_modes( | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn | |
| return fn(*args, **kwargs) | |
| ^^^^^^^^^^^^^^^^^^^ | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/_commit_api.py", line 760, in _fetch_upload_modes | |
| hf_raise_for_status(resp) | |
| File "/home/work/MMSearch/cwf/miniconda/envs/search-train/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 849, in hf_raise_for_status | |
| raise _format(HfHubHTTPError, message, response) from e | |
| huggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-6a1eb94f-6d63c2eb5e69a74253043074;ee17964f-ff8a-4261-9c35-30dc08a49957) | |
| 403 Forbidden: Forbidden: you must use a write token to upload to a repository.. | |
| Cannot access content at: https://huggingface.co/api/models/ShineChen1024/ENSEMBLE/preupload/main. | |
| Make sure your token has the correct permissions. | |