Skip to content

Commit

Permalink
update readme description
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenmt committed Jan 29, 2019
1 parent d29dbb4 commit 7362de4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
.idea/*
dataset/*
__pycache__/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ train_data, train_label[:, k] = cifar100_train_dataset.next()
```

## Training MAXL
The source code provided gives an example of training primary task of 20 classes `train_label[:, 2]` and auxiliary task of 100 classes `train_label[:, 3]` with hierarchical structure `\psi[i]=5`. You may revise the code easily to evaluate other hierarchies and play with other datasets found in `torchvision.datasets`.
The source code provided gives an example of training primary task of 20 classes `train_label[:, 2]` and auxiliary task of 100 classes `train_label[:, 3]` with hierarchical structure `\psi[i]=5`. To run the code, please create a folder `dataset` to download CIFAR-100 dataset in this directory or you may redefine the dataset root path as your wish. It is straightforward to revise the code evaluating other hierarchies and play with other datasets found in `torchvision.datasets`.

Note that: make sure `len(psi)` be the number of primary classes, and `sum(psi)` be the number of total auxiliary classes, e.g. `psi = [2,3,4]` representing total 3 primary classes and total 9 auxiliary classes by splitting each corresponding primary class into 2, 3, and 4 different auxiliary classes.

Training MAXL from scratch typically requires 30 hours in GTX 1080, and training the baselines methods `Single` and `Human` requires 4 hours from scratch.
Training MAXL from scratch typically requires 30 hours in GTX 1080, and training the baselines methods `Single` and `Human` requires 2-4 hours from scratch.

## Citation
If you found this code/work to be useful in your own research, please considering citing the following:
Expand Down

0 comments on commit 7362de4

Please sign in to comment.