Giter Site home page Giter Site logo

Comments (6)

banyet1 avatar banyet1 commented on June 7, 2024 5

Edit sample_data/exam_list_before_cropping.pkl, remove the contents u don't need.

from breast_cancer_classifier.

zphang avatar zphang commented on June 7, 2024 1

As mentioned by @banyet1, modifying sample_data/exam_list_before_cropping.pkl accordingly should solve the problem. That file contains the metadata data for the exams to process, and is used at the start of the processing pipeline.

from breast_cancer_classifier.

jpatrickpark avatar jpatrickpark commented on June 7, 2024 1

@parkhojun The following is an example of creating a new exam list file which contains the first exam from sample_data/exam_list_before_cropping.pkl.

import src.utilities.pickling as pickling
exam_list = pickling.unpickle_from_file('sample_data/exam_list_before_cropping.pkl')
custom_exam_list = [exam_list[0]]
pickling.pickle_to_file('custom_exam_list_before_cropping.pkl', custom_exam_list)

The content of exam_list variable is as follows:

[{'horizontal_flip': 'NO',
  'L-CC': ['0_L_CC'],
  'L-MLO': ['0_L_MLO'],
  'R-MLO': ['0_R_MLO'],
  'R-CC': ['0_R_CC']},
 {'horizontal_flip': 'NO',
  'L-CC': ['1_L_CC'],
  'R-MLO': ['1_R_MLO'],
  'L-MLO': ['1_L_MLO'],
  'R-CC': ['1_R_CC']},
 {'horizontal_flip': 'NO',
  'R-MLO': ['2_R_MLO'],
  'L-MLO': ['2_L_MLO'],
  'L-CC': ['2_L_CC'],
  'R-CC': ['2_R_CC']},
 {'horizontal_flip': 'NO',
  'L-CC': ['3_L_CC'],
  'R-CC': ['3_R_CC'],
  'L-MLO': ['3_L_MLO'],
  'R-MLO': ['3_R_MLO']}]

The content of custom_exam_list variable is as follows:

[{'horizontal_flip': 'NO',
 'L-CC': ['0_L_CC'],
 'L-MLO': ['0_L_MLO'],
 'R-MLO': ['0_R_MLO'],
 'R-CC': ['0_R_CC']}]

from breast_cancer_classifier.

jpatrickpark avatar jpatrickpark commented on June 7, 2024 1

@parkhojun You may want to look for public datasets such as CBIS-DDSM.

from breast_cancer_classifier.

parkhojun avatar parkhojun commented on June 7, 2024

I want to see example modifying sample_data/exam_list_before_cropping.pkl.
Can you see that?@banyet1 @zphang

from breast_cancer_classifier.

parkhojun avatar parkhojun commented on June 7, 2024

Thank you for your answer, and where can we find more sample images that can be used for that code?

from breast_cancer_classifier.

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.