aigc-apps / sd-webui-EasyPhoto

📷 EasyPhoto | Your Smart AI Photo Generator.
Apache License 2.0
4.98k stars 399 forks source link

Dectect no face in training data, move last weights and validation image to best_outputs 有大佬知道这是怎么回事吗? #375

Open dxh8286239 opened 10 months ago

dxh8286239 commented 10 months ago

You have disabled the safety checker for <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_inpaint.StableDiffusionInpaintPipeline'> by passing safety_checker=None. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 . You have loaded a UNet with 4 input channels which. {'variance_type', 'sample_max_value', 'algorithm_type', 'use_karras_sigmas', 'use_lu_lambdas', 'lambda_min_clipped', 'prediction_type', 'dynamic_thresholding_ratio', 'euler_at_final', 'lower_order_final', 'thresholding', 'solver_type', 'timestep_spacing', 'solver_order'} was not found in config. Values will be initialized to default values. 2024-01-16 21:00:04,043 - modelscope - INFO - Use user-specified model revision: v1.0.3 2024-01-16 21:00:04,568 - modelscope - WARNING - ('PIPELINES', 'face_recognition', 'face_recognition') not found in ast index file 2024-01-16 21:00:04,568 - modelscope - INFO - initiate model from G:\stable diffusion\sd-webui-aki\sd-webui-aki-v4.4.cache\modelscope\hub\bubbliiiing\cv_retinafce_recognition 2024-01-16 21:00:04,568 - modelscope - INFO - initiate model from location G:\stable diffusion\sd-webui-aki\sd-webui-aki-v4.4.cache\modelscope\hub\bubbliiiing\cv_retinafce_recognition. 2024-01-16 21:00:04,647 - modelscope - INFO - initialize model from G:\stable diffusion\sd-webui-aki\sd-webui-aki-v4.4.cache\modelscope\hub\bubbliiiing\cv_retinafce_recognition 2024-01-16 21:00:04,751 - modelscope - WARNING - ('MODELS', 'face_recognition', 'face_recognition') not found in ast index file 2024-01-16 21:00:05,389 - modelscope - INFO - Model revision not specified, use revision: v2.0.2 2024-01-16 21:00:07,801 - modelscope - INFO - initiate model from G:\stable diffusion\sd-webui-aki\sd-webui-aki-v4.4.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2024-01-16 21:00:07,801 - modelscope - INFO - initiate model from location G:\stable diffusion\sd-webui-aki\sd-webui-aki-v4.4.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2024-01-16 21:00:08,036 - modelscope - WARNING - No preprocessor field found in cfg. 2024-01-16 21:00:08,036 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2024-01-16 21:00:08,036 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'G:\stable diffusion\sd-webui-aki\sd-webui-aki-v4.4\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2024-01-16 21:00:08,036 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2024-01-16 21:00:08,116 - modelscope - INFO - loading model from G:\stable diffusion\sd-webui-aki\sd-webui-aki-v4.4.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2024-01-16 21:00:08,616 - modelscope - INFO - load model done 2024-01-16 21:00:09,871 - modelscope - INFO - load facefusion models done 2024-01-16 21:00:09,871 - modelscope - INFO - init done 2024-01-16 21:00:10,019 - modelscope - WARNING - No preprocessor field found in cfg. 2024-01-16 21:00:10,019 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2024-01-16 21:00:10,019 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'G:\stable diffusion\sd-webui-aki\sd-webui-aki-v4.4\.cache\modelscope\hub\bubbliiiing\cv_retinafce_recognition'}. trying to build by task and model information. 2024-01-16 21:00:10,019 - modelscope - WARNING - No preprocessor key ('face_recognition', 'face_recognition') found in PREPROCESSOR_MAP, skip building preprocessor. 2024-01-16 21:00:10,096 - modelscope - INFO - image face recognition model init done 2024-01-16 21:00:10,101 - modelscope - WARNING - task face_recognition input definition is missing 2024-01-16 21:00:12,422 - modelscope - INFO - model inference done 2024-01-16 21:00:12,423 - modelscope - WARNING - task face_recognition output keys are missing 2024-01-16 21:00:13,811 - modelscope - INFO - model inference done 2024-01-16 21:00:14,023 - modelscope - INFO - model inference done 2024-01-16 21:00:14,239 - modelscope - INFO - model inference done 2024-01-16 21:00:16,090 - modelscope - INFO - model inference done 2024-01-16 21:00:16,232 - modelscope - INFO - model inference done 2024-01-16 21:00:16,428 - modelscope - INFO - model inference done 2024-01-16 21:00:16,639 - modelscope - INFO - model inference done 2024-01-16 21:00:16,849 - modelscope - INFO - model inference done 2024-01-16 21:00:17,046 - modelscope - INFO - model inference done 2024-01-16 21:00:17,256 - modelscope - INFO - model inference done 2024-01-16 21:00:17,464 - modelscope - INFO - model inference done 2024-01-16 21:00:17,612 - modelscope - INFO - model inference done 2024-01-16 21:00:17,752 - modelscope - INFO - model inference done 2024-01-16 21:00:17,897 - modelscope - INFO - model inference done 2024-01-16 21:00:18,103 - modelscope - INFO - model inference done 2024-01-16 21:00:18,157 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,216 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,268 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,321 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,373 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,426 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,478 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,531 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,579 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,627 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,675 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,723 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,770 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,818 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,865 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,911 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:18,959 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,006 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,056 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,104 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,150 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,198 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,245 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,292 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,340 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,387 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,435 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,482 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,528 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,574 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,622 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,669 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,718 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,764 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,811 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,858 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,915 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:19,972 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,029 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,084 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,142 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,199 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,255 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,312 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,368 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,425 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,481 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,538 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,594 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,651 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,707 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,763 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,820 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,876 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,932 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:20,989 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:21,046 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:21,103 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:21,161 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:21,218 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:21,275 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:21,322 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:21,369 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' 2024-01-16 21:00:21,416 - modelscope - INFO - model inference done error at: unsupported operand type(s) for : 'NoneType' and 'float' Dectect no face in training data, move last weights and validation image to best_outputs Applying attention optimization: xformers... done.

Fault Traceback: Not Available [Diagnostics-1705411372.log](https://github.com/aigc-apps/sd-webui-EasyPhoto/files/13950580/Diagnostics-1705411372.log) [Diagnostics-1705411372.log](https://github.com/aigc-apps/sd-webui-EasyPhoto/files/13950588/Diagnostics-1705411372.log)

wuziheng commented 10 months ago

我查看了你的log,似乎是训练数据或者生成的某个数据没有找到人脸。但

  1. outputs\easyphoto-user-id-infos\zpz\user_weights\pytorch_lora_weights.safetensors 你应该有这个文件了对吧,训练应该是成功了,。
  2. 你应该按照提示把这个文件手动搬到models/Lora 里面,试试生成
wuziheng commented 10 months ago

Dectect no face in training data, move last weights and validation image to best_outputs

翻译一下这句话,并按照指示执行,很奇怪你的id_image没有生成合理的人脸,但似乎按照这个指示之后是可以正常生成的。

flt6 commented 9 months ago

原因与#388 相似