Where2comm icon indicating copy to clipboard operation
Where2comm copied to clipboard

How to prepare the DAIR-V2X data for training?

Open linleyzoe opened this issue 3 years ago • 8 comments

Hi, thanks for your inspiring work!

There seems no instructions for converting the raw DAIR-V2X to the specific training format, which is referred as root_dir: "/GPFS/rhome/quanhaoli/workspace/dataset/my_dair_v2x/v2x_c/cooperative-vehicle-infrastructure/train.json" in the config file.

Any advice would be greatly appreciated!

linleyzoe avatar Oct 18 '22 11:10 linleyzoe

Do you know how to do with it? I also have some questions!

goodgamemaker avatar Oct 31 '22 11:10 goodgamemaker

hello, you can find split_data.json files(train.json, val.json) in this zip file https://github.com/yifanlu0227/CoAlign.

Actually, you can also find it on the official github page of dair-v2x. https://github.com/AIR-THU/DAIR-V2X/blob/main/data/split_datas/cooperative-split-data.json In this case, you can use the following code to see how they split the dataset into training and validation sets:

info_json_path = r"E:\python_work_d\project_samples\DAIR-V2X-main\data\split_datas"
info_name = "cooperative-split-data.json"
with open(os.path.join(info_json_path, info_name), 'rb') as f:
    split_data = json.load(f)
split_info = split_data["cooperative_split"]["train"]
for i in range(10):
    print(split_info[i])

Then, to prepare the dataset for model training, following these steps:

  1. Download the dair-v2x(cooperative-vehicle-infrastructure )dataset and the new annotation data as mentioned in the github homepage of where2comm
  2. Organize your dataset file into the following structure: https://github.com/AIR-THU/DAIR-V2X/tree/main/data
  3. Replace the lidar annotation data of the collaborative and the vehicle side with the new annotation data downloaded in step 1. (you will also find the train.json file and the val.json file in this zip )
  4. Change data path in the yaml file to your own path (data_dir, root_dir...)

suuhou avatar Nov 07 '22 21:11 suuhou

Can you run this program normally?

CatOneTwo avatar Nov 14 '22 07:11 CatOneTwo

yes,can't u?

suuhou avatar Nov 15 '22 05:11 suuhou

yes, I can run the code now. But how to set communication volume like papers?

CatOneTwo avatar Nov 17 '22 14:11 CatOneTwo

yes, I can run the code now. But how to set communication volume like papers? Have you solved this problem? Do you use image in the code or only use point cloud?Thank you!

goodgamemaker avatar Nov 28 '22 08:11 goodgamemaker

And how does his communication round K reflect

goodgamemaker avatar Nov 28 '22 14:11 goodgamemaker

Google Drive Share Link from CoAlign: https://drive.google.com/file/d/13g3APNeHBVjPcF-nTuUoNOSGyTzdfnUK/view?usp=sharing

W-E-A avatar Nov 23 '23 13:11 W-E-A