a312863063 / seeprettyface-generator-wanghong

这是一个用StyleGAN训练出的网红脸生成器

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

报错:nvalidArgumentError (see above for traceback): Cannot assign a device for operation 'Gs/_Run/Gs/latents_in': Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device. [[Node: Gs/_Run/Gs/latents_in = Identity[T=DT_FLOAT, _device="/device:GPU:0"](Gs/_Run/split)]]

wangyifan349 opened this issue · comments

anaconda搭建python3.6,TensorFlow==1.10.0,numpy==1.14.3但是运行后报错
InvalidArgumentError (see above for traceback): Cannot assign a device for operation 'Gs/_Run/Gs/latents_in': Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device.
[[Node: Gs/_Run/Gs/latents_in = IdentityT=DT_FLOAT, _device="/device:GPU:0"]]
解决下代码问题...