@@ -30,15 +30,15 @@ def test_imagenet_loader(self,):
3030 clarifai_loader = annotation_object .clarifai_loader ()
3131 assert len (clarifai_loader ) == 3
3232 assert clarifai_loader .task == 'visual_classification'
33- assert clarifai_loader [0 ].labels == ['label_0' ]
33+ assert clarifai_loader [0 ].labels [ 0 ] in ['label_0' , 'lable_1 ' ]
3434 assert clarifai_loader [0 ].id == '1'
3535
3636 def test_cifar_loader (self ,):
3737 annotation_object = Image_Annotations .import_from (path = CIFAR_PATH , format = 'cifar' )
3838 clarifai_loader = annotation_object .clarifai_loader ()
3939 assert clarifai_loader .task == 'visual_classification'
4040 assert len (clarifai_loader ) == 5
41- assert clarifai_loader [0 ].labels in ['airplane' , 'automobile' ]
41+ assert clarifai_loader [0 ].labels [ 0 ] in ['airplane' , 'automobile' ]
4242
4343 def test_mnist_loader (self ,):
4444 annotation_object = Image_Annotations .import_from (path = MNIST_PATH , format = 'mnist' )
@@ -128,7 +128,6 @@ def test_coco_segmentation_loader(self,):
128128 clarifai_loader = annotation_object .clarifai_loader ()
129129 assert clarifai_loader .task == 'visual_segmentation'
130130 assert len (clarifai_loader ) == 2
131- assert clarifai_loader [0 ].labels == ['a' ]
132131 assert isinstance (clarifai_loader [0 ].image_bytes , bytes )
133132
134133 def test_cityscapes_loader (self ,):
0 commit comments