Giter Club home page Giter Club logo

outfittransformer's Introduction

Outfit-Transformer

๐Ÿค— Introduction

Implementation of paper - Outfit Transformer: Outfit Representations for Fashion Recommendation
Overall code structure is based on DeepFashion repository.

๐ŸŽฏ Performance

The figures below are derived using the Polyvore-D (disjoint) test dataset.

Model CP(AUC) FITB(Accuracy) CIR(Recall@10)
Type-Aware 0.86 57.83 3.50
SCE-Net 0.91 59.07 5.10
CSA-Net 0.91 63.73 8.27
OutfitTransformer(Paper) 0.93 67.10 9.58
OutfitTransformer(Implemented) Testing... Testing... Not Trained

โš™ Install Dependencies

This code is tested with python 3.9.16, torch 1.12.1

python -m pip install -r requirements.txt

๐Ÿงฑ Train

Data Preparation

Download the polyvore dataset from here

Pretraining on CP(Compatibiliby Prediction) task

python train.py --task cp --train_batch 64 --valid_batch 96 --n_epochs 5 --learning_rate 1e-5 --scheduler_step_size 1000 --work_dir $WORK_DIR --data_dir $DATA_DIR --wandb_api_key $WANDB_API_KEY

Finetuning on CIR(Complementary Item Retrival) task

python train.py --task cir --train_batch 64 --valid_batch 96 --n_epochs 5 --learning_rate 1e-5 --scheduler_step_size 1000 --work_dir $WORK_DIR --data_dir $DATA_DIR --wandb_api_key $WANDB_API_KEY --checkpoint $CHECKPOINT

๐Ÿ” Test

python test.py --task $TASK --polyvore_split nondisjoint --test_batch 96 --data_dir $DATA_DIR --checkpoint $CHECKPOINT

๐Ÿงถ Checkpoints

Checkpoints are organized by tasks and timestamps as shown in the following file structure.
You can resume and load from checkpoints.

checkpoints
+-- $TASK
|  +-- $YYYY_$mm_$dd
|  |  +-- $EPOCH_$SCORE.pth

๐Ÿ”” Note

  • A paper review of implementation can be found at here. (Only Available in Korean)
  • This is NON-OFFICIAL implementation. (The official repo has not been released.)

outfittransformer's People

Contributors

owj0421 avatar

Stargazers

William Mills avatar  avatar  avatar  avatar Abdelrahman Alkhodary avatar  avatar  avatar  avatar  avatar Essalim Chahrazad avatar Woosung Joung avatar  avatar Matthias Brenninkmeijer avatar likeucode avatar  avatar Jungkyu Park avatar Jiwon Kang avatar Seunghyun Kim avatar Seohyun Park avatar  avatar

Watchers

Kostas Georgiou avatar zhuting avatar  avatar

outfittransformer's Issues

Git lfs exceeded quota

When trying to download weights for the model, I got the following error:
'''
Error downloading object: checkpoints/cp/2023-12-27/1_0.923.pth (f1c8681): Smudge error: Error downloading checkpoints/cp/2023-12-27/1_0.923.pth (f1c8681f63b4b5875febcf7a3c8bd06716e06c5d8b288ac85bdbb76445e3c4ef): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access
'''
I'm not very familiar with git, but as I understand, issue is on your side. If you cannot solve it or it requires payment you do not wish to do, please share weights somewhere else, for instance on GoogleDrive. I would really want to use this model for my BS Thesis, but do not have enough resourses to train it from scratch.

CP task

Please i really need a solution, i tried a lot to make predictions using the model i trained for cp task and it always come with tensor dim error
I have university project and i should do this step so please can anyone provides a code for how the right way is ?
For example if i have a top and bottom image with text for each image how i can make predictions ?

Module [OutfitTransformer] is missing the required "forward" function

Since you removed the "forward" and "cp_forward" functions after the CIR update, a Module [OutfitTransformer] is missing the required "forward" function error appears during evaluation. Seems like you included the necessary code directly to define logits, which is missing from the evaluation functions. Adding the new code onto the two functions solves this issue.

Screenshot 2024-02-29 at 11 12 26 Screenshot 2024-02-29 at 11 13 29

CIR task

Hi,bro, when CIR task is Available?

implementing using colab

hi , i wanna implement this paper for my graduation uni and my country has a pad internet so is their any instructions about how to load the dataset into colab and use this implementation ?
the problem i faced in colab that i cant install python 3.9.14 and when i skip this the error relased No module named 'torch._custom_ops'
thank

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.