@LookStars
这个我在 “stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py” 这里搜 from_tf , 把False改成True,过去了,然后后面又卡在
Loading a TensorFlow model in PyTorch, requires both PyTorch and TensorFlow to be installed. Please see https://pytorch.org/ and https://www.tensorflow.org/install/ for installation instructions.
Traceback (most recent call last):
File "F:\Project\AI\stable-diffusion-webui-master\launch.py", line 165, in <module>
start_webui()
File "F:\Project\AI\stable-diffusion-webui-master\launch.py", line 159, in start_webui
import webui
File "F:\Project\AI\stable-diffusion-webui-master\webui.py", line 82, in <module>
shared.sd_model = modules.sd_models.load_model()
File "F:\Project\AI\stable-diffusion-webui-master\modules\sd_models.py", line 174, in load_model
sd_model = instantiate_from_config(sd_config.model)
File "F:\Project\AI\stable-diffusion-webui-master\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "F:\Project\AI\stable-diffusion-webui-master\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 461, in init
self.instantiate_cond_stage(cond_stage_config)
File "F:\Project\AI\stable-diffusion-webui-master\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 519, in instantiate_cond_stage
model = instantiate_from_config(config)
File "F:\Project\AI\stable-diffusion-webui-master\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "F:\Project\AI\stable-diffusion-webui-master\repositories\stable-diffusion\ldm\modules\encoders\modules.py", line 142, in init
self.transformer = CLIPTextModel.from_pretrained(version)
File "F:\Project\AI\stable-diffusion-webui-master\venv\lib\site-packages\transformers\modeling_utils.py", line 2035, in from_pretrained
model = load_tf2_checkpoint_in_pytorch_model(model, resolved_archive_file, allow_missing_keys=True)
File "F:\Project\AI\stable-diffusion-webui-master\venv\lib\site-packages\transformers\modeling_tf_pytorch_utils.py", line 293, in load_tf2_checkpoint_in_pytorch_model
import tensorflow as tf # noqa: F401
ModuleNotFoundError: No module named 'tensorflow'
这里了...