Git Product home page Git Product logo

fecgcyclegan-with-requirements.txt's Introduction

适用版本:python 3.6 - 3.8

安装包 Install required Python packages

pip install scipy, scikit-learn, pyedflib, padasip, matplotlib, tensorflow==2.5, keras==2.4
pip install git+https://www.github.com/keras-team/keras-contrib.git

如果使用的gpu版本,需要安装cuda和cudnn。 If using the GPU version, install cuda and cudnn.

conda install -c anaconda cudnn

在安装好的keras中的generic_utils.py文件结尾添加以下代码。 Add the following code to the end of generic_utils.py in the installed Keras directory. (Lib\site-packages\keras\utils\generic_utils.py)

def populate_dict_with_module_objects(target_dict, modules, obj_filter):
  for module in modules:
    for name in dir(module):
      obj = getattr(module, name)
      if obj_filter(obj):
        target_dict[name] = obj

def to_snake_case(s):
    return ''.join(['_' + ch.lower() if ch.isupper() else ch for ch in str(s)]).lstrip('_')

For training the model use code in test.test_CycleGAN

alt text

Top left: MECG
Top middle: extracted FECG before SG filter
Bottom left: Original scalp FECG
Bottom middle: generated MECG without any postprocessing

Reference:

Mohebian, M.R., shahim Vedaei, S., Wahid, K.A., Dinh, A., Marateb, H.R. and Tavakolian, K., 2021. Fetal ECG Extraction from Maternal ECG using Attention-based CycleGAN. IEEE Journal of Biomedical and Health Informatics.

fecgcyclegan-with-requirements.txt's People

Contributors

antecessor avatar iwctwbh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.