caffe - 属性错误: 'module' object has no attribute 'set_random_seed'

标签 caffe

当我尝试使用自己的运行py-faster-rcnn时,我收到错误AttributeError: 'module' object has no attribute 'set_random_seed' >数据集。 谁能帮我吗?

最佳答案

这是概率,因为您使用的是 Tensorflow 2。因此,您可以简单地使用

import tensorflow as tf    
tf.random.set_seed(seed)

关于caffe - 属性错误: 'module' object has no attribute 'set_random_seed' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49217764/

相关文章:

在 Caffe 中对模型进行基准测试 - 数据集有影响吗?

python - 加载神经网络时如何解释文件 mean.binaryproto?

machine-learning - InfogainLoss 层 blob 失败

machine-learning - 为什么在 Pycaffe 中使用自定义 python 层进行训练非常慢?

咖啡蟒: implementing a residual layer

deep-learning - Caffe 自动编码器

machine-learning - 在 Torch 中微调 Caffe 模型

boost - 在Red Hat OS上安装boost时“No such file or directory”错误

Caffe:train_test.prototxt 和 deploy.prototxt 有什么区别?

neural-network - 使用 PyCaffe 的全连接多层感知器