forked from mindspore-Ecosystem/mindspore
!13136 【MD】【BUG】Fix log print for MD
From: @xulei2020 Reviewed-by: @heleiwang Signed-off-by: @heleiwang
This commit is contained in:
commit
7e8fa13197
|
@ -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();
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue