rvalerio commited on
Commit
eb6eace
1 Parent(s): 0ea20c7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -17
README.md CHANGED
@@ -35,23 +35,43 @@ The data generation process itself was orchestrated using the [Inductiva API](ht
35
  which allowed us to run hundreds of OpenFOAM simulations in parallel on the cloud.
36
 
37
 
38
- # Why?
39
- Existing object datasets have many limitations: they are either small in size, closed source, or have low quality meshes.
40
- Hence, we decided to generate a new dataset using the [InstantMesh](https://github.com/TencentARC/InstantMesh) model,
41
- which is open-source (Apache-2.0) and is currently state-of-the-art in image-to-mesh generation.
42
-
43
- The automobile-like meshes were generated by running the image-to-mesh model [InstantMesh](https://github.com/TencentARC/InstantMesh)
44
- on 1k images from the publicly available (Apache-2.0)
45
- [Stanford Cars Dataset](https://www.kaggle.com/datasets/jessicali9530/stanford-cars-dataset) consisting of 16,185 images of automobiles.
46
-
47
- Naturally, running the image-to-mesh model leads to meshes that may have certain defects, such as irregular surfaces, asymmetry issues
48
- and disconnected components. Therefore, after running the image-to-mesh model, we run a custom post-processing step where we try to
49
- improve the meshes quality. We used PCA to align the mesh with the main axis and we removed disconnected components.
50
-
51
- The resulting set of meshes still have little defects, such as presence of "spikes" or "cavities" in supposedly flat areas and
52
- asymmetric shapes, among others. We consider these little defects as valuable features of the dataset not as issues, since from the
53
- point of view of the learning problem, they bring challenges to the model that we believe will contribute to obtaining more robust
54
- and generalizable models.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
 
57
  # How did we generate the dataset?
 
35
  which allowed us to run hundreds of OpenFOAM simulations in parallel on the cloud.
36
 
37
 
38
+ # Motivation
39
+ Recently, there has been great interest in developing
40
+ ML methods to accelerate CFD simulations. Research
41
+ has shown that for well defined CFD simulation scenarios (e.g. a virtual wind tunnel), it is possible to train an ML model capable of “predicting” the end result of the simulation orders of magnitude faster than existing classical simulation methods, while maintaining comparable accuracy levels.
42
+
43
+ However, the ML/CFD communities still lack training data
44
+ for their research. We identified two main reasons for that.
45
+
46
+ First, there is a fundamental lack of datasets containing
47
+ 3D meshes over which we can run CDF simulation. In fact existing 3D object datasets have many limitations: they are either small in size, closed source, or have low quality meshes. The absence of such input data has been a fundamental blocker for any attempt to generate large-scale training data in any realistic CFD scenario, which will naturally involve 3D meshes.
48
+
49
+ Second, even if you had all the 3D meshes you needed, it is still not trivial to orchestrate the thousands CFD
50
+ simulations that are required to generate a large and diverse enough dataset for training ML-based CFD methods. For creating such a dataset one has to be
51
+ able to define an initial simulation scenario (e.g. the windtunnel scenario), and run enough
52
+ variations of the simulation, with different meshes, different wind speeds, etc to cover a wide enough range of data points to train a generalizable and robust ML model. Now, using most CFD software, running one simulation alone may be difficult enough. Orchestrating thousands of them and managing all the resulting data is a challenge in itself.
53
+
54
+ While both of these problems are difficult to solve in general, we decided to focus on one common CFD scenario: a virtual wind tunnel for (static) automobiles and produce a large dataset of CFD simulation run using the popular simulation package OpenFOAM.
55
+
56
+ Next, we will explain how we tackled the data and the simulation orchestration issues.
57
+
58
+
59
+ ## Generating a large quantity of Automobile-like 3D Meshes
60
+ Due to the lack of publicly available 3D meshes of automobile objects, we decided to use recent advances in image-to-mesh models to generate meshes from images of automobiles that are freely available.
61
+
62
+ More specifically, we used the InstantMesh model, which is open-source (Apache-2.0) and is currently state-of-the-art in image-to-mesh generation. The automobile-like meshes were generated by running the InstatMesh image-to-mesh model on 1k images from the publicly available (Apache-2.0) Stanford Cars Dataset consisting of 16,185 images of automobiles.
63
+
64
+ Naturally, running the image-to-mesh model leads to meshes that may have certain defects, such as irregular surfaces, asymmetry issues, holes and disconnected components. Therefore, after running the image-to-mesh model, we run a custom post-processing step where we try to improve the meshes quality. We used PCA to align the mesh with the main axis and we removed disconnected components.
65
+
66
+ The resulting set of meshes still have little defects, such as presence of "spikes" or "cavities" in supposedly flat areas, unexpected holes, asymmetry issues, among others. We consider these defects as valuable features of the dataset, since from the point of view of the learning problem, they bring certain challenges to ML models that we believe will make overfitting harder and will generally contribute to obtaining more robust and generalizable models.
67
+
68
+
69
+ ## Orchestrating 20k simulations on the cloud (just using Python)
70
+ For solving the challenge of orchestrating 20k OpenFOAM simulations, we resorted to the Inductiva API. The Inductiva platform exposes a simple Python API for running simulation workflows on the cloud. Inductiva makes available several popular open-source simulation packages, including OpenFOAM. Here is an example of how to run an OpenFOAM simulation using Inductiva (point to the doc that Paulo is preparing).
71
+
72
+ Using the Inductiva API, it becomes easy to parametrise specific simulation scenarios and run variations of a base case by programatically changing the input parameters and starting conditions of the simulation. Additionally, users can build custom Python classes that wrap parameterized simulation scenarios, allowing them to have a simple Python interface to running simulations without the need to directly interface with the low level simulation packages. We leveraged Inductiva API to create a Python class for the Wind Tunnel scenario (point to GitHub), which we then used to run 20k simulations over a range of input parameters.
73
+
74
+ For more information on how to transform complex simulation workflows in simple Python classes check this blog post (point to the blog post).
75
 
76
 
77
  # How did we generate the dataset?