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

type object 'Net' has no attribute 'set_phase_train' #11

Open
Doreenruirui opened this issue Dec 19, 2016 · 7 comments
Open

type object 'Net' has no attribute 'set_phase_train' #11

Doreenruirui opened this issue Dec 19, 2016 · 7 comments

Comments

@Doreenruirui
Copy link

Hi @piiswrong ,

I have change the path of caffe in dec.py as the path where I installed cafe. When I run python dec.py mnist, it reports "type object 'Net' has no attribute 'set_phase_train'", it seems to be caused by different versions of caffe. But the caffe version in your directory seems not be able to been built. Do you have any idea how I should solve this problem?

Thanks,
Rui

@Doreenruirui
Copy link
Author

Hi,

I have solve this problem but I meet a new one:
when run python dec.py mnist:
F1219 15:58:55.244161 6564 common.cpp:53] CPU-only Mode: cannot make GPU call.
Could you please give me some suggestions if you have any?

Best,
Rui

@rucieryi
Copy link

Hi,
I have the same problem of "type object 'Net' has no attribute 'set_phase_train'". Can you tell me how to solve it?
Thanks

@yuanxuanfighting
Copy link

Hi @Doreenruirui ,
I have the same problem of "type object 'Net' has no attribute 'set_phase_train'". Can you tell me how to solve it?
Thanks

@JohnnMa
Copy link

JohnnMa commented Jan 28, 2018

Hi @Doreenruirui ,
I have the same problem of "type object 'Net' has no attribute 'set_phase_train''.Can you tell me how to solve it?
Thanks

@JohnnMa
Copy link

JohnnMa commented Feb 4, 2018

I have solved the problem. I think we must use the version of caffe that the author offered.It has been modified in source code.

@wuhuaibi
Copy link

@JohnnMa Hello, can you tell me how to use the author's caffe version, thank you.

@xinyeDu
Copy link

xinyeDu commented Jun 4, 2019

Hello,@Doreenruirui
I have the same problem of "type object 'Net' has no attribute 'set_phase_train''.Can you tell me how to solve it?
Thanks

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

6 participants