forked from autogluon/autogluon-fair
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from ChrisMRuss/workflow
pypi installer
- Loading branch information
Showing
5 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
## Setup for Training a Two-Head Model | ||
# Setup for Training a Two-Head Model | ||
|
||
1) Download img_align_celeba.zip and list_attr_celeba.txt from http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html | ||
and move it to data/celeba/. | ||
This directory contains files for training a two-headed model on the celbA dataset. | ||
|
||
2) Create a virtual environment with python=3.8, and activate it. | ||
1) Download img_align_celeba.zip and list_attr_celeba.txt from <http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html> | ||
and move it to data/celeba/ inside this directory. | ||
|
||
3) Install your torch and torchvision. We used torch==1.12.1+cu116 and torchvision==0.13.1+cu116. | ||
2) Create a virtual environment with python=3.8, and activate it. | ||
|
||
````commandline | ||
pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 | ||
```` | ||
3) Install torch and torchvision. We used torch==1.12.1+cu116 and torchvision==0.13.1+cu116. | ||
|
||
pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 | ||
|
||
4) Install other minimal requirements. | ||
```` | ||
|
||
python -m pip install -r requirements.txt | ||
```` | ||
|
||
5) Run the python script. | ||
```` | ||
|
||
python two_head_model_demo.py --target_class 9 --protected_class 20 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[build-system] | ||
requires = ["setuptools>=68.2.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "oxonfair" | ||
dynamic = ["optional-dependencies",'license','classifiers','version','authors','dependencies','readme','description','requires-python'] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/ChrisMRuss/oxon-fair/" | ||
Issues = "https://github.com/ChrisMRuss/oxon-fair/issues" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters