This repository was archived by the owner on Dec 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,12 @@ export class CntkExportProvider extends ExportProvider<ICntkExportProviderOption
76
76
} ) ;
77
77
} ) ;
78
78
79
+ const buffer = await HtmlFileReader . getAssetArray ( assetMetadata . asset ) ;
79
80
const folderName = exportSplit === ExportSplit . Train ? "positive" : "testImages" ;
80
81
const labelsPath = `${ this . exportFolderName } /${ folderName } /${ assetMetadata . asset . name } .bboxes.labels.tsv` ;
81
82
const boundingBoxPath = `${ this . exportFolderName } /${ folderName } /${ assetMetadata . asset . name } .bboxes.tsv` ;
82
83
const binaryPath = `${ this . exportFolderName } /${ folderName } /${ assetMetadata . asset . name } ` ;
83
84
84
- const buffer = await HtmlFileReader . getAssetArray ( assetMetadata . asset ) ;
85
-
86
85
await Promise . all ( [
87
86
this . storageProvider . writeText ( labelsPath , labelData . join ( os . EOL ) ) ,
88
87
this . storageProvider . writeText ( boundingBoxPath , boundingBoxData . join ( os . EOL ) ) ,
Original file line number Diff line number Diff line change @@ -171,7 +171,9 @@ export default class ProjectService implements IProjectService {
171
171
* @param project The project to update
172
172
*/
173
173
private ensureBackwardsCompatibility ( project : IProject ) {
174
- if ( project . version === "2.0.0" ) {
174
+ const projectVersion = project . version . toLowerCase ( ) ;
175
+
176
+ if ( projectVersion . startsWith ( "2.0.0" ) ) {
175
177
// Required for backwards compatibility with v2.0.0 release
176
178
if ( project . exportFormat . providerType === "tensorFlowPascalVOC" ) {
177
179
project . exportFormat . providerType = "pascalVOC" ;
You can’t perform that action at this time.
0 commit comments