Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python代码错误 #3

Open
leijdjcn opened this issue May 6, 2024 · 1 comment
Open

python代码错误 #3

leijdjcn opened this issue May 6, 2024 · 1 comment

Comments

@leijdjcn
Copy link

leijdjcn commented May 6, 2024

Traceback (most recent call last):
File "D:\Download files\wenxiandaima\FCN\code\grid_FD_multi_channel_one_FCN_RUL_A2_attention_1out_all_train_for_test.py", line 431, in
plot_model(model, to_file=last_path+r"\Flatten.png", show_shapes=True)#########to_file='Flatten.png',last_path+r"\model\FCN_RUL_1out_train_valid_test{}.h5
File "C:\Users\Liyanhui.conda\envs\tensor\lib\site-packages\keras\utils\vis_utils.py", line 421, in plot_model
dot = model_to_dot(
File "C:\Users\Liyanhui.conda\envs\tensor\lib\site-packages\keras\utils\vis_utils.py", line 151, in model_to_dot
if not check_pydot():
File "C:\Users\Liyanhui.conda\envs\tensor\lib\site-packages\keras\utils\vis_utils.py", line 53, in check_pydot
except (OSError, pydot.InvocationException):
AttributeError: module 'pydot' has no attribute 'InvocationException

How to solve the above situation?

@foryichuanqi
Copy link
Owner

I suggest that you don't use the model I gave you, and use my code to train a new model for interpretability analysis.细微的环境变化都会造成模型无法使用,我建议你不要使用我给的模型,而是用我的代码训练一个新模型,用于可解释性分析。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants