Skip to content

Commit

Permalink
wjm-wjm
Browse files Browse the repository at this point in the history
  • Loading branch information
wjm-wjm committed Jul 19, 2022
1 parent abe2390 commit add3d69
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .idea/OTLA.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Optimal Transport for Label-Efficient Visible-Infrared Person Re-Identification (OTLA-ReID)
This is Official Repository for "Optimal Transport for Label-Efficient
Visible-Infrared Person Re-Identification", ECCV 2022.

This work is done at the DMCV Laboratory of East China Normal University. You can link at [DMCV-Lab](https://dmcv-ecnu.github.io/) to find DMCV Laboratory website page.
Visible-Infrared Person Re-Identification", ECCV 2022. This work is done at the DMCV Laboratory of East China Normal University. You can link at [DMCV-Lab](https://dmcv-ecnu.github.io/) to find DMCV Laboratory website page.

### Update:
**[2022-7-17]** Semi-supervised setting and supervised setting can be run with current code. Unsupervised setting will be updated with a few of days.
2 changes: 1 addition & 1 deletion main_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def main_worker(args, args_main):
end_epoch = args.end_epoch

## set gpu id and seed id
set_seed(args.seed)
os.environ["CUDA_VISIBLE_DEVICES"] = str(args.gpu)
torch.backends.cudnn.benchmark = True # accelerate the running speed of convolution network
device = "cuda" if torch.cuda.is_available() else "cpu"
set_seed(args.seed)

## set file
if not os.path.isdir(args.dataset + "_" + args.setting + "_" + args.file_name):
Expand Down
2 changes: 2 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def close(self):


def set_seed(seed, cuda=True):
random.seed(seed)
np.random.RandomState(seed)
np.random.seed(seed)
torch.manual_seed(seed)
if cuda:
Expand Down

0 comments on commit add3d69

Please sign in to comment.