DerryHub / BEVFormer_tensorrt

BEVFormer inference on TensorRT, including INT8 Quantization and Custom TensorRT Plugins (float/half/half2/int8).
Apache License 2.0
410 stars 67 forks source link

Docker install and mmlabs fail on git clone #76

Closed jeeprhymeallthetime closed 11 months ago

jeeprhymeallthetime commented 11 months ago

Something seems to be off with "git clone" not working during the docker build phase. I'm told not to expect to be able to depend on that since docker builds don't come with ssh keys and github doesn't like anonymity.

I tried alternative installs for OpenMMLabs, like OpenMim and "mim install" commands, but that fails as well with a timeout error below:

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fe28d672910>: Failed to establish a new connection: [Errno 111] Connection refused'))': /openmim/

Is this something that someone else has experienced and solved?

jeeprhymeallthetime commented 11 months ago

Fixed it.

A few months ago github stopped accepting clone requests without keys, so git clone won't work anymore in a docker repo.

I got this to eventually work by using "sudo pip install openmim" and then "sudo mim install [packages]" for the OpenMMLabs pieces. The "sudo" is important here, which is odd since dockers are running as root in the first place, but I disgress.