Console corrupted -> corrupt (#6338)

* Console corrupted -> corrupt 

Minor style changes.

* Update export.py
This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-01-18 10:49:26 -10:00
1 parent 3119b2f27c
commit fd55271c04
2 files changed
+4 -5

No files matched your search

+3 -3
View File
@@ -424,9 +424,9 @@ class LoadImagesAndLabels(Dataset):
cache, exists = self.cache_labels(cache_path, prefix), False # cache
# Display cache
nf, nm, ne, nc, n = cache.pop('results') # found, missing, empty, corrupted, total
nf, nm, ne, nc, n = cache.pop('results') # found, missing, empty, corrupt, total
if exists:
d = f"Scanning '{cache_path}' images and labels... {nf} found, {nm} missing, {ne} empty, {nc} corrupted"
d = f"Scanning '{cache_path}' images and labels... {nf} found, {nm} missing, {ne} empty, {nc} corrupt"
tqdm(None, desc=prefix + d, total=n, initial=n) # display cache results
if cache['msgs']:
LOGGER.info('\n'.join(cache['msgs'])) # display warnings
@@ -523,7 +523,7 @@ class LoadImagesAndLabels(Dataset):
x[im_file] = [l, shape, segments]
if msg:
msgs.append(msg)
pbar.desc = f"{desc}{nf} found, {nm} missing, {ne} empty, {nc} corrupted"
pbar.desc = f"{desc}{nf} found, {nm} missing, {ne} empty, {nc} corrupt"
pbar.close()
if msgs: