question about ML_Train_Volumeupres

   493   4   1
User Avatar
Member
174 posts
Joined: Feb. 2019
Offline
I’m new to machine learning and have a few questions.

1. If I use `ml_train_volumeupres` to train on low-resolution volumes with a voxel size of 0.05 and high-resolution volumes with a voxel size of 0.1, can the trained model then be used to upres volumes from 0.2 to 0.1 voxel size, or from 0.05 to 0.025 voxel size?

2. With the same setup, pyro simulations at different voxel resolutions produce differences in overall shape. Should I run the high-resolution pyro simulation first, then downscale its resolution by half to get a low-resolution result with matching shapes for training?

Thank you~
User Avatar
Staff
51 posts
Joined: July 2024
Offline
Hi,

The model trains and runs inference on fixed size tiles. In theory it doesn't care what voxel resolution the original volumes has, but as you correctly pointed out the pyrosolver will produce different shapes depending on the voxel resolution.

It makes sense to train a model on a sim with a voxel size that is close to what you plan produce later on. Then each of those tiles contains data that is reasonably similiar to what the model will see during inference.

happybabywzy
2. With the same setup, pyro simulations at different voxel resolutions produce differences in overall shape. Should I run the high-resolution pyro simulation first, then downscale its resolution by half to get a low-resolution result with matching shapes for training?

Correct, but you don't have to do that yourself. The `ML Train Volume Upres` SOP recipe does that for you and comes with pyrosolvers that are already configured as you described. You can just swap them out for a highres/lowres variant of your own setup.

To train you only have to wire your highres simulation into the subnetwork. The downsampling/preprocessing happens inside automatically. You can inspect example tiles on the yellow VisualizeExamples null node.

Best,

Jakob
User Avatar
Member
174 posts
Joined: Feb. 2019
Offline
jakobr
Hi,

The model trains and runs inference on fixed size tiles. In theory it doesn't care what voxel resolution the original volumes has, but as you correctly pointed out the pyrosolver will produce different shapes depending on the voxel resolution.

It makes sense to train a model on a sim with a voxel size that is close to what you plan produce later on. Then each of those tiles contains data that is reasonably similiar to what the model will see during inference.

happybabywzy
2. With the same setup, pyro simulations at different voxel resolutions produce differences in overall shape. Should I run the high-resolution pyro simulation first, then downscale its resolution by half to get a low-resolution result with matching shapes for training?

Correct, but you don't have to do that yourself. The `ML Train Volume Upres` SOP recipe does that for you and comes with pyrosolvers that are already configured as you described. You can just swap them out for a highres/lowres variant of your own setup.

To train you only have to wire your highres simulation into the subnetwork. The downsampling/preprocessing happens inside automatically. You can inspect example tiles on the yellow VisualizeExamples null node.

Best,

Jakob

Thank you for your reply. I have one more question: Because ML Volume Upres process only one field at a time. If I want to upres an explosion, do I need to train separate models for density, temperature, etc., upres each field individually, and then merge them?
User Avatar
Staff
51 posts
Joined: July 2024
Offline
Training multiple models is certainly a valid approach, but in practice we found it's enough to use ML to upres the fields that impact the render most and rely on naive upsampling (Volume Resample SOP) for any remaining fields.

For fire simulations for example we only trained a model on the flame field and upsampled density and temperature naively with good results.
User Avatar
Member
174 posts
Joined: Feb. 2019
Offline
Thank you, this is very helpful to me.
  • Quick Links