32e4d362935db01ae4b3df9a6d8635b3da60cf64,train_vidreid_xent_htri.py,,train,#Any#Any#Any#Any#Any#Any#Any#Any#,144

Before Change


        
        outputs, features = model(imgs)
        if args.htri_only:
            if isinstance(features, (tuple, list)):
                loss = DeepSupervision(criterion_htri, features, pids)
            else:
                loss = criterion_htri(features, pids)

After Change


        batch_time.update(time.time() - end)

        xent_losses.update(xent_loss.item(), pids.size(0))
        htri_losses.update(htri_loss.item(), pids.size(0))
        accs.update(accuracy(outputs, pids)[0])

        if (batch_idx + 1) % args.print_freq == 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 32e4d362935db01ae4b3df9a6d8635b3da60cf64
Time: 2019-02-05
Author: k.zhou@qmul.ac.uk
File Name: train_vidreid_xent_htri.py
Class Name:
Method Name: train


Project Name: tensorflow/datasets
Commit Name: 33dc406485d7e7bd829ebac07085f4c262e74280
Time: 2020-12-07
Author: epot@google.com
File Name: tensorflow_datasets/core/hashing.py
Class Name:
Method Name: _to_bytes


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 32e4d362935db01ae4b3df9a6d8635b3da60cf64
Time: 2019-02-05
Author: k.zhou@qmul.ac.uk
File Name: train_imgreid_xent_htri.py
Class Name:
Method Name: train