MagicDrive icon indicating copy to clipboard operation
MagicDrive copied to clipboard

Use of cache files

Open QChencq opened this issue 1 year ago • 4 comments

Hello, after I prepare the cache files in h5 format, how should I call these cache files during training?

QChencq avatar Oct 06 '24 15:10 QChencq

Just follow the readme, rename the file, and put them in the default path. The code will use it if successfully locates the file. You can also change the file path through config.

flymin avatar Oct 07 '24 05:10 flymin

Thank you for your reply! After loading the cache file as required, I found two new logs in train.log as follows:

[2024-10-07 15:52:55,823][root][INFO] - using data cache from: MagicDrive-video/train_12Hz_advanced.h5 [2024-10-07 15:54:37,389][root][INFO] - using data cache from: MagicDrive-video/val_12Hz_advanced.h5

But I didn't find the relevant code to load the cache file. How can I check whether the cache file is loaded effectively?

QChencq avatar Oct 07 '24 08:10 QChencq

You may just compare the speed between with and without cache file. The difference should be very significant.

Otherwise, you can search the line for logging, i.e., “using cache data from” . It is located in mmdet3d.

flymin avatar Oct 07 '24 10:10 flymin

This issue is stale because it has been open for 7 days with no activity. If you do not have any follow-ups, the issue will be closed soon.

github-actions[bot] avatar Oct 14 '24 16:10 github-actions[bot]