TrackR-CNN icon indicating copy to clipboard operation
TrackR-CNN copied to clipboard

ResourceExhaustedError: OOM when allocating tensor with shape[772,28,28,1024]

Open lcyawym opened this issue 7 years ago • 12 comments

Can you tell me your computer setup? When I run the test result using MOT17,It display ResourceExhaustedError: OOM when allocating tensor with shape[772,28,28,1024]

lcyawym avatar Aug 12 '19 06:08 lcyawym

We usually use NVIDIA 1080 TI with 11 GB of memory. For MOTChallenge (i.e. MOT17) inference, we changed the resize settings to

"resize_mode_val": "resize_min_short_edge_max_long_edge", "input_size_val": [540, 1024],

pvoigtlaender avatar Aug 12 '19 11:08 pvoigtlaender

Thank you for your reply!I will try it again.

lcyawym avatar Aug 12 '19 12:08 lcyawym

Hello, I want to test my own dataset. In addition to pictures.Do I still need to provide something else? I use the command to generate detections. But the detections files is empty python main.py configs/conv3d_sep2 "{"task":"forward_tracking","dataset":"KITTI_segtrack_feed","load_epoch_no":5,"batch_size":5,"export_detections":true,"do_tracking":false,"video_tags_to_load":["01"]}"

lcyawym avatar Aug 15 '19 07:08 lcyawym

@pvoigtlaender Hi,I have met this question too when training. ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[80,7,7,2048] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc Do you konw which parameters should I modify? Thanks.

LiXm1002 avatar Aug 16 '19 06:08 LiXm1002

You can save memory by reducing the size. If you're talking about inference, then change "input_size_val": [540, 1024], to a smaller value otherwise change the correponding train value input_size_train. This might however affect results!

pvoigtlaender avatar Aug 19 '19 09:08 pvoigtlaender

@pvoigtlaender hello, if I want to train the network on other dataset. I just need to make the dataset like kitti mots? In the paper,I saw that the resnet is pre-trained on some dataset.Shall I need to train resnet?

lcyawym avatar Aug 21 '19 03:08 lcyawym

You can use this pre-trained model (pre-trained first on ImageNet, then COCO, then Mapillary I think): https://omnomnom.vision.rwth-aachen.de/data/trackrcnn/trackrcnn_init.zip specify that with "load_init" in the config or alternatively just start from the KITTI checkpoint

pvoigtlaender avatar Aug 21 '19 07:08 pvoigtlaender

@pvoigtlaender Thanks,I will try it again.

LiXm1002 avatar Aug 21 '19 08:08 LiXm1002

@pvoigtlaender thanks for your reply.And anoyther problem,can you tell before you train your model, how to get the annotations of MOTChallenge's data? I fine that mot_tools has tools to product instances files.

lcyawym avatar Aug 23 '19 08:08 lcyawym

And if i want to use other open dataset. I need to use labelme to annotation the dataset?

lcyawym avatar Aug 23 '19 09:08 lcyawym

I'm not sure I understood your questions. To get the annotations for the MOTSChallenge dataset (which contains sequences from MOTChallenge), please look at the project page. If you want to train on another dataset, you need to create annotations in the same format as KITTI MOTS and MOTSChallenge (the format is also explained on the project page).

ahnonay avatar Sep 21 '19 08:09 ahnonay

Closing this for now, please reopen if needed

ahnonay avatar Oct 03 '19 16:10 ahnonay