MasterBin-IIAU / Unicorn

[ECCV'22 Oral] Towards Grand Unification of Object Tracking
MIT License
953 stars 87 forks source link

AttributeError: 'tuple' object has no attribute 'new' #12

Closed changseob1001 closed 2 years ago

changseob1001 commented 2 years ago

i run to demo but have some error

box_corner = prediction.new(prediction.shape) AttributeError: 'tuple' object has no attribute 'new'

what is this error?

MasterBin-IIAU commented 2 years ago

@changsub132 Please provide more details about your code.

changseob1001 commented 2 years ago

i run demo.py that "python tools/demo.py video --path ./3.mp4 -f exps/default/unicorn_track_large_mot_challenge_mask.py --save_result"

and i change the demo.py parser.add_argument("-c", "--ckpt", default="Unicorn_outputs/unicorn_track_large_mot_challenge_mask/latest_ckpt.pth", type=str, help="ckpt for eval") and parser.add_argument( "--device", default="gpu", type=str, help="device to run our model, can either be cpu or gpu", )

changseob1001 commented 2 years ago

and i think code line from 163 to 166 "inconsistent use of tabs and spaces in indentation" error

try: outputs = self.model(img) except: outputs, seq_dict = self.model(img)

changseob1001 commented 2 years ago

but i dont know "AttributeError: 'tuple' object has no attribute 'new'" this error

MasterBin-IIAU commented 2 years ago

@changsub132 This demo.py is only used for object detection and instance segmentation. Please pick a file from the followings: unicorn_det_r50_800x1280.py, unicorn_det_convnext_tiny_800x1280.py, unicorn_det_convnext_large_800x1280.py, unicorn_inst_convnext_tiny_800x1280.py