GithubHelp home page GithubHelp logo

Comments (8)

ivanwilliammd avatar ivanwilliammd commented on June 1, 2024

Update: I already able to disable the RoI suppressor by modifying extra zero numpy array made.
However I still struggle with problem number 2

from medicaldetectiontoolkit.

pfjaeger avatar pfjaeger commented on June 1, 2024

hi the preprocessing script is only an example script for the LIDC data set! For your custom data set you would need to write your own custom preprocessing script. The example script can help you to get an idea how to structure your script but the exact steps such as loading of your data need to be customized according to your specific needs.

Features like aggregation over multiple raters are very specific to LIDC and you do not need to do that so you can probably skip half of the steps in the example script.

from medicaldetectiontoolkit.

ivanwilliammd avatar ivanwilliammd commented on June 1, 2024

hi the preprocessing script is only an example script for the LIDC data set! For your custom data set you would need to write your own custom preprocessing script. The example script can help you to get an idea how to structure your script but the exact steps such as loading of your data need to be customized according to your specific needs.

Features like aggregation over multiple raters are very specific to LIDC and you do not need to do that so you can probably skip half of the steps in the example script.

Thank you Sir, I already create my custom dataset, however sometimes when running preprocessing.py, there are some error Index 0 is out of bound for axis 0 with size 0 which resulted in me deleting the data. Is the problem lie on the csv or the image file Sir?

from medicaldetectiontoolkit.

ivanwilliammd avatar ivanwilliammd commented on June 1, 2024

hi the preprocessing script is only an example script for the LIDC data set! For your custom data set you would need to write your own custom preprocessing script. The example script can help you to get an idea how to structure your script but the exact steps such as loading of your data need to be customized according to your specific needs.

Features like aggregation over multiple raters are very specific to LIDC and you do not need to do that so you can probably skip half of the steps in the example script.

By the way, can I ask for reference how much epoch, batch_size, and num_train_batches suitable for training around 300-500 thorax CT scan dataset (approximately each file has similar file size with LIDC dataset will be run at Tesla P100 16GB)?

from medicaldetectiontoolkit.

pfjaeger avatar pfjaeger commented on June 1, 2024

I would recommend you to maximize batch size filling up GPU memory. Pick an intuitive number for epochs and training batches and observe in the monitoring plot if your model is overfitting and then adjust the training length accordingly.

from medicaldetectiontoolkit.

ivanwilliammd avatar ivanwilliammd commented on June 1, 2024

I would recommend you to maximize batch size filling up GPU memory. Pick an intuitive number for epochs and training batches and observe in the monitoring plot if your model is overfitting and then adjust the training length accordingly.

Thank you Sir for the tips. By the way, I already done some quick train (only folds_0) with parameter as following: #40

with configs.py:

        self.report_score_level = ['patient', 'rois']  # choose list from 'patient', 'rois'
        self.class_dict = {1: 'groundglass', 2: 'subsolid', 3: 'solid'}  # 0 is background.
        self.patient_class_of_interest = 2  # patient metrics are only plotted for one class.
        self.ap_match_ious = [0.1]  # list of ious to be evaluated for ap-scoring.

        self.model_selection_criteria = ['solid_ap', 'subsolid_ap', 'groundglass_ap'] # criteria to average over for saving epochs.
        self.min_det_thresh = 0.1  # minimum confidence value to select predictions for evaluation.
        self.head_classes = 4

        # seg_classes hier refers to the first stage classifier (RPN)
        self.num_seg_classes = 2  # foreground vs. background

and the results I get :


****************************
results for fold 0 
****************************
fold df shape (12551, 7)
  
AUC 0.5000  AP 0.5061 fold_0 patient cl_1 
AUC 0.0000  AP 0.0000 fold_0 rois cl_1 
AUC 0.5000  AP 0.3882 fold_0 patient cl_2 
AUC 0.0000  AP 0.0000 fold_0 rois cl_2 
AUC 0.1154  AP 0.7575 fold_0 patient cl_3 
AUC 0.0000  AP 0.0000 fold_0 rois cl_3 
AUC 0.0000  AP 0.0000 average_foreground_roi 

If I'm not mistaken AUC 0.5 means it can't differentiate the class clearly, and rois cl_1, 2, 3 equal to zero means that all the prediction boxes missed?
Visualization show that the anchors already OK, classification too, however the bounding boxes are off.

Are the modified configs.py parameters applicable for 3 class texture classification (solid, subsolid, groundglass)?
Thank you Sir

from medicaldetectiontoolkit.

pfjaeger avatar pfjaeger commented on June 1, 2024

hi can you please post this in the slack channel? i guess this is getting a little off topic for the initial issue. thanks!

from medicaldetectiontoolkit.

ivanwilliammd avatar ivanwilliammd commented on June 1, 2024

hi can you please post this in the slack channel? i guess this is getting a little off topic for the initial issue. thanks!

Okay Sir.

from medicaldetectiontoolkit.

Related Issues (20)

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.