Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmdnn.conversion.caffe.errors.ConversionError: Output shape computation not implemented for type: Crop #576

Open
missingdaysqxy opened this issue Jan 29, 2019 · 1 comment

Comments

@missingdaysqxy
Copy link

I found that there are some shape_not_implemented in LAYER_DESCRIPTORS of MMdnn/mmdnn/conversion/caffe/graph.py , and this will cause exceptions as title. How to solve these?

Platform: Red Hat 4.8.5-11 with 4 Nvidia Tesla P40 GPUs
Python version: Python 3.6.5: Anaconda, Inc.
MMdnn: #567 version 0.2.3
Source framework: caffe (I didn't install caffe in my linux, but use from mmdnn.conversion.caffe import caffe_pb2 as backend)
Destination framework: IR
Pre-trained model path : weights of face_segmentation

Running scripts: mmtoir -f caffe -w face_seg_fcn8s.caffemodel -n face_seg_fcn8s_deploy.prototxt -d fcn8s_ir --inputShape 3 500 500

Error messages:

[liuqixuan_i@ml-gpu-ser544 codes]$ mmtoir -f caffe -w face_seg_fcn8s.caffemodel -n face_seg_fcn8s_deploy.prototxt -d fcn8s_ir --inputShape 3 500 500

------------------------------------------------------------
    WARNING: PyCaffe not found!
    Falling back to a pure protocol buffer implementation.
    * Conversions will be drastically slower.
    * This backend is UNTESTED!
------------------------------------------------------------

Traceback (most recent call last):
  File "/home/liuqixuan_i/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/caffe/graph.py", line 130, in compute_output_shape
    return LAYER_DESCRIPTORS[node.kind](node)
  File "/home/liuqixuan_i/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/caffe/shape.py", line 35, in shape_not_implemented
    raise NotImplementedError
NotImplementedError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/liuqixuan_i/anaconda3/bin/mmtoir", line 11, in <module>
    sys.exit(_main())
  File "/home/liuqixuan_i/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/_script/convertToIR.py", line 192, in _main
    ret = _convert(args)
  File "/home/liuqixuan_i/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/_script/convertToIR.py", line 16, in _convert
    transformer = CaffeTransformer(args.network, args.weights, "tensorflow", inputshape[0], phase = args.caffePhase)
  File "/home/liuqixuan_i/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/caffe/transformer.py", line 322, in __init__
    graph = GraphBuilder(def_path, self.input_shape, self.is_train_proto, phase).build()
  File "/home/liuqixuan_i/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/caffe/graph.py", line 450, in build
    graph.compute_output_shapes(self.model)
  File "/home/liuqixuan_i/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/caffe/graph.py", line 274, in compute_output_shapes
    node.output_shape = TensorShape(*NodeKind.compute_output_shape(node))
  File "/home/liuqixuan_i/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/caffe/graph.py", line 132, in compute_output_shape
    raise ConversionError('Output shape computation not implemented for type: %s' % node.kind)
mmdnn.conversion.caffe.errors.ConversionError: Output shape computation not implemented for type: Crop
@juliankleine
Copy link

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants