Attribute error nonetype object has no attribute copy in detection_base_model.py #101
Open
2 tasks done
Labels
bug
Something isn't working
Search before asking
Bug
During the loading of images, an AttributeError may be thrown. There is supposedly a file in the folder, but it does not exist. An attempt is made to copy it.
I implemented following to prevent:
for f_path in progress_bar:
progress_bar.set_description(desc=f"Labeling {f_path}", refresh=True)
image = cv2.imread(f_path)
if image is not None:
f_path_short = os.path.basename(f_path)
images_map[f_path_short] = image.copy()
detections = self.predict(f_path)
detections_map[f_path_short] = detections
Environment
No response
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: