forked from mindspore-Ecosystem/mindspore
!14775 Fix codex & pylint & cpplint problem for master
From: @xiefangqi Reviewed-by: @heleiwang,@liucunwei Signed-off-by: @liucunwei
This commit is contained in:
commit
20fa7fa276
|
@ -51,7 +51,11 @@ uint8_t DataType::AsCVType() const {
|
|||
}
|
||||
|
||||
if (res == kCVInvalidType) {
|
||||
std::string err_msg = "Cannot convert [" + std::string(kTypeInfo[type_].name_) + "] to OpenCV type.";
|
||||
std::string type_name = "unknown";
|
||||
if (type_ < DataType::NUM_OF_TYPES) {
|
||||
type_name = std::string(kTypeInfo[type_].name_);
|
||||
}
|
||||
std::string err_msg = "Cannot convert [" + type_name + "] to OpenCV type.";
|
||||
err_msg += " Currently unsupported data type: [uint32, int64, uint64, string]";
|
||||
MS_LOG(ERROR) << err_msg;
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include <vector>
|
||||
#include <utility>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include "minddata/dataset/engine/datasetops/map_op/cpu_map_job.h"
|
||||
|
||||
namespace mindspore {
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace mindspore {
|
|||
namespace dataset {
|
||||
class MDChannelInfo {
|
||||
public:
|
||||
explicit MDChannelInfo(std::string channel_name) : channel_name_(channel_name) {}
|
||||
explicit MDChannelInfo(std::string channel_name) : channel_name_(channel_name), preprocess_batch_(0) {}
|
||||
|
||||
~MDChannelInfo() = default;
|
||||
|
||||
|
|
|
@ -20,12 +20,12 @@ import os
|
|||
import numpy as np
|
||||
from numpy import random
|
||||
|
||||
import cv2
|
||||
import mmcv
|
||||
import mindspore.dataset as de
|
||||
import mindspore.dataset.vision.c_transforms as C
|
||||
from mindspore.mindrecord import FileWriter
|
||||
from src.config import config
|
||||
import cv2
|
||||
|
||||
|
||||
def bbox_overlaps(bboxes1, bboxes2, mode='iou'):
|
||||
|
|
Loading…
Reference in New Issue