### Run Demo Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Executes the demo application, requiring a specified model checkpoint. ```bash python -m src.demo.3_run \ --checkpoint $PATH/OF/MODEL/.PT/FILE ``` -------------------------------- ### Set up Conda Environment Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Creates and activates a new Conda environment named 'outfit-transformer' with Python 3.12.4, then updates the environment using 'environment.yml'. ```bash conda create -n outfit-transformer python=3.12.4 conda activate outfit-transformer conda env update -f environment.yml ``` -------------------------------- ### Build Recommendation Embeddings for Demo Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Generates recommendation embeddings required for the demo, using a specified model checkpoint. ```bash python -m src.demo.1_generate_rec_embeddings \ --checkpoint $PATH/OF/MODEL/.PT/FILE ``` -------------------------------- ### Download Datasets and Checkpoints Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Downloads checkpoints from a Google Drive ID, unzips them into the 'checkpoints' directory, and then removes the zip file. ```bash mkdir -p checkpoints gdown --id 1mzNqGBmd8UjVJjKwVa5GdGYHKutZKSSi -O checkpoints.zip unzip checkpoints.zip -d ./checkpoints rm checkpoints.zip ``` -------------------------------- ### Build Faiss Index for Demo Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Constructs a Faiss index, which is used for efficient similarity search in the demo. ```bash python -m src.demo.2_build_index ``` -------------------------------- ### Train Compatibility Prediction Model Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Trains the model for the Compatibility Prediction (CP) task. Requires a WandB API key. ```bash python -m src.run.2_train_compatibility \ --wandb_key $YOUR/WANDB/API/KEY ``` -------------------------------- ### Test Compatibility Prediction Model Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Evaluates the trained model for the Compatibility Prediction (CP) task using a specified checkpoint. ```bash python -m src.run.2_test_compatibility \ --checkpoint $PATH/TO/LOAD/MODEL/.PT/FILE ``` -------------------------------- ### Train Complementary Item Retrieval Model Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Trains the model for the Complementary Item Retrieval (CIR) task, using a checkpoint from the CP task and requiring a WandB API key. ```bash python -m src.run.3_train_complementary \ --wandb_key $YOUR/WANDB/API/KEY \ --checkpoint $PATH/TO/LOAD/MODEL/.PT/FILE ``` -------------------------------- ### Test Complementary Item Retrieval Model Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Evaluates the trained model for the Complementary Item Retrieval (CIR) task using a specified checkpoint. ```bash python -m src.run.3_test_complemenatry \ --checkpoint $PATH/TO/LOAD/MODEL/.PT/FILE ``` -------------------------------- ### Precompute CLIP Embeddings Source: https://github.com/bigohofone/outfit-transformer/blob/main/readme.md Generates CLIP embeddings, which are required for subsequent training and evaluation steps. ```python python -m src.run.1_generate_clip_embeddings ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.