Open water2891 opened 7 months ago
File "/Users/shijin/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/models/backbones/build_backbone.py", line 29, in load_weights save_model = torch.load(config.weights[model_name])
在CPU模式下,这里报错,缺map_location参数
我也是
自己改了先凑合用 build_backbone.py line29 save_model = torch.load(config.weights[model_name]) save_model = torch.load(config.weights[model_name],map_location=torch.device('mps')) torch.device那cpu的填cpu,mac的填mps
save_model = torch.load(config.weights[model_name])
save_model = torch.load(config.weights[model_name],map_location=torch.device('mps'))
File "/Users/shijin/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/models/backbones/build_backbone.py", line 29, in load_weights save_model = torch.load(config.weights[model_name])
在CPU模式下,这里报错,缺map_location参数