Running Jupyter Notebook and trying to load images and their labels but have come across errors trying to run the code.
The link above is the code from Git Hub.
Code:
error message:
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /tmp/ipykernel_25351/1026304421.py in <module> ----> 1 object_detection_targets = create_object_detection_table_no_xml(conn=s, 2 data_path='/data/notebook/Face_Mask_Detection/training_images_augmented/', 3 annotation_path='/data/notebook/Face_Mask_Detection/training_images_augmented/', 4 coord_type='yolo', 5 output='detTbl') /opt/anaconda3/lib/python3.9/site-packages/dlpy/utils.py in create_object_detection_table_no_xml(conn, data_path, coord_type, output, annotation_path, image_size) 2464 label_files = [x for x in label_files if x.endswith('.txt')] 2465 else: -> 2466 label_files = conn.fileinfo(caslib=caslib_annotation, allfiles=True).FileInfo['Name'].values 2467 label_files = [x for x in label_files if x.endswith('.txt')] 2468 /opt/anaconda3/lib/python3.9/site-packages/swat/cas/results.py in __getattr__(self, name) 361 if name in self: 362 return self[name] --> 363 return super(CASResults, self).__getattribute__(name) 364 365 def get_set(self, num): AttributeError: 'CASResults' object has no attribute 'FileInfo'
I also don't understand how the images are accessed from jupyter notebook since the path of the image appears to have the images be uploaded to jupyter notebook then it can be accessed.
Hi I am running another part of the code the image augmentation part but I have come across the exact same error. The same error pops up but I have checked the file path and the images all have the .jpg and .txt extensions.
I don't understand the error
Did a little debugging and turns out the data format was wrong. The path was correct.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!