2ab72370d6a613666508f8dfb9f28ac50186ed8f,trackers/__init__.py,,track,#,3

Before Change


    hm = hm.cpu().data.numpy()
    online_targets = tracker.update(orig_img,inps,boxes,hm,cropped_boxes,im_name,scores,_debug=False)
    new_boxes,new_scores,new_ids,new_crop = [],[],[],[]
    new_hm = np.zeros(shape=(1,17,64,48))
    for t in online_targets:
        tlbr = t.tlbr
        tid = t.track_id
        thm = np.expand_dims(t.pose,axis=0)
        tcrop = t.crop_box
        tscore = t.detscore
        new_boxes.append(tlbr)
        new_crop.append(tcrop)
        new_hm = np.concatenate((new_hm,thm),axis=0)
        new_ids.append(tid)
        new_scores.append(tscore)
    new_hm = new_hm[1:]
    new_hm = torch.from_numpy(new_hm).to(args.device)
    return new_boxes,new_scores,new_ids,new_hm,new_crop

After Change


        tscore = t.detscore
        new_boxes.append(tlbr)
        new_crop.append(tcrop)
        new_hm.append(thm)
        new_ids.append(tid)
        new_scores.append(tscore)

    new_hm = torch.Tensor(new_hm).to(args.device)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: MVIG-SJTU/AlphaPose
Commit Name: 2ab72370d6a613666508f8dfb9f28ac50186ed8f
Time: 2020-08-13
Author: 510641426@qq.com
File Name: trackers/__init__.py
Class Name:
Method Name: track


Project Name: kymatio/kymatio
Commit Name: 60c2e01bfc93bc01da21b79ebe9f222e601e1931
Time: 2020-02-18
Author: janden@flatironinstitute.org
File Name: kymatio/scattering2d/core/scattering2d.py
Class Name:
Method Name: scattering2d


Project Name: librosa/librosa
Commit Name: 538f969f17ef232c75588dfa2a3157bd97aae45d
Time: 2013-02-11
Author: brm2132@columbia.edu
File Name: librosa/beat.py
Class Name:
Method Name: _beat_tracker