Skip to content

Process killed in onnx_to_tensorrt.py Demo#5 #344

Closed
@pNAIA

Description

@pNAIA

Demo #5 Step #5
$ python3 onnx_to_tensorrt.py -m yolov4-416
.......
[TensorRT] VERBOSE: Graph construction and optimization completed in 1.30692 seconds.
Killed

Fix this by ensuring enough swap file size. Please follow the below steps & add it to the list of steps @jkjung-avt. Apologies if you have already mentioned it in your exhaustive series of steps.

check for current swap size

free -m

Disable ZRAM:

sudo systemctl disable nvzramconfig

Create 4GB swap file

sudo fallocate -l 4G /mnt/4GB.swap
sudo chmod 600 /mnt/4GB.swap
sudo mkswap /mnt/4GB.swap

Append the following line to /etc/fstab (chmod this file if access issues are shown)

sudo echo "/mnt/4GB.swap swap swap defaults 0 0" >> /etc/fstab

REBOOT!

Reference: https://courses.nvidia.com/courses/course-v1:DLI+S-RX-02+V2/info

Now go ahead and run!
$ python3 onnx_to_tensorrt.py -m yolov4-416

Thanks,
Arun
pNaia Tech

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions