ZHO-ZHO-ZHO / ComfyUI-PhotoMaker-ZHO

Unofficial implementation of PhotoMaker for ComfyUI
GNU General Public License v3.0
789 stars 41 forks source link

Error occurred when executing PhotoMakerAdapter_Loader_fromhub: CUDA Setup failed despite GPU being available. Please run the following command to get more information: #43

Open afd2046 opened 10 months ago

afd2046 commented 10 months ago

Error occurred when executing PhotoMakerAdapter_Loader_fromhub:

CUDA Setup failed despite GPU being available. Please run the following command to get more information:

python -m bitsandbytes

Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

File "E:\ComfyUI\execution.py", line 155, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "E:\ComfyUI\execution.py", line 85, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "E:\ComfyUI\execution.py", line 78, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "E:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\PhotoMakerNode.py", line 117, in load_photomaker_adapter pipe.load_photomaker_adapter( File "E:\ComfyUI\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(args, kwargs) File "E:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\pipeline.py", line 121, in load_photomaker_adapter self.load_lora_weights(state_dict["lora_weights"], adapter_name="photomaker") File "E:\ComfyUI\venv\lib\site-packages\diffusers\loaders\lora.py", line 1450, in load_lora_weights self.load_lora_into_unet( File "E:\ComfyUI\venv\lib\site-packages\diffusers\loaders\lora.py", line 460, in load_lora_into_unet inject_adapter_in_model(lora_config, unet, adapter_name=adapter_name) File "E:\ComfyUI\venv\lib\site-packages\peft\mapping.py", line 163, in inject_adapter_in_model peft_model = tuner_cls(model, peft_config, adapter_name=adapter_name) File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\lora\model.py", line 111, in init super().init(model, config, adapter_name) File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\tuners_utils.py", line 90, in init self.inject_adapter(self.model, adapter_name) File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\tuners_utils.py", line 247, in inject_adapter self._create_and_replace(peft_config, adapter_name, target, target_name, parent, optional_kwargs) File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\lora\model.py", line 168, in _create_and_replace from .bnb import Linear8bitLt File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\lora\bnb.py", line 19, in import bitsandbytes as bnb File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes__init__.py", line 6, in from . import cuda_setup, utils, research File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\research__init.py", line 1, in from . import nn File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\research\nn\init.py", line 1, in from .modules import LinearFP8Mixed, LinearFP8Global File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in from bitsandbytes.optim import GlobalOptimManager File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\optim\init__.py", line 6, in from bitsandbytes.cextension import COMPILED_WITH_CUDA File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\cextension.py", line 20, in raise RuntimeError('''