forked from mindspore-Ecosystem/mindspore
!24329 fix operator SBUDataset
Merge pull request !24329 from ckczzj/debug_sbu_dataset
This commit is contained in:
commit
00f769d06f
|
@ -209,7 +209,8 @@ Status SBUOp::GetAvailablePairs(std::ifstream &url_file_reader, std::ifstream &c
|
|||
}
|
||||
|
||||
Status SBUOp::ParsePair(const std::string &url, const std::string &caption) {
|
||||
std::string image_name = url.substr(23, std::string::npos);
|
||||
CHECK_FAIL_RETURN_UNEXPECTED(url.length() > 23, "Invalid url in " + url_path_.ToString() + ": " + url);
|
||||
std::string image_name = url.substr(23);
|
||||
RETURN_IF_NOT_OK(this->ReplaceAll(&image_name, "/", "_"));
|
||||
|
||||
Path image_path = image_folder_ / Path(image_name);
|
||||
|
|
Loading…
Reference in New Issue