forked from MapComplete/MapComplete
Chore: maintenance of imageAnalysis script
This commit is contained in:
parent
b90e90ceb8
commit
6fd481264b
1 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@ export default class GenerateImageAnalysis extends Script {
|
||||||
tag,
|
tag,
|
||||||
[],
|
[],
|
||||||
"https://overpass.kumi.systems/api/interpreter",
|
"https://overpass.kumi.systems/api/interpreter",
|
||||||
new ImmutableStore(180),
|
new ImmutableStore(500),
|
||||||
undefined,
|
undefined,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
|
@ -110,10 +110,10 @@ export default class GenerateImageAnalysis extends Script {
|
||||||
|
|
||||||
const msg = `${i}/${
|
const msg = `${i}/${
|
||||||
allImages.size
|
allImages.size
|
||||||
} downloaded: ${d},skipped: ${s}, failed: ${f}, running: ${runningSecs}sec, ETA: ${estimatedActualMinutes}:${
|
} downloaded: ${d},skipped: ${s}, failed: ${f}, running: ${Math.floor(runningSecs)}sec, ETA: ${estimatedActualMinutes}:${
|
||||||
estimatedActualSeconds % 60
|
estimatedActualSeconds % 60
|
||||||
}`
|
}`
|
||||||
ScriptUtils.erasableLog(msg)
|
ScriptUtils.erasableLog( " ", msg)
|
||||||
if (downloaded) {
|
if (downloaded) {
|
||||||
d++
|
d++
|
||||||
} else {
|
} else {
|
||||||
|
@ -227,10 +227,10 @@ export default class GenerateImageAnalysis extends Script {
|
||||||
}
|
}
|
||||||
|
|
||||||
async main(args: string[]): Promise<void> {
|
async main(args: string[]): Promise<void> {
|
||||||
const datapath = args[0] ?? "../MapComplete-data/ImageLicenseInfo"
|
const datapath = args[0] ?? "../../git/MapComplete-data/ImageLicenseInfo"
|
||||||
await this.downloadData(datapath)
|
await this.downloadData(datapath)
|
||||||
|
|
||||||
//await this.downloadMetadata(datapath)
|
await this.downloadMetadata(datapath)
|
||||||
this.analyze(datapath)
|
this.analyze(datapath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue