Closed waaaok closed 11 months ago
兄弟你解决了吗?我也是这个问题face_yolov8n和faceyolov8s都用不了 Brother, have you solved it? I also have this problem face Yolov8n and face_ Yolov8s can't even be used WARNING Unable to automatically guess model task, assuming 'task=detect'. Explicitly define task for your model, i.e. 'task=detect', 'segment', 'classify', or 'pose'. * Error running postprocess_image: D:\AI\sd-webui-aki-v4.4\extensions\adetailer\scripts!adetailer.py Traceback (most recent call last): File "D:\AI\sd-webui-aki-v4.4\modules\scripts.py", line 675, in postprocess_image script.postprocess_image(p, pp, script_args) File "D:\AI\sd-webui-aki-v4.4\extensions\adetailer\adetailer\traceback.py", line 159, in wrapper raise error from None TypeError: 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 ┌─────────────────────────────────────────────────────────────────────────┐ │ System info │ │ ┌─────────────┬───────────────────────────────────────────────────────┐ │ │ │ │ Value │ │ │ ├─────────────┼───────────────────────────────────────────────────────┤ │ │ │ Platform │ Windows-10-10.0.22621-SP0 │ │ │ │ Python │ 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, │ │ │ │ │ 00:38:17) [MSC v.1929 64 bit (AMD64)] │ │ │ │ Version │ v1.6.0 │ │ │ │ Commit │ 5ef669de080814067961f28357256e8fe27544f4 │ │ │ │ Commandline │ ['D:\AI\sd-webui-aki-v4.4\launch.py', │ │ │ │ │ '--medvram-sdxl', '--theme', 'dark', '--xformers', │ │ │ │ │ '--api', '--autolaunch'] │ │ │ │ Libraries │ {'torch': '2.0.1+cu118', 'torchvision': │ │ │ │ │ '0.15.2+cu118', 'ultralytics': '8.0.187', │ │ │ │ │ 'mediapipe': '0.10.5'} │ │ │ └─────────────┴───────────────────────────────────────────────────────┘ │ │ Inputs │ │ ┌─────────────────┬────────────────────────────────────────────┐ │ │ │ │ Value │ │ │ ├─────────────────┼────────────────────────────────────────────┤ │ │ │ prompt │ 1girl, │ │ │ │ negative_prompt │ │ │ │ │ n_iter │ 1 │ │ │ │ batch_size │ 1 │ │ │ │ width │ 512 │ │ │ │ height │ 512 │ │ │ │ sampler_name │ DPM++ 2M Karras │ │ │ │ enable_hr │ False │ │ │ │ hr_upscaler │ Latent │ │ │ │ checkpoint │ anything-v5-PrtRE.safetensors [7f96a1a9ca] │ │ │ │ vae │ vae-ft-mse-840000-ema-pruned.safetensors │ │ │ │ unet │ Automatic │ │ │ └─────────────────┴────────────────────────────────────────────┘ │ │ ADetailer │ │ ┌─────────────────────┬─────────────────┐ │ │ │ │ Value │ │ │ ├─────────────────────┼─────────────────┤ │ │ │ version │ 23.9.3 │ │ │ │ ad_model │ face_yolov8n.pt │ │ │ │ ad_prompt │ │ │ │ │ ad_negative_prompt │ │ │ │ │ ad_controlnet_model │ None │ │ │ │ is_api │ False │ │ │ └─────────────────────┴─────────────────┘ │ │ ┌───────────────── Traceback (most recent call last) ─────────────────┐ │ │ │ D:\AI\sd-webui-aki-v4.4\extensions\adetailer\adetailer\traceback.py │ │ │ │ :139 in wrapper │ │ │ │ │ │ │ │ 136 │ │ width = width - 4 if width > 4 else None │ │ │ │ 137 │ │ console = Console(file=string, width=width) │ │ │ │ 138 │ │ try: │ │ │ │ > 139 │ │ │ return func(args, kwargs) │ │ │ │ 140 │ │ except Exception as e: │ │ │ │ 141 │ │ │ tables = [ │ │ │ │ 142 │ │ │ │ get_table(title, data) │ │ │ │ │ │ │ │ D:\AI\sd-webui-aki-v4.4\extensions\adetailer\scripts!adetailer.py: │ │ │ │ 656 in postprocess_image │ │ │ │ │ │ │ │ 653 │ │ │ for n, args in enumerate(arg_list): │ │ │ │ 654 │ │ │ │ if args.ad_model == "None": │ │ │ │ 655 │ │ │ │ │ continue │ │ │ │ > 656 │ │ │ │ is_processed |= self._postprocess_image_inner │ │ │ │ 657 │ │ │ │ │ │ 658 │ │ if is_processed: │ │ │ │ 659 │ │ │ self.save_image( │ │ │ │ │ │ │ │ D:\AI\sd-webui-aki-v4.4\extensions\adetailer\scripts!adetailer.py: │ │ │ │ 579 in _postprocess_image_inner │ │ │ │ │ │ │ │ 576 │ │ │ kwargs["device"] = self.ultralytics_device │ │ │ │ 577 │ │ │ │ │ │ 578 │ │ with change_torch_load(): │ │ │ │ > 579 │ │ │ pred = predictor(ad_model, pp.image, args.ad_conf │ │ │ │ 580 │ │ │ │ │ │ 581 │ │ masks = self.pred_preprocessing(pred, args) │ │ │ │ 582 │ │ │ │ │ │ │ │ D:\AI\sd-webui-aki-v4.4\extensions\adetailer\adetailer\ultralytics. │ │ │ │ py:22 in ultralytics_predict │ │ │ │ │ │ │ │ 19 │ from ultralytics import YOLO │ │ │ │ 20 │ │ │ │ │ 21 │ model = YOLO(model_path) │ │ │ │ > 22 │ pred = model(image, conf=confidence, device=device) │ │ │ │ 23 │ │ │ │ │ 24 │ bboxes = pred[0].boxes.xyxy.cpu().numpy() │ │ │ │ 25 │ if bboxes.size == 0: │ │ │ │ │ │ │ │ D:\AI\sd-webui-aki-v4.4\python\lib\site-packages\ultralytics\engine │ │ │ │ \model.py:96 in call │ │ │ │ │ │ │ │ 93 │ │ │ │ │ 94 │ def call(self, source=None, stream=False, kwargs): │ │ │ │ 95 │ │ """Calls the 'predict' function with given arguments │ │ │ │ > 96 │ │ return self.predict(source, stream, kwargs) │ │ │ │ 97 │ │ │ │ │ 98 │ @staticmethod │ │ │ │ 99 │ def is_hub_model(model): │ │ │ │ │ │ │ │ D:\AI\sd-webui-aki-v4.4\python\lib\site-packages\ultralytics\engine │ │ │ │ \model.py:229 in predict │ │ │ │ │ │ │ │ 226 │ │ │ │ │ │ 227 │ │ if not self.predictor: │ │ │ │ 228 │ │ │ self.predictor = (predictor or self._smart_load(' │ │ │ │ > 229 │ │ │ self.predictor.setup_model(model=self.model, verb │ │ │ │ 230 │ │ else: # only update args if predictor is already set │ │ │ │ 231 │ │ │ self.predictor.args = get_cfg(self.predictor.args │ │ │ │ 232 │ │ │ if 'project' in args or 'name' in args: │ │ │ │ │ │ │ │ D:\AI\sd-webui-aki-v4.4\python\lib\site-packages\ultralytics\engine │ │ │ │ \predictor.py:305 in setup_model │ │ │ │ │ │ │ │ 302 │ │ │ │ │ 303 │ def setup_model(self, model, verbose=True): │ │ │ │ 304 │ │ """Initialize YOLO model with given parameters and se │ │ │ │ > 305 │ │ self.model = AutoBackend(model or self.args.model, │ │ │ │ 306 │ │ │ │ │ │ │ │ device=select_device(self.ar │ │ │ │ 307 │ │ │ │ │ │ │ │ dnn=self.args.dnn, │ │ │ │ 308 │ │ │ │ │ │ │ │ data=self.args.data, │ │ │ │ │ │ │ │ D:\AI\sd-webui-aki-v4.4\python\lib\site-packages\ultralytics\nn\aut │ │ │ │ obackend.py:285 in init │ │ │ │ │ │ │ │ 282 │ │ │ raise NotImplementedError('Triton Inference Serve │ │ │ │ 283 │ │ else: │ │ │ │ 284 │ │ │ from ultralytics.engine.exporter import export_fo │ │ │ │ > 285 │ │ │ raise TypeError(f"model='{w}' is not a supported │ │ │ │ 286 │ │ │ │ │ │ │ 'See https://docs.ultralytics.com │ │ │ │ 287 │ │ │ │ │ │ │ f'\n\n{export_formats()}') │ │ │ │ 288 │ │ │ └─────────────────────────────────────────────────────────────────────┘ │ │ TypeError: │ │ model='D:\AI\sd-webui-aki-v4.4.cache\sdwebuilauncher\hfmirror\blob\30e │ │ 7adcf03c1e250ffce66a9ff5324358c311f02a093f93f5424d650803ce077' is not a │ │ supported model format. See https://docs.ultralytics.com/modes/predict │ │ for help. │ │ │ │ Format Argument Suffix CPU GPU │ │ 0 PyTorch - .pt True True │ │ 1 TorchScript torchscript .torchscript True True │ │ 2 ONNX onnx .onnx True True │ │ 3 OpenVINO openvino _openvino_model True False │ │ 4 TensorRT engine .engine False True │ │ 5 CoreML coreml .mlpackage True False │ │ 6 TensorFlow SavedModel saved_model _saved_model True True │ │ 7 TensorFlow GraphDef pb .pb True True │ │ 8 TensorFlow Lite tflite .tflite True False │ │ 9 TensorFlow Edge TPU edgetpu _edgetpu.tflite True False │ │ 10 TensorFlow.js tfjs _web_model True False │ │ 11 PaddlePaddle paddle _paddle_model True True │ │ 12 ncnn ncnn _ncnn_model True True │ └─────────────────────────────────────────────────────────────────────────┘
Describe the bug
I updated to the latest version, I couldn't use the plug-in anymore
Screenshots
Console logs, from start to end.
List of installed extensions