Giter Site home page Giter Site logo

Comments (5)

powderluv avatar powderluv commented on June 14, 2024

Looks like some 🤗 issue. Can you please try to clear your HF cache

from shark.

johanesalxd avatar johanesalxd commented on June 14, 2024

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.

johanesalxd avatar johanesalxd commented on June 14, 2024

Hi, some update from me: it seems the advanced installation is working just fine for me:

image

So wondering if the problem is within the release version itself. Thanks!

from shark.

SpencerCurtis avatar SpencerCurtis commented on June 14, 2024

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.

MattBach avatar MattBach commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.