c4dynamics.datasets.download_all#
- c4dynamics.datasets.download_all() None [source]#
Downloads all available datasets to the local cache.
The download_all function fetches all predefined datasets, including images, videos, neural network models, and 3D models, and stores them in the local cache.
This function is a convenient way to ensure that all necessary data files are locally available for use without having to download each individually.
The datasets include:
Dataset Type
Included Files
Images
‘planes.png’, ‘triangle.png’
Videos
‘aerobatics.mp4’, ‘drifting_car.mp4’
Neural Networks
‘yolov3.weights’
3D Models
‘bunny.pcd’, ‘bunny_mesh.ply’, ‘f16’ (multiple STL files)
This function ensures all resources are fetched into the cache directory, making them accessible for further processing.
Examples
Download all datasets
>>> import c4dynamics as c4d
>>> c4d.datasets.download_all() Fetched successfully Fetched successfully Fetched successfully Fetched successfully Fetched successfully Fetched successfully Fetched successfully
After downloading, you can access each dataset using its corresponding function, such as image, video, nn_model, or d3_model.