py-faster-rcnn icon indicating copy to clipboard operation
py-faster-rcnn copied to clipboard

Learning in CPU

Open marifnst opened this issue 9 years ago • 7 comments

dear all

i try to implement faster r cnn in CPU mode. actually, faster r cnn officially doesnt provide training in CPU mode.

so, i made changes:

  • roi_pooling_layer.cpp -->conversion based on roi_pooling_layer.cu
  • smooth_L1_loss_layer.cpp --> conversion based on smooth_L1_loss_layer.cu

it's compiled successfully and training can be run smoothly using ZF network (my training process still in progress right now). anybody can help to give suggestion about my changes on attached code ? is my code conversion correct ?

regards muhammad arifn nasution

changes code.zip

marifnst avatar Jul 31 '16 08:07 marifnst

@marifnst Have a look at this PR. Some people are also trying to implement de CPU mode.

Austriker avatar Aug 01 '16 08:08 Austriker

@Austriker thank you for your information. i will visit the thread. my code running well and i intend to compare learning result in GPU mode. because i intend to train faster r cnn in very low resource (ex mobile GPU) will be shared soon.

marifnst avatar Aug 01 '16 17:08 marifnst

@Austriker @marifnst I implemented the code based on GPU code of smooth l1 loss, but the gpu code doesnt take weights into consideration in its back propagation. Is this a mistake or am I missing something?

saiprabhakar avatar Aug 16 '16 17:08 saiprabhakar

@marifnst Can you please tell me what all to be done after changing the files for training FRCNN in CPU mode? Do i need to change the files or is it possible by giving any argument in the train option

indsak avatar Jun 08 '17 05:06 indsak

@marifnst hi tq for sharing the .cpp files is it possible to share the .cu files also since when i replace the existing files with urs i am ot able to get any changes

abhigoku10 avatar Jul 21 '17 19:07 abhigoku10

@abhigoku10 After replaceing the existing files with the above two .cpp files , you should cd $FRCN_ROOT/caffe-fast-rcnn sudo make clean sudo make -j $(($(nproc) + 1)) && make pycaffe

sdews avatar Sep 13 '17 07:09 sdews

Hi @marifnst, I followed all the instructions and replaced both the files but could not get train in cpu mode. Please help me, I would be highly greatful!

Kshitij-Parashar avatar Jun 02 '19 06:06 Kshitij-Parashar