Prior to this change, a warning would be printed when running compute_patch_embeddings() if a sample contained zero patches (which is allowed). However, the intention was only to print an error if there were actually patch embeddings that could not be computed due to bad data.
Prior to this change, a warning would be printed when running
compute_patch_embeddings()
if a sample contained zero patches (which is allowed). However, the intention was only to print an error if there were actually patch embeddings that could not be computed due to bad data.