Spaces:
No application file
No application file
Create app.py
#1
by Angusssss - opened
app.py
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Exit code: 1. Reason: tion.py", line 101, in inner_f
|
| 2 |
+
return f(*args, **kwargs)
|
| 3 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 4 |
+
return fn(*args, **kwargs)
|
| 5 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1240, in hf_hub_download
|
| 6 |
+
return _hf_hub_download_to_cache_dir(
|
| 7 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1347, in _hf_hub_download_to_cache_dir
|
| 8 |
+
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
|
| 9 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1854, in _raise_on_head_call_error
|
| 10 |
+
raise head_call_error
|
| 11 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1751, in _get_metadata_or_catch_error
|
| 12 |
+
metadata = get_hf_file_metadata(
|
| 13 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 14 |
+
return fn(*args, **kwargs)
|
| 15 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1673, in get_hf_file_metadata
|
| 16 |
+
r = _request_wrapper(
|
| 17 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 376, in _request_wrapper
|
| 18 |
+
response = _request_wrapper(
|
| 19 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 400, in _request_wrapper
|
| 20 |
+
hf_raise_for_status(response)
|
| 21 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 321, in hf_raise_for_status
|
| 22 |
+
raise GatedRepoError(message, response) from e
|
| 23 |
+
huggingface_hub.utils._errors.GatedRepoError: 401 Client Error. (Request ID: Root=1-66e6ebc3-6c5d31e1404aa2317596b1a6;b503113e-33cf-440a-b73b-09c992f3a835)
|
| 24 |
+
|
| 25 |
+
Cannot access gated repo for url https://huggingface.co/benjamin-paine/stable-diffusion-v1-5/resolve/main/model_index.json.
|
| 26 |
+
Access to model benjamin-paine/stable-diffusion-v1-5 is restricted. You must have access to it and be authenticated to access it. Please log in.
|
| 27 |
+
Container logs:
|
| 28 |
+
|
| 29 |
+
===== Application Startup at 2024-09-15 13:58:39 =====
|
| 30 |
+
|
| 31 |
+
Processing ./package/onnxruntime_gpu-1.17.0-cp310-cp310-manylinux_2_28_x86_64.whl
|
| 32 |
+
Installing collected packages: onnxruntime-gpu
|
| 33 |
+
Attempting uninstall: onnxruntime-gpu
|
| 34 |
+
Found existing installation: onnxruntime-gpu 1.17.0
|
| 35 |
+
Uninstalling onnxruntime-gpu-1.17.0:
|
| 36 |
+
Successfully uninstalled onnxruntime-gpu-1.17.0
|
| 37 |
+
Successfully installed onnxruntime-gpu-1.17.0
|
| 38 |
+
|
| 39 |
+
[notice] A new release of pip available: 22.3.1 -> 24.2
|
| 40 |
+
[notice] To update, run: pip install --upgrade pip
|
| 41 |
+
Processing ./package/nvdiffrast-0.3.1.torch-cp310-cp310-linux_x86_64.whl
|
| 42 |
+
Installing collected packages: nvdiffrast
|
| 43 |
+
Successfully installed nvdiffrast-0.3.1.torch
|
| 44 |
+
|
| 45 |
+
[notice] A new release of pip available: 22.3.1 -> 24.2
|
| 46 |
+
[notice] To update, run: pip install --upgrade pip
|
| 47 |
+
The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
0it [00:00, ?it/s]
|
| 51 |
+
0it [00:00, ?it/s]
|
| 52 |
+
Downloading data from 'https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx' to file '/home/user/.u2net/u2net.onnx'.
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
0%| | 0.00/176M [00:00<?, ?B/s]
|
| 56 |
+
|
| 57 |
+
42%|ββββββββββββββββ | 74.2M/176M [00:01<00:01, 74.2MB/s]
|
| 58 |
+
|
| 59 |
+
88%|βββββββββββββββββββββββββββββββββββ | 155M/176M [00:02<00:00, 78.3MB/s]
|
| 60 |
+
|
| 61 |
+
0%| | 0.00/176M [00:00<?, ?B/s]
|
| 62 |
+
100%|ββββββββββββββββββββββββββββββββββββββββ| 176M/176M [00:00<00:00, 685GB/s]
|
| 63 |
+
Warning! extra parameter in cli is not verified, may cause erros.
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
Loading pipeline components...: 0%| | 0/5 [00:00<?, ?it/s]
|
| 67 |
+
Loading pipeline components...: 100%|ββββββββββ| 5/5 [00:00<00:00, 78.55it/s]
|
| 68 |
+
You have disabled the safety checker for <class 'custum_3d_diffusion.custum_pipeline.unifield_pipeline_img2mvimg.StableDiffusionImage2MVCustomPipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
|
| 69 |
+
Warning! extra parameter in cli is not verified, may cause erros.
|
| 70 |
+
An error occurred while trying to fetch lambdalabs/sd-image-variations-diffusers: lambdalabs/sd-image-variations-diffusers does not appear to have a file named diffusion_pytorch_model.safetensors.
|
| 71 |
+
Defaulting to unsafe serialization. Pass `allow_pickle=False` to raise an error instead.
|
| 72 |
+
An error occurred while trying to fetch lambdalabs/sd-image-variations-diffusers: lambdalabs/sd-image-variations-diffusers does not appear to have a file named diffusion_pytorch_model.safetensors.
|
| 73 |
+
Defaulting to unsafe serialization. Pass `allow_pickle=False` to raise an error instead.
|
| 74 |
+
An error occurred while trying to fetch lambdalabs/sd-image-variations-diffusers: lambdalabs/sd-image-variations-diffusers does not appear to have a file named diffusion_pytorch_model.safetensors.
|
| 75 |
+
Defaulting to unsafe serialization. Pass `allow_pickle=False` to raise an error instead.
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
Loading pipeline components...: 0%| | 0/5 [00:00<?, ?it/s]
|
| 79 |
+
Loading pipeline components...: 100%|ββββββββββ| 5/5 [00:00<00:00, 1827.58it/s]
|
| 80 |
+
You have disabled the safety checker for <class 'custum_3d_diffusion.custum_pipeline.unifield_pipeline_img2img.StableDiffusionImageCustomPipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
|
| 81 |
+
Traceback (most recent call last):
|
| 82 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 304, in hf_raise_for_status
|
| 83 |
+
response.raise_for_status()
|
| 84 |
+
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status
|
| 85 |
+
raise HTTPError(http_error_msg, response=self)
|
| 86 |
+
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/benjamin-paine/stable-diffusion-v1-5/resolve/main/model_index.json
|
| 87 |
+
|
| 88 |
+
The above exception was the direct cause of the following exception:
|
| 89 |
+
|
| 90 |
+
Traceback (most recent call last):
|
| 91 |
+
File "/home/user/app/app.py", line 63, in <module>
|
| 92 |
+
fire.Fire(launch)
|
| 93 |
+
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 143, in Fire
|
| 94 |
+
component_trace = _Fire(component, args, parsed_flag_args, context, name)
|
| 95 |
+
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 477, in _Fire
|
| 96 |
+
component, remaining_args = _CallAndUpdateTrace(
|
| 97 |
+
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 693, in _CallAndUpdateTrace
|
| 98 |
+
component = fn(*varargs, **kwargs)
|
| 99 |
+
File "/home/user/app/app.py", line 48, in launch
|
| 100 |
+
model_zoo.init_models()
|
| 101 |
+
File "/home/user/app/gradio_app/all_models.py", line 20, in init_models
|
| 102 |
+
self._pipe_disney_controlnet_lineart_ipadapter_i2i = load_common_sd15_pipe(base_model=self.base_model, ip_adapter=True, plus_model=False, controlnet="./ckpt/controlnet-tile", pipeline_class=StableDiffusionControlNetImg2ImgPipeline)
|
| 103 |
+
File "/home/user/app/scripts/sd_model_zoo.py", line 75, in load_common_sd15_pipe
|
| 104 |
+
components = load_base_model_components(base_model=base_model, torch_dtype=torch_dtype)
|
| 105 |
+
File "/home/user/app/scripts/sd_model_zoo.py", line 29, in wrapper
|
| 106 |
+
return func(*args, **kwargs)
|
| 107 |
+
File "/home/user/app/scripts/sd_model_zoo.py", line 46, in load_base_model_components
|
| 108 |
+
pipe: StableDiffusionPipeline = model_from_ckpt_or_pretrained(
|
| 109 |
+
File "/home/user/app/scripts/sd_model_zoo.py", line 36, in model_from_ckpt_or_pretrained
|
| 110 |
+
pipe = model_cls.from_pretrained(ckpt_or_pretrained, torch_dtype=torch_dtype, **kwargs)
|
| 111 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 112 |
+
return fn(*args, **kwargs)
|
| 113 |
+
File "/usr/local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 702, in from_pretrained
|
| 114 |
+
cached_folder = cls.download(
|
| 115 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 116 |
+
return fn(*args, **kwargs)
|
| 117 |
+
File "/usr/local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 1307, in download
|
| 118 |
+
config_file = hf_hub_download(
|
| 119 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
|
| 120 |
+
return f(*args, **kwargs)
|
| 121 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 122 |
+
return fn(*args, **kwargs)
|
| 123 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1240, in hf_hub_download
|
| 124 |
+
return _hf_hub_download_to_cache_dir(
|
| 125 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1347, in _hf_hub_download_to_cache_dir
|
| 126 |
+
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
|
| 127 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1854, in _raise_on_head_call_error
|
| 128 |
+
raise head_call_error
|
| 129 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1751, in _get_metadata_or_catch_error
|
| 130 |
+
metadata = get_hf_file_metadata(
|
| 131 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 132 |
+
return fn(*args, **kwargs)
|
| 133 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1673, in get_hf_file_metadata
|
| 134 |
+
r = _request_wrapper(
|
| 135 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 376, in _request_wrapper
|
| 136 |
+
response = _request_wrapper(
|
| 137 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 400, in _request_wrapper
|
| 138 |
+
hf_raise_for_status(response)
|
| 139 |
+
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 321, in hf_raise_for_status
|
| 140 |
+
raise GatedRepoError(message, response) from e
|
| 141 |
+
huggingface_hub.utils._errors.GatedRepoError: 401 Client Error. (Request ID: Root=1-66e6ebdd-1f79785c501d4c4c756f690c;5a4bfb40-3e00-4cf5-9cc7-7ff3fa4cf6d8)
|
| 142 |
+
|
| 143 |
+
Cannot access gated repo for url https://huggingface.co/benjamin-paine/stable-diffusion-v1-5/resolve/main/model_index.json.
|
| 144 |
+
Access to model benjamin-paine/stable-diffusion-v1-5 is restricted. You must have access to it and be authenticated to access it. Please log in.
|