pythoninoffice / amd_webui

55 stars 10 forks source link

could not install some models #20

Open magiwogg opened 7 months ago

magiwogg commented 7 months ago

Hello. I had successfully installed this environment (other AMD uis are failed, but this was the only successful one), but the models that I have used in other pc cannot be installed. Here is the full error messages. This is the model URL I tried to install https://huggingface.co/WarriorMama777/OrangeMixs

Installing onnx... 2 Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████| 582/582 [00:00<?, ?B/s] C:\Git\amd_webui\venv\lib\site-packages\huggingface_hub\file_download.py:127: UserWarning: huggingface_hub cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\magiwogg.cache\huggingface\diffusers. 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 warnings.warn(message) Fetching 1 files: 100%|███████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<?, ?it/s] Cannot initialize model with low cpu memory usage because accelerate was not found in the environment. Defaulting to low_cpu_mem_usage=False. It is strongly recommended to install accelerate for faster and less memory-intense model loading. You can do so with:

pip install accelerate

. Traceback (most recent call last): File "C:\Git\amd_webui\venv\lib\site-packages\gradio\routes.py", line 292, in run_predict output = await app.blocks.process_api( File "C:\Git\amd_webui\venv\lib\site-packages\gradio\blocks.py", line 1007, in process_api result = await self.call_function(fn_index, inputs, iterator, request) File "C:\Git\amd_webui\venv\lib\site-packages\gradio\blocks.py", line 848, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Git\amd_webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\Git\amd_webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "C:\Git\amd_webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "C:\Git\amd_webui\amd_webui.py", line 138, in download_sd_model convert_stable_diffusion_checkpoint_to_onnx.convert_models(model_path, str(onnx_model_dir), onnx_opset, onnx_fp16) File "C:\Git\amd_webui\venv\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context return func(args, kwargs) File "C:\Git\amd_webui\venv\src\diffusers\scripts\convert_stable_diffusion_checkpoint_to_onnx.py", line 80, in convert_models pipeline = StableDiffusionPipeline.from_pretrained(model_path, torch_dtype=dtype).to(device) File "C:\Git\amd_webui\venv\src\diffusers\src\diffusers\pipeline_utils.py", line 705, in from_pretrained loaded_sub_model = load_method(cached_folder, loading_kwargs) File "C:\Git\amd_webui\venv\lib\site-packages\transformers\modeling_utils.py", line 2012, in from_pretrained config, model_kwargs = cls.config_class.from_pretrained( File "C:\Git\amd_webui\venv\lib\site-packages\transformers\models\clip\configuration_clip.py", line 135, in from_pretrained config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, kwargs) File "C:\Git\amd_webui\venv\lib\site-packages\transformers\configuration_utils.py", line 559, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, kwargs) File "C:\Git\amd_webui\venv\lib\site-packages\transformers\configuration_utils.py", line 614, in _get_config_dict resolved_config_file = cached_file( File "C:\Git\amd_webui\venv\lib\site-packages\transformers\utils\hub.py", line 380, in cached_file raise EnvironmentError( OSError: C:\Users\magiwogg/.cache\huggingface\diffusers\models--WarriorMama777--OrangeMixs\snapshots\ec9df50045e9687fd7ea8116db84c4ad5c4a4358 does not appear to have a file named config.json. Checkout 'https://huggingface.co/C:\Users\magiwogg/.cache\huggingface\diffusers\models--WarriorMama777--OrangeMixs\snapshots\ec9df50045e9687fd7ea8116db84c4ad5c4a4358/None' for available files.