Compare commits
No commits in common. "f3ee7a4fb485ede950bc0579c252d9b2e0435c9f" and "f956b8b4d2260da9f33da825b1b8158c476dd563" have entirely different histories.
f3ee7a4fb4
...
f956b8b4d2
@ -144,7 +144,6 @@ final class ClassifierCreator {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
let changedImageList = await getChangedImageList()
|
let changedImageList = await getChangedImageList()
|
||||||
.filter { $0.image < imageCounts[$0.cap] ?? 0 } // Filter non-existent images
|
|
||||||
|
|
||||||
if changedImageList.isEmpty {
|
if changedImageList.isEmpty {
|
||||||
print("[INFO] No changed images to load")
|
print("[INFO] No changed images to load")
|
||||||
@ -181,9 +180,6 @@ final class ClassifierCreator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func loadImage(cap: Int, image: Int) async -> Bool {
|
private func loadImage(cap: Int, image: Int) async -> Bool {
|
||||||
guard createFolderIfMissing(imageDirectory.appendingPathComponent(String(format: "%04d", cap))) else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
let url = imageUrl(base: server.appendingPathComponent("images"), cap: cap, image: image)
|
let url = imageUrl(base: server.appendingPathComponent("images"), cap: cap, image: image)
|
||||||
let tempFile: URL, response: URLResponse
|
let tempFile: URL, response: URLResponse
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user