ZhangAoCanada / RADDet

Range-Azimuth-Doppler Based Radar Object Detection
MIT License
168 stars 39 forks source link

About running the project #22

Closed siddupp closed 1 year ago

siddupp commented 2 years ago

Hi sir Can you please help me to run this project i didn't understand what should I run first and what next. So can you please provide me the "sequence of the python files or the commands to be executed "to get the output.

ZhangAoCanada commented 2 years ago

First, you have to install all the required pip packages, simply run

pip3 install -r requirements.txt

Next, you need to follow the README.md to prepare dataset.

With dataset being ready, you can run do the following things:

In addition, you can change your GPU id with the code below:

import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="0"

change the value 0 to the GPU id you want.

Hope I made this clear.

siddupp commented 2 years ago

First, you have to install all the required pip packages, simply run

pip3 install -r requirements.txt

Next, you need to follow the README.md to prepare dataset.

With dataset being ready, you can run do the following things:

  • for training 3d radar Object Detection.
    python3 train.py
  • for training 3d radar Object Detection.
    python3 train_cart.py
  • for testing:
    python3 evaluate.py
  • for visualization of the dataset itself
    python3 visualize_testdata.py

In addition, you can change your GPU id with the code below:

import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="0"

change the value 0 to the GPU id you want.

Hope I made this clear.

Thank you for the reply sir😊 While running the visualization of testdata.py file i am getting the error in this line "config = loader.readConfig()" loader has no attribute named readconfig can you please suggest me the solution?

ZhangAoCanada commented 2 years ago

You may need to goto the project root dir to run this script. It wull call the readConfig() function in util/loader.py.

siddupp commented 2 years ago

Thank you for your response I have tried to call the function from the root directory only but i am getting error

On Fri, 25 Nov 2022, 1:36 pm ZhangAoCanada, @.***> wrote:

You may need to goto the project root dir to run this script. It wull call the readConfig() function in util/loader.py.

— Reply to this email directly, view it on GitHub https://github.com/ZhangAoCanada/RADDet/issues/22#issuecomment-1327133814, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIYNX33APQ2JRXHFELBOB3WKBXPHANCNFSM6AAAAAARGAT3PU . You are receiving this because you authored the thread.Message ID: @.***>

siddupp commented 2 years ago

Can you please share the trained weights so can i use it directly for the testing purpose

On Fri, 25 Nov 2022, 2:07 pm 01fe19bec162 ., @.***> wrote:

Thank you for your response I have tried to call the function from the root directory only but i am getting error

On Fri, 25 Nov 2022, 1:36 pm ZhangAoCanada, @.***> wrote:

You may need to goto the project root dir to run this script. It wull call the readConfig() function in util/loader.py.

— Reply to this email directly, view it on GitHub https://github.com/ZhangAoCanada/RADDet/issues/22#issuecomment-1327133814, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIYNX33APQ2JRXHFELBOB3WKBXPHANCNFSM6AAAAAARGAT3PU . You are receiving this because you authored the thread.Message ID: @.***>

ZhangAoCanada commented 2 years ago

Hi, the pre-trained weights are already provided in README.md.

I am attaching it here for convenience. https://drive.google.com/drive/folders/1EZQtcAUzVKYmYHDuiiV_FB5Obk7PbSoE?usp=sharing

siddupp commented 2 years ago

Thanks sir , I'll check it out.

On Mon, 28 Nov 2022, 8:53 am ZhangAoCanada, @.***> wrote:

Hi, the pre-trained weights are already provided in README.md.

I am attaching it here for convenience. https://drive.google.com/drive/folders/1EZQtcAUzVKYmYHDuiiV_FB5Obk7PbSoE?usp=sharing

— Reply to this email directly, view it on GitHub https://github.com/ZhangAoCanada/RADDet/issues/22#issuecomment-1328485447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIYNXYYD6RRLHKJV4VEFZ3WKQQTLANCNFSM6AAAAAARGAT3PU . You are receiving this because you authored the thread.Message ID: @.***>

siddupp commented 1 year ago

Thanks a lot.

On Mon, 12 Dec 2022, 8:07 am ZhangAoCanada, @.***> wrote:

Closed #22 https://github.com/ZhangAoCanada/RADDet/issues/22 as completed.

— Reply to this email directly, view it on GitHub https://github.com/ZhangAoCanada/RADDet/issues/22#event-8009555657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIYNX2PBJZ6CX3E56IDZFTWM2FWFANCNFSM6AAAAAARGAT3PU . You are receiving this because you authored the thread.Message ID: @.***>

Gabo181 commented 10 months ago

Hey, in evaluate.py you're loading the data for the plot.

image

In line 219, 233 and 238 the code is trying to access paths "input_dir, image_dir and gt_dir which arent in the config. Therefore an error occurs with "file not found".

are these just the test directorys and then the gt, rad and image directorys?

thanks!