!13136 【MD】【BUG】Fix log print for MD

From: @xulei2020
Reviewed-by: @heleiwang
Signed-off-by: @heleiwang
This commit is contained in:
mindspore-ci-bot 2021-03-13 10:01:34 +08:00 committed by Gitee
commit 7e8fa13197
2 changed files with 3 additions and 3 deletions

View File

@ -337,7 +337,7 @@ Status ManifestOp::ParseManifestFile() {
}
} catch (const std::exception &err) {
file_handle.close();
RETURN_STATUS_UNEXPECTED("Invalid file, failed to parse manifest file: " + line);
RETURN_STATUS_UNEXPECTED("Invalid file, failed to parse manifest file: " + file_);
}
}
num_classes_ = classes.size();

View File

@ -107,9 +107,9 @@ def decode(img):
img = Image.open(data)
return img.convert('RGB')
except IOError as e:
raise ValueError("{0}\nWARNING: Failed to decode given image.".format(e))
raise ValueError("{0}\n: Failed to decode given image.".format(e))
except AttributeError as e:
raise ValueError("{0}\nWARNING: Failed to decode, Image might already be decoded.".format(e))
raise ValueError("{0}\n: Failed to decode, Image might already be decoded.".format(e))
def hwc_to_chw(img):