- 博客(13)
- 收藏
- 关注
原创 Jupyter notebook kernel error 无法使用:pywintypes.error: (87, ‘SetFileSecurity‘, ‘参数错误.‘)
问题:启动jupyter notebook正常打开,但kelnel error无法正常使用,提示错误:pywintypes.error: (87, 'SetFileSecurity', '参数错误.') 或 pywintypes.error: (87, 'SetFileSecurity', 'Parameters incorrect.')。解决方案:Win Error大都是系统环境问题导致的。SetFileSecurity看着是需要一些写操作权限的,jupyter notebook需要C:.
2021-06-25 09:22:12 1236
翻译 Jupyter notebook无法打开: pywintypes.error: (5, ‘SetFileSecurity‘, ‘Access is denied.‘)
问题:启动jupyter notebook无法打开,发现是权限问题。Traceback (most recent call last):File "D:\Chris\Continuum\anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole\plugin.py", line 1173, in create_kernel_manager_and_kernel_clientkernel_manager.start_kernel(stder
2021-06-24 23:26:20 1159
原创 使用Model.fit_generator时收到弃用警告: Model.fit_generator is deprecated and will be removed
Tensorflow2.1版本以后在使用Model.fit_generator时收到了此弃用警告:WARNING:tensorflow: Model.fit_generator (from tensorflow.python.keras.engine.training) is deprecated and will be removed in a future version. Instructions for updating: Please use Model.fit, which supports
2021-06-24 22:56:14 9389 9
原创 tensorflow中if判断相等 (使用==出错using a `tf.Tensor` as a Python `bool` is not allowed)
问题:在tensorflow或者keras中使用==,例如if Tensor_A == Tensor_B时,会导致错误:using a `tf.Tensor` as a Python `bool` is not allowed解决方案:这是因为==或!=等运算符返回的是bool Tensor,而不是python中普通的bool。可以使用is进行直接判断两个Tensor是否相同;或使用(Tensor_A==Tensor_B)is not None;如果要判断if ...
2021-06-24 22:47:22 1968 1
原创 ValueError: tf.function-decorated function tried to create variables on non-first call
问题:tf 1x 的代码迁移到 tf 2x时出现错误:ValueError: tf.function-decorated function tried to create variables on non-first call解决方案:在model.compiler()之后添加model.run_eagerly = True但是对tf 1x 定义的一些函数提示WARNING:tensorflow:AutoGraph could not transform <functi
2021-06-21 23:59:06 2475 4
原创 WARNING:tensorflow:`add_update` `inputs` kwarg has been deprecated.
使用tensorflow 1x定义的层在tf2中使用提示警告:WARNING:tensorflow:`add_update` `inputs` kwarg has been deprecated. 检查是自定义BN层中采用self.add_update([...], inputs)的写法,而在tf2x版本中使用autoGraph,inputs参数已经被淘汰了,当然写了也会兼容,但是会被警告。修改为:self.add_update([...])则可以免除警告的骚扰。https://g...
2021-06-21 23:49:33 699 2
原创 Cython批量编译py文件
使用个训练就能解决import setuptools # 重要from distutils.core import setupfrom Cython.Build import cythonizepyfiles = ['od.py', 'net/initializers.py', 'net/iou_utils.py', 'net/layers.py', 'net/losses.py',
2021-06-15 20:14:28 1420
翻译 Cython编译错误“error: Unable to find vcvarsall.bat”
解决方案:1、确保有 Microsoft Visual C++ Compiler ,没有安装有则跳过;2、在代码中加入,可以让Python和编译器yuku
2021-06-15 20:10:55 567
转载 GPU显存释放:GPU显存被占用,但不显示进程ID
如果使用命令nvidia-smi不显示占用GPU显存的进程,可以使用以下命令查看:fuser -v /dev/nvidia01nvidia后面的0表示GPU的id号。输入上述命令会显示残留的进程,如下:逐个把残留进程kill掉就行了,命令为:kill id1kill完残留进程后,GPU显存即可完全释放。————————————————版权声明:本文为CSDN博主「LCCFlccf」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https
2021-06-09 19:30:53 5153 2
原创 “val_loss“ KeyError: Failed to format this callback filepath
在使用tensorflow2的keras环境运行原keras代码的ModelCheckpoint
2021-06-07 19:55:20 3579
转载 jupyter notebook远程访问配置
安装jupyter notebook笔者使用conda包管理conda install jupyter notebook生成默认配置文件jupyter notebook --generate-config将会在用户主目录下生成.jupyter文件夹,其中jupyter_notebook_config.py就是刚刚生成的配置文件生成秘钥输入 ipython,进入ipyhon命令行输入In [1]: from notebook.auth import...
2021-06-04 10:37:50 691
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人