Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunjp committed Aug 13, 2020
1 parent c3413d8 commit ea96458
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

args = parser.parse_args()

torch.manual_seed(2020)

os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
if args.gpus is None:
gpus = "0"
Expand Down Expand Up @@ -81,7 +83,11 @@
model = torch.load(args.model_dir)
model.cuda()
m_items = torch.load(args.m_items_dir)


labels = np.load('./data/frame_labels_'+args.dataset_type+'.npy')
if args.dataset_type == 'shanghai':
labels = np.expand_dims(labels, 0)

videos = OrderedDict()
videos_list = sorted(glob.glob(os.path.join(test_folder, '*')))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ For more information, checkout the project site [[website](https://cvlab.yonsei.

## Dependencies
* Python 3.6
* PyTorch >= 1.0.0
* PyTorch 1.1.0
* Numpy
* Sklearn

Expand Down
2 changes: 2 additions & 0 deletions Train.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@

args = parser.parse_args()

torch.manual_seed(2020)

os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
if args.gpus is None:
gpus = "0"
Expand Down

0 comments on commit ea96458

Please sign in to comment.