Skip to content

BSDE-Gen, a novel deep generative model based on BSDEs (backward stochastic differential equations).

Notifications You must be signed in to change notification settings

xingchengxu/BSDE-Gen

Repository files navigation

BSDE-Gen

BSDE-Gen: Deep Generative Modeling with Backward Stochastic Differential Equations

Overview

We propose a novel deep generative model, called BSDE-Gen, which combines the flexibility of backward stochastic differential equations (BSDEs) with the power of deep neural networks for generating high-dimensional complex target data, particularly in the field of image generation.

The paper can be found on arXiv:

Xu, Xingcheng. "Deep Generative Modeling with Backward Stochastic Differential Equations." arXiv preprint arXiv:2304.04049 (2023).

[arXiv Link] [PDF]

Method

  1. Clone this repository and navigate to the BSDE-Gen folder
git clone https://github.com/xingchengxu/BSDE-Gen.git
cd BSDE-Gen
  1. Training Run

Training on a single device: GPU/CPU

python bsde_gen_model_single_device_training.py

Training on a machine with multiple GPUs using the command:

OMP_NUM_THREADS=1 CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \ 
torchrun --nproc_per_node=8 bsde_gen_model_ddp_training.py

or the following command:

OMP_NUM_THREADS=1 CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \ 
python -m torch.distributed.launch \ 
       --nproc_per_node=8 bsde_gen_model_ddp_training.py
  1. Generate images/Inference

Inference on a single device: GPU/CPU

python bsde_gen_model_inference.py

Citation

Please cite the paper if you use the idea or code in this paper/repo.

@misc{BSDE-Gen,
  author = {Xingcheng Xu},
  title = {Deep Generative Modeling with Backward Stochastic Differential Equations},
  year = {2023},
  publisher = {arXiv},
  journal = {arXiv preprint},
  howpublished = {\url{https://arxiv.org/abs/2304.04049}},
}

About

BSDE-Gen, a novel deep generative model based on BSDEs (backward stochastic differential equations).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages