Faster-RCNN-TensorFlow-Python3 icon indicating copy to clipboard operation
Faster-RCNN-TensorFlow-Python3 copied to clipboard

when i was training my data,there is a issue exist as follow:> d:\orgin\faster-rcnn-tensorflow-python3.5-master\faster-rcnn-tensorflow-python3.5-master\lib\layer_utils\proposal_target_layer.py(139)_sample_rois() -> keep_inds = np.append(fg_inds, bg_inds) (Pdb)

Open tdf1995 opened this issue 8 years ago • 31 comments

This problem appears after completing several rounds of training

tdf1995 avatar May 14 '18 08:05 tdf1995

i met the same problem. did you solve it?

xupinjie avatar May 15 '18 07:05 xupinjie

@Jasonxu033 there is a problem in my dataset

tdf1995 avatar May 17 '18 08:05 tdf1995

@tdf1995 what problem?

xupinjie avatar May 17 '18 13:05 xupinjie

I met the same problem. keep_inds = np.append(fg_inds, bg_inds) (Pdb), did you solve it?

niuniu111 avatar May 21 '18 05:05 niuniu111

@niuniu111 Some probles in your dateset. There are some pictures couldnot fit the annotation.

xupinjie avatar May 21 '18 06:05 xupinjie

I use VGG16 to run normally. When running RESNET, there is a similar error. Does this mean that the data is OK?

niuniu111 avatar May 21 '18 11:05 niuniu111

@niuniu111 sorry i didn't try resnet

xupinjie avatar May 22 '18 08:05 xupinjie

I changed the learning rate from 0.0001 to 0.1,then the (Pdb) error occurs, I hope it will help you

lccate avatar May 23 '18 02:05 lccate

For me, this error occurs randomly. I have trained entire pascal voc before yet the second day when I tried to train the network, I saw this error message. I don't think it is code which is problematic. This might because my GPU or RAM are not stable. Try to run it on another device. Just my observation. Hope it is helpful.

LarryJiang134 avatar Jul 13 '18 08:07 LarryJiang134

It's hopeful,Thanks

niuniu111 avatar Jul 13 '18 08:07 niuniu111

imdb.append_flipped_images() Will this code affect?

kmust-why avatar Aug 12 '18 01:08 kmust-why

f:\pycode\faster-rcnn-tensorflow-python3.5-master\lib\layer_utils\proposal_tar get_layer.py(138)_sample_rois() -> keep_inds = np.append(fg_inds, bg_inds) (Pdb)

yhs95 avatar Aug 15 '18 01:08 yhs95

Is training your own data set?

kmust-why avatar Aug 15 '18 01:08 kmust-why

You can try to reduce the value of SCALES.

kmust-why avatar Aug 15 '18 01:08 kmust-why

I tried it, is it modified in config.py? How much is it appropriate to change the value of SCALES?

yhs95 avatar Aug 15 '18 01:08 yhs95

I use SCALES = [1,2,4,8,16], RATIOS = [0.5,1,2], you can try it.

kmust-why avatar Aug 15 '18 01:08 kmust-why

The picture I used for training is a grayscale image.According to what you said, using SCALES = [1,2,4,8,16], RATIOS = [0.5,1,2] will not work.As shown.After entering c, this result appears InvalidArgumentError (see above for traceback): Incompatible shapes: [0,24] vs. [256,24]。

yhs95 avatar Aug 15 '18 02:08 yhs95

Have you solved this problem later? I have encountered this problem again today.

kmust-why avatar Aug 16 '18 01:08 kmust-why

This problem appears after completing several rounds of training

same question,have you solved it??

Tju-AI avatar Oct 08 '18 15:10 Tju-AI

The picture I used for training is a grayscale image.According to what you said, using SCALES = [1,2,4,8,16], RATIOS = [0.5,1,2] will not work.As shown.After entering c, this result appears InvalidArgumentError (see above for traceback): Incompatible shapes: [0,24] vs. [256,24]。

same question, have you solved this problem? What is the reason?

niuniu111 avatar Oct 10 '18 10:10 niuniu111