amazon-sagemaker-clip-search
amazon-sagemaker-clip-search copied to clipboard
Build a machine learning (ML) powered search engine prototype to retrieve and recommend products based on text or image queries
I have an import error with the sagemaker SDK.. Could you please let me know which one was the latest working version?
On the def get_image_from_item_id(item_id = "B0896LJNLH", return_image=True): item_idx = dataset.query(f"item_id == '{item_id}'").index[0] s3_path = dataset.iloc[item_idx].path local_data_root = f'./data/images' local_file_name = Path(s3_path).name s3down.download(f'{s3_data_root}{s3_path}', local_data_root) local_image_path = f"{local_data_root}/{local_file_name}" if return_image: img =...