Giter Site home page Giter Site logo

lix-byte / image-classification Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

deep-learning image classification resnet50

Python 100.00%
deep-learning resnet-50 medical-images classification prediction fine-tuning vgg16 pytorch label-smoothing

image-classification's Introduction

Image-classification fine-tuned ResNet50

Use fine-tuned ResNet50 to classify brain tumors. ResNet50 is pre-trained on ImageNet. The fully connected layer of the model is changed. DropOut is used in the fully connected layer to prevent overfitting. In addition, the loss function uses cross entropy, which is added Label Smoothing.The project can realize the category prediction of a single picture. This is just a small exercise for classification and prediction tasks, there are many shortcomings, welcome to discuss

Dataset structure

  • Brain Tumor Classification
    • train
      • glioma_tumor
        • 001.jpg
        • 002.jpg
        • ...
      • meningioma_tumor
      • no_tumor
      • pituitary_tumor
    • val
      • glioma_tumor
      • meningioma_tumor
      • no_tumor
      • pituitary_tumor

Project structure

  • loss_acc: Store the accuracy and loss curve generated after the training and verification process.
  • models: Store the model when the last training is completed.
  • test: Picture for prediction.
  • generate_val.py: If you only have a training set, you can use it to generate a validation set by extracting a portion of the images according to the ratio. A ratio of 0.2 is recommended as the validation set.
  • labelsmoothing.py: Add Label Smoothing to the loss function to prevent overfitting.
  • net.py: Define the model. The file contains the fine-tuned VGG16 and ResNet50 pre-trained models. You only need to change the number of final output categories.
  • train_val.py: Training and validation.
  • predict.py: Input a picture, it will tell you the category of the target in the picture.

image-classification's People

Contributors

lix-byte avatar

Watchers

 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.