To deploy your own conditional image retrieval search index please follow these steps
-
Download Image Metadata:
wget https://mmlsparkdemo.blob.core.windows.net/cknn/metadata.json?sv=2019-02-02&st=2020-07-23T02%3A22%3A30Z&se=2023-07-24T02%3A22%3A00Z&sr=b&sp=r&sig=hDnGw9y%2BO5XlggL6br%2FPzSKmpAdUZ%2F1LJKVkcmbVmCE%3D
-
Download Images:
cd data_prep python download_images.py -
Featurize and perform Conditional Image Retrieval on every image
cd data_prep python featurize_and_match.py -
Write enriched information to an Azure Search Index.
More detailed code coming soon, Follow the closely related guide for a similiar example.
To build a copy of the mosaic website locally please use the following. Note that the introductory animations were made and deployed using a different framework.
- Install
npmif you dont already have it. You can find instructions at https://nodejs.org/. - Install dependencies:
cd frontend npm install - Start the development server:
npm start
- Navigate to http://localhost:3000/art to explore the local website.
- run
npm run buildto create a optimized build - Copy
frontend/utils/404.htmlfile to thefrontend/builddirectory - In
frontend/build/index.html, between the noscript and script tags (right after the root div), copy in the script fromfrontend/utils/singe_page_app.txt - run
npm run deployto push the build to github pages