cd NeuFlow
git clone https://github.com/neufieldrobotics/NeuFlow_v2.git
cd NeuFlow_v2
# Create a new conda environment with Python 3.11
conda create -n neuflow -y python=3.11
# Activate the created environment
conda activate neuflow
# Install the required Python packages
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
pip install opencv-python
pip install huggingface-hub
cd ..
python ../gen_video2imgs.py
python infer.py
python onnx_export.py
// a file '.onnx' will be generated in onnx directory.
conda activate trte
python onnx2trt.py
// a file '.engine' will be generated in engine directory.