我一直在尝试运行这个Tensorflow风格的传输实现-- Windows上的https://github.com/anishathalye/neural-style ( GPU版本),但是我得到了以下错误:
ResourceExhaustedError (关于追溯,请参阅上文):OOM在使用shape64,239400分配张量时[节点:渐变/MatMul_grad/MatMul=MatMuldevice="/job:localhost/replica:0/task:0/gpu:0"]
我在Tensorflow和Python方面都是一个完全的初学者,所以我不知道如何解决这个问题。
发布于 2017-04-08 01:14:57
这是内存不足的错误。您没有足够的GPU内存来运行这个映像的深层网络。
你有两个解决方案:
CUDA_VISIBLE_DEVICES= python neural_style.py <content file> --styles <style file> --output <output file>
https://stackoverflow.com/questions/43291926
复制相似问题