Coder Social home page Coder Social logo

jiajinuiuc / regression-metric-loss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dial-rpi/regression-metric-loss

0.0 0.0 0.0 88.19 MB

A loss function originated for regression tasks to learn a representation manifold that is isometric to the label space.

License: MIT License

Python 100.00%

regression-metric-loss's Introduction

RMLoss: Regression Metric Loss

LICENSE 996.icu

RMLoss explores the structure of the continuous label space and regularizes the model to learn a better representation space which is a semantically meaningful manifold that is isometric to the label space. The paper has been accepted by MICCAI 2022.

Prerequisites

  • Python 3.8
  • PyTorch 1.8.2+
  • A computing device with GPU

Getting started

Installation

Noted that our code is tested based on PyTorch 1.8.2

Dataset & Preparation

The original RSNA Pediatric Bone Age Dataset contains various noises. In our experiments, we used preprocessed data from this repository. All images are resized into 400x520.

  • The trained model is at ./work/checkpoints
  • The data splition used in our experiments is at ./work/data/data_info.csv
  • Before running the code, please put the preprocessed images into ./work/data/img

Train

Train a model by

python train_main.py

Evaluation

Evaluate the trained model by

python test_main.py
  • --iter iteration of the checkpoint to load. #Default: 14500
  • --batch_size batch size of the parallel test. #Default: 64

Citation

Please cite these papers in your publications if it helps your research:

@article{chao2022regression,
  title={Regression Metric Loss: Learning a Semantic Representation Space for Medical Images},
  author={Chao, Hanqing and Zhang, Jiajin and Yan, Pingkun},
  journal={arXiv preprint arXiv:2207.05231},
  year={2022}
}

Link to paper:

License

The source code of RMLoss is licensed under a MIT-style license, as found in the LICENSE file. This code is only freely available for non-commercial use, and may be redistributed under these conditions. For commercial queries, please contact Dr. Pingkun Yan.

regression-metric-loss's People

Contributors

abnerhqc 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.