dec icon indicating copy to clipboard operation
dec copied to clipboard

type object 'Net' has no attribute 'set_phase_train'

Open Doreenruirui opened this issue 8 years ago • 7 comments

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 avatar Dec 19 '16 19:12 Doreenruirui

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

Doreenruirui avatar Dec 19 '16 21:12 Doreenruirui

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

rucieryi avatar Nov 23 '17 05:11 rucieryi

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

yuanxuanfighting avatar Dec 11 '17 08:12 yuanxuanfighting

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 avatar Jan 28 '18 08:01 JohnnMa

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.

JohnnMa avatar Feb 04 '18 07:02 JohnnMa

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

wuhuaibi avatar Mar 24 '18 03:03 wuhuaibi

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

xinyeDu avatar Jun 04 '19 12:06 xinyeDu