Skip to content

22.12

Latest
Compare
Choose a tag to compare
@RobinEnjalbert RobinEnjalbert released this 14 Dec 09:49
cf42a9d

Main notes

The new version of DeepPhysX brings a lot of changes with the data storage and the data flow between components.
Instead of using Numpy tensors referenced as input and output of neural networks, data is now streamed on a SQL Database that can contain any data field.
This allows to easily design new data flows and to interface with more complex network architectures and learning algorithms.

The SQL Database features are implemented in an external Python library - SimulationSimpleDatabase - that must be installed to use this release.
--> quick install with pip install SimulationSimpleDatabase

Changes

Network

  • the Network object now has three variables that must be set to define the data field names: net_fields for the input data fields (should match the data field names defined in the Environment), opt_fields for the data used for the optimization process, pred_fields for the data that will be returned to the Environment;
  • some API updates for TorchNetwork and TorchNetworkConfig (see examples/tutorial for further details).
    from DeepPhysX.Torch.Network.TorchNetwork import TorchNetwork
    
    class MyNetwork(TorchNetwork):
      
          def __init__(self, config):
              BaseNetwork.__init__(self, config)
              self.net_fields = ['input']
              self.opt_fields = ['ground_truth']
              self.pred_fields = ['prediction']