Comments (5)
Looks like some 🤗 issue. Can you please try to clear your HF cache
from shark.
hi @powderluv ! yes i've cleared the cache (deleted this C:\\Users\\username/.cache
folder) couple of times, restarting the process but the results are the same 🤔 So i'm not sure what the issue is.
from shark.
Hi, some update from me: it seems the advanced installation is working just fine for me:
So wondering if the problem is within the release version itself. Thanks!
from shark.
I'm having the same issue here. 5800X and 7900 XTX. Deleting the cache folder did not help either. Hope this helps in solving the problem!
WARNING: [Loader Message] Code 0 : windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
Traceback (most recent call last):
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 71, in __init__
File "apps\stable_diffusion\src\models\opt_params.py", line 120, in get_tokenizer
File "transformers\tokenization_utils_base.py", line 1770, in from_pretrained
resolved_vocab_files[file_id] = cached_file(
^^^^^^^^^^^^
File "transformers\utils\hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File "huggingface_hub\utils\_validators.py", line 120, in _inner_fn
File "huggingface_hub\file_download.py", line 1302, in hf_hub_download
File "filelock\_api.py", line 260, in __enter__
File "filelock\_api.py", line 217, in acquire
File "filelock\_windows.py", line 25, in _acquire
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Spencer/.cache\\huggingface\\hub\\models--CompVis--stable-diffusion-v1-4\\blobs\\W/"469be27c5c010538f845f518c4f5e8574c78f7c8.lock'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "gradio\routes.py", line 401, in run_predict
File "gradio\blocks.py", line 1302, in process_api
File "gradio\blocks.py", line 1039, in call_function
File "anyio\to_thread.py", line 31, in run_sync
File "anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
File "anyio\_backends\_asyncio.py", line 867, in run
File "gradio\utils.py", line 491, in async_iteration
File "ui\txt2img_ui.py", line 146, in txt2img_inf
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 338, in from_pretrained
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_txt2img.py", line 43, in __init__
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 75, in __init__
File "apps\stable_diffusion\src\models\opt_params.py", line 120, in get_tokenizer
File "transformers\tokenization_utils_base.py", line 1770, in from_pretrained
resolved_vocab_files[file_id] = cached_file(
^^^^^^^^^^^^
File "transformers\utils\hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File "huggingface_hub\utils\_validators.py", line 120, in _inner_fn
File "huggingface_hub\file_download.py", line 1302, in hf_hub_download
File "filelock\_api.py", line 260, in __enter__
File "filelock\_api.py", line 217, in acquire
File "filelock\_windows.py", line 25, in _acquire
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Spencer/.cache\\huggingface\\hub\\models--CompVis--stable-diffusion-v1-4\\blobs\\W/"469be27c5c010538f845f518c4f5e8574c78f7c8.lock'
from shark.
Same issue here with the release WebUI and CLI .exe's. Clearing the .cache folder doesn't change anything. With the WebUI, I can launch the web interface, but I get the error as soon as I try to generate an image.
WebUI error:
Found device NVIDIA GeForce RTX 2080. Using target triple turing-rtx2080-windows.
Tuned models are currently not supported for this setting.
Downloading (…)cheduler_config.json: 100%|█████████████████████████████████████████████| 345/345 [00:00<00:00, 345kB/s]
huggingface_hub\file_download.py:133: UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\mattb\.cache\huggingface\hub. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the `HF_HUB_DISABLE_SYMLINKS_WARNING` environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations.
To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to see activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development
failed to download model, falling back and using import_mlir
loading existing vmfb from: C:\GitHub_Sync\PugetBench-for-Stable-Diffusion\Shark\euler_scale_model_input_1_512_512_vulkan_fp16.vmfb
WARNING: [Loader Message] Code 0 : windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
loading existing vmfb from: C:\GitHub_Sync\PugetBench-for-Stable-Diffusion\Shark\euler_step_1_512_512_vulkan_fp16.vmfb
WARNING: [Loader Message] Code 0 : windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
use_tuned? sharkify: False
_1_64_512_512_fp16_stable-diffusion-2-1-base
safetensors\torch.py:99: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
WARNING: [Loader Message] Code 0 : windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
Traceback (most recent call last):
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 71, in __init__
File "apps\stable_diffusion\src\models\opt_params.py", line 120, in get_tokenizer
File "transformers\tokenization_utils_base.py", line 1770, in from_pretrained
resolved_vocab_files[file_id] = cached_file(
^^^^^^^^^^^^
File "transformers\utils\hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File "huggingface_hub\utils\_validators.py", line 120, in _inner_fn
File "huggingface_hub\file_download.py", line 1302, in hf_hub_download
File "filelock\_api.py", line 260, in __enter__
File "filelock\_api.py", line 217, in acquire
File "filelock\_windows.py", line 25, in _acquire
OSError: [Errno 22] Invalid argument: 'C:\\Users\\mattb/.cache\\huggingface\\hub\\models--stabilityai--stable-diffusion-2-1\\blobs\\W/"469be27c5c010538f845f518c4f5e8574c78f7c8.lock'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "gradio\routes.py", line 401, in run_predict
File "gradio\blocks.py", line 1302, in process_api
File "gradio\blocks.py", line 1039, in call_function
File "anyio\to_thread.py", line 31, in run_sync
File "anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
File "anyio\_backends\_asyncio.py", line 867, in run
File "gradio\utils.py", line 491, in async_iteration
File "ui\txt2img_ui.py", line 146, in txt2img_inf
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 338, in from_pretrained
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_txt2img.py", line 43, in __init__
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 75, in __init__
File "apps\stable_diffusion\src\models\opt_params.py", line 120, in get_tokenizer
File "transformers\tokenization_utils_base.py", line 1770, in from_pretrained
resolved_vocab_files[file_id] = cached_file(
^^^^^^^^^^^^
File "transformers\utils\hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File "huggingface_hub\utils\_validators.py", line 120, in _inner_fn
File "huggingface_hub\file_download.py", line 1302, in hf_hub_download
File "filelock\_api.py", line 260, in __enter__
File "filelock\_api.py", line 217, in acquire
File "filelock\_windows.py", line 25, in _acquire
OSError: [Errno 22] Invalid argument: 'C:\\Users\\mattb/.cache\\huggingface\\hub\\models--stabilityai--stable-diffusion-2-1\\blobs\\W/"469be27c5c010538f845f518c4f5e8574c78f7c8.lock'
CLI error:
Found device NVIDIA GeForce RTX 2080. Using target triple turing-rtx2080-windows.
Tuned models are currently not supported for this setting.
failed to download model, falling back and using import_mlir
loading existing vmfb from: C:\GitHub_Sync\PugetBench-for-Stable-Diffusion\Shark\euler_scale_model_input_1_512_512_vulkan_fp16.vmfb
WARNING: [Loader Message] Code 0 : windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
loading existing vmfb from: C:\GitHub_Sync\PugetBench-for-Stable-Diffusion\Shark\euler_step_1_512_512_vulkan_fp16.vmfb
WARNING: [Loader Message] Code 0 : windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
use_tuned? sharkify: False
_1_64_512_512_fp16_stable-diffusion-2-1-base
safetensors\torch.py:99: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
WARNING: [Loader Message] Code 0 : windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
Traceback (most recent call last):
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 71, in __init__
File "apps\stable_diffusion\src\models\opt_params.py", line 120, in get_tokenizer
File "transformers\tokenization_utils_base.py", line 1770, in from_pretrained
File "transformers\utils\hub.py", line 409, in cached_file
File "huggingface_hub\utils\_validators.py", line 120, in _inner_fn
File "huggingface_hub\file_download.py", line 1302, in hf_hub_download
File "filelock\_api.py", line 260, in __enter__
File "filelock\_api.py", line 217, in acquire
File "filelock\_windows.py", line 25, in _acquire
OSError: [Errno 22] Invalid argument: 'C:\\Users\\mattb/.cache\\huggingface\\hub\\models--stabilityai--stable-diffusion-2-1-base\\blobs\\W/"469be27c5c010538f845f518c4f5e8574c78f7c8.lock'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "apps\stable_diffusion\scripts\main.py", line 11, in <module>
File "apps\stable_diffusion\scripts\txt2img.py", line 25, in main
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 338, in from_pretrained
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_txt2img.py", line 43, in __init__
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 75, in __init__
File "apps\stable_diffusion\src\models\opt_params.py", line 120, in get_tokenizer
File "transformers\tokenization_utils_base.py", line 1770, in from_pretrained
File "transformers\utils\hub.py", line 409, in cached_file
File "huggingface_hub\utils\_validators.py", line 120, in _inner_fn
File "huggingface_hub\file_download.py", line 1302, in hf_hub_download
File "filelock\_api.py", line 260, in __enter__
File "filelock\_api.py", line 217, in acquire
File "filelock\_windows.py", line 25, in _acquire
OSError: [Errno 22] Invalid argument: 'C:\\Users\\mattb/.cache\\huggingface\\hub\\models--stabilityai--stable-diffusion-2-1-base\\blobs\\W/"469be27c5c010538f845f518c4f5e8574c78f7c8.lock'
[24600] Failed to execute script 'main' due to unhandled exception!
Unlike alexanderv21, however, I couldn't get the advanced installation working either. Error when I try to run index.py:
python .\index.py
Traceback (most recent call last):
File "C:\GitHub_Sync\PugetBench-for-Stable-Diffusion\Shark_Advanced\apps\stable_diffusion\web\index.py", line 11, in <module>
from apps.stable_diffusion.src import args, clear_all
File "C:\GitHub_Sync\PugetBench-for-Stable-Diffusion\Shark_Advanced\apps\stable_diffusion\src\__init__.py", line 1, in <module>
from apps.stable_diffusion.src.utils import (
File "C:\GitHub_Sync\PugetBench-for-Stable-Diffusion\Shark_Advanced\apps\stable_diffusion\src\utils\__init__.py", line 12, in <module>
from apps.stable_diffusion.src.utils.sd_annotation import sd_model_annotation
File "C:\GitHub_Sync\PugetBench-for-Stable-Diffusion\Shark_Advanced\apps\stable_diffusion\src\utils\sd_annotation.py", line 3, in <module>
from shark.model_annotation import model_annotation, create_context
ModuleNotFoundError: No module named 'shark'
from shark.
Related Issues (20)
- Gradio Button has no attr "label"
- Gradio JSON has no option interactive
- problem with Torch-mlir on Ubuntu, latest en previous Shark version
- (Studio2) Centralize and minimize prompt handling for LLMs
- (Studio2) (Windows) 'rocm devices are not available'
- Drastic difference in images generated in 984 vs 1091
- Can't run SDXL Turbo at all. My 32GB of RAM at 100% and fails. HOT 2
- After compiling Vulkan shaders, multiple errors ensue HOT 3
- bf16 result mismatch for Conv2D op HOT 30
- Compiling vulkan shaders never ends HOT 4
- "AttributeError: module 'mpmath' has no attribute 'rational'" when recreating .venv (+workaround) HOT 2
- Error registering modules: C:\actions-runner\w\SRT\SRT\c\runtime\src\iree\hal\drivers\vulkan\native_executable.cc:51:
- running SDXL set to 1024x1024 renders a black image
- AMD bought you guys but I have to downgrade GPU drivers to one year ago? HOT 2
- "Could not compile Unet. Please create an issue with the detailed log....
- "Could not compile Unet. Please create an issue with the detailed log...." HOT 4
- Shared memory issues with SD on Vulkan HOT 2
- Issue with VAE decode on Windows
- ModuleNotFoundError: No module named 'apps' HOT 16
- [BUG][Pre-release] ImportError: cannot import name 'ParameterIndexEntry' from 'iree.runtime'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shark.