Skip to content

Commit

Permalink
Merge pull request #286 from yuedongli1/master
Browse files Browse the repository at this point in the history
delete help_url
  • Loading branch information
CaitinZhao authored Apr 22, 2024
2 parents 8228636 + 66e84f5 commit 6737cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mindyolo/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __init__(
if exists:
d = f"Scanning '{cache_path}' images and labels... {nf} found, {nm} missing, {ne} empty, {nc} corrupted"
tqdm(None, desc=d, total=n, initial=n) # display cache results
assert nf > 0 or not augment, f"No labels in {cache_path}. Can not train without labels. See {self.help_url}"
assert nf > 0 or not augment, f"No labels in {cache_path}. Can not train without labels."

# Read cache
cache.pop("hash") # remove hash
Expand Down Expand Up @@ -286,7 +286,7 @@ def cache_labels(self, path=Path("./labels.cache.npy")):
pbar.close()

if nf == 0:
print(f"WARNING: No labels found in {path}. See {self.help_url}")
print(f"WARNING: No labels found in {path}.")

x["hash"] = self._get_hash(self.label_files + self.img_files)
x["results"] = nf, nm, ne, nc, len(self.img_files)
Expand Down

0 comments on commit 6737cec

Please sign in to comment.