fix a bug with maskrcnn (#758)
This commit is contained in:
parent
7c1a145c34
commit
c70a338827
@ -25,7 +25,7 @@ int maskRcnnInference(int batchSize,
|
||||
class MaskRcnnInferencePlugin : public IPluginV2Ext {
|
||||
int _detections_per_im;
|
||||
int _output_size;
|
||||
int _num_classes;
|
||||
int _num_classes = 1;
|
||||
|
||||
protected:
|
||||
void deserialize(void const* data, size_t length) {
|
||||
|
||||
@ -124,7 +124,7 @@ sudo ./rcnn -d faster.engine ../samples
|
||||
|
||||
- you can build fasterRcnn with maskRcnn weights file.
|
||||
|
||||
- do initializing for _pre_nms_topk in RpnNmsPlugin and _count in BatchedNmsPlugin inside class to prevent error assert, because the configurePlugin function is implemented after clone() and before serialize(). one can also set it through constructor.
|
||||
- do initializing for _pre_nms_topk in RpnNmsPlugin, _count in BatchedNmsPlugin and _num_classes in MaskRcnnInferencePlugin inside class to prevent error assert, because the configurePlugin function is implemented after clone() and before serialize(). one can also set it through constructor.
|
||||
|
||||
## Quantization
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user