Code Monkey home page Code Monkey logo

super-focus's Introduction

Super-Focus: Domain Adaptation for Embryo Imaging via Self-Supervised Focal Plane Regression

To run, first install the dependencies in requirements.txt.

Make sure your dataset is in the following layout: /dataset root/[CLINIC NAME]/[EMBRYO ID]/[FOCAL PLANE].jpg.

Next, train the autoencoder for the perceptual loss by running python train_perceptual_ae.py. Beware: all paths have been replaced with PLACEHOLDER - you will need to update them first. Also, we use Weights and Biases to monitor our experiments. Be sure to keep an eye on them.

Once the autoencoder has been trained, you can train the generator networks by running python train_gan.py. Again, be sure to replace all the placeholders. The datasets folder contains PyTorch datasets for intermediate plane prediction (t4missingplanes.py) and upper/lower plane prediction (t4extrapolation.py) which should be exchanged in train_gan.py as appropriate.

Once you have your trained models (or for validation purposes while you're training models), you can make predictions using predict.py. Code for experiments can be seen in miccai.ipynb.

super-focus's People

Stargazers

Alessia Gerbasi avatar

Watchers

James Cloos avatar Non dolet Peate 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.