- python==3.10.16
- pytorch==1.12.1
- numpy==1.21.6
- scipy==1.9.1
- scikit-learn==1.4.0
- toml==0.10.2
- safetensors==0.5.3
- scikit-learn==1.4.0
You can use conda/mamba env create -f environment.yml to create a virtual environment.
Of course, the more advanced pixi can conveniently do this via pixi install.
# tiktok
python main.py -c conf/tiktok.toml
# yelp
python main.py -c conf/yelp.toml
# sports
python main.py -c conf/sports.tomlIf you use pixi, we have already prepared the tasks:
pixi run tiktok
pixi run yelp
pixi run sportsThe hyperparameters required to reproduce the results of paper have been recorded in default configuration file.
If you need to reproduce the paper results exactly the same, please refer to the Reproduction section in docs.ipynb. We have made the required safetensors files public on Google Drive.
The datasets of DiffCLR have published on HuggingFace, including Tiktok, Yelp, and Amazon-Sports.
Our work is based on the implementation of DiffMM. Thank them for their contributions to this field.
The code of the model will be made public after the paper is accepted.