BookmarkSubscribeRSS Feed
TzufRaifMia
Calcite | Level 5

Hey All!

I am training an Image classification model in SAS.
For that, I uploaded images from  S3 (Amazon Bucket) into CAS Table.

The problem is- two out of 5 columns (_path_, _image_) are 'varbinary' type,  which makes issues.
I am looking for a way to overcome it and being able working with 'path' value (I need to extract the label from it).

 

Attached are

1. The code I used for uploading from S3,

2. The error I get while trying to work with '_path_' column.

3. _Path_ column props

 

 

Will be  happy to here your thoughts,

Thanks,

T

S3 extractS3 extractcolumn propcolumn propErrorError

4 REPLIES 4
Mazi
Pyrite | Level 9
Hey, T -

Not sure if you’ve solved this problem?

Have you tried using CASL with the computedVars parameter in some CAS action?
TzufRaifMia
Calcite | Level 5

Hey,

Problem solved.

Thanks,

T

Mazi
Pyrite | Level 9
Hey T,

I’m curious to know how you solved it, if you don’t mind.

Thanks
Patrick
Opal | Level 21

The CAS Libname Engine doesn't support Varbinary but you can use the Caslib with FedSQL or DS2 syntax instead which both support this data type.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 616 views
  • 1 like
  • 3 in conversation