def gqcnnsuction(): r = request.get_json() if 'segmask' in r: img, d, s = rgbdSegmaskFromRequest(r) state = gqcnnsuction_net.rgbd2state(img, d, segmask=s, intr=r['intr']) res = gqcnnsuction_net.predict(state) else: img, d = rgbdFromRequest(r) state = gqcnnsuction_net.rgbd2state(img, d, intr=r['intr']) res = gqcnnsuction_net.predict(state) return jsonify(res)
def fcgqcnnsuction(): r = request.get_json() img, d, s = rgbdSegmaskFromRequest(r) state = fcgqcnnsuction_net.rgbd2state(img, d, segmask=s, intr=r['intr']) res = fcgqcnnsuction_net.predict(state) return jsonify(res)