Added loss to rcnn