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

关于代码运行报错 #2

Open
kongjibai opened this issue Oct 10, 2018 · 6 comments
Open

关于代码运行报错 #2

kongjibai opened this issue Oct 10, 2018 · 6 comments

Comments

@kongjibai
Copy link

您好!很高兴您能够分享您的项目,不过我用您的代码直接运行python main.py --phase train会报错,提示:
ValueError: Variable vgg_16/conv1/conv1_1/weights already exists, disallowed. Did you mean to set reuse=True in VarScope? Originally defined at:
File "/home/user/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/variables.py", line 216, in variable
use_resource=use_resource)
File "/home/user/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "/home/user/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/variables.py", line 261, in model_variable
use_resource=use_resource)
即使将vgg_feature.py中的相关函数注释掉也还是一样的,请问您能帮忙解释下么?跪求!

@Ling-Bao
Copy link
Owner

暂时没有遇见这个问题,可以检查下tensorflow版本,项目用的是python3.6和tensorflow1.0.0

@Ling-Bao Ling-Bao reopened this Oct 12, 2018
@kongjibai
Copy link
Author

确实是tensorflow版本的问题,谢谢啦!

@zychen2016
Copy link

确实是tensorflow版本的问题,谢谢啦!

你是哪个版本的?

@kongjibai
Copy link
Author

确实是tensorflow版本的问题,谢谢啦!

你是哪个版本的?

1.0.0

@RQuispeC
Copy link

RQuispeC commented Apr 6, 2019

Hi, you may be interested in my implementation in pytorch. It includes the density map generation.
https://github.com/RQuispeC/pytorch-ACSCP

@EillotY
Copy link

EillotY commented Sep 23, 2019

你好,那么您当时使用的是cuda8嘛?我看到对应的tensorflow-gpu1.0.0对应的只能是8.0;为何更高版本的tensorflow-gpu会出现这个错误呢?不应该是兼容嘛,感谢

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

5 participants