Comments (3)
Hi,
We are currently not working on releasing our training code.
Yes, if you use the model that is learning with one image at a time (this model https://github.com/nyukat/breast_cancer_classifier/blob/master/using_tensorflow.md) then the training data set would consist of (image, malignant_label, benign_label) triples.
from breast_cancer_classifier.
Hi,
Thank you for your response. I also noticed in the sample .ipynb you provided, when you load the model you specifically set the view parameter as 'L-CC', which implies that you're loading 'L-CC' model. And also during inference you give an 'L-CC' view image, which obviously makes sense. So if i want to run inference on 'R-CC' or 'L-MLO' view image, do i have to load that view-specific model for each specific image?
Another question is that when i see the summary of that model (L-CC) model, it mentions output_features=4, and also when the inference is run on the model it outputs 4 values which you manipulate to get two output probabilities for malignant and benign. I didn't understand the very line ('np.exp(y_hat.cpu().detach().numpy())[:, :2, 1]') which converts those 4 tensor values of 'yhat' into the malignant/benign probabilities.
Also, lets say i want to train this model on my own dataset, do i have to train 4 models for each view separately? and then somehow combine the results of those 4 models? and also would each model would train on only view specific images (like the L-CC model would only run on L-CC images and R-CC would train on R-CC images and so on)?
from breast_cancer_classifier.
Thank you for your response. I also noticed in the sample .ipynb you provided, when you load the model you specifically set the view parameter as 'L-CC', which implies that you're loading 'L-CC' model. And also during inference you give an 'L-CC' view image, which obviously makes sense. So if i want to run inference on 'R-CC' or 'L-MLO' view image, do i have to load that view-specific model for each specific image?
Yes, as far as I remember.
Another question is that when i see the summary of that model (L-CC) model, it mentions output_features=4, and also when the inference is run on the model it outputs 4 values which you manipulate to get two output probabilities for malignant and benign. I didn't understand the very line ('np.exp(y_hat.cpu().detach().numpy())[:, :2, 1]') which converts those 4 tensor values of 'yhat' into the malignant/benign probabilities.
I don't understand what exactly you are asking. Please follow what the model does in the example we provided.
Also, lets say i want to train this model on my own dataset, do i have to train 4 models for each view separately? and then somehow combine the results of those 4 models? and also would each model would train on only view specific images (like the L-CC model would only run on L-CC images and R-CC would train on R-CC images and so on)?
Yes, that is what you should do if you wanted to train that model. I think this model https://github.com/nyukat/GMIC is actually probably better for what you are trying to do.
from breast_cancer_classifier.
Related Issues (20)
- Issue with image_extension when parameter use-hdf5 is used HOT 4
- Tensorflow Error: Default MaxPoolingOp only supports NHWC on device type CPU HOT 3
- Converting .hdf5 heatmap file to PNG. HOT 1
- Question on when to use models in practical settings HOT 1
- Official request of the dataset HOT 1
- Resize transform for images during training HOT 1
- Preprocessing HOT 1
- helper function HOT 1
- some images doesn't work in crop_single_mammogram.py HOT 5
- Dataset HOT 1
- Outputs predictions HOT 1
- Data HOT 1
- Permission to release my PyTorch implementation for the training procedure and the dataset implementation HOT 3
- ImageNet weights HOT 1
- Weights Resnet 22 HOT 2
- question about model HOT 3
- How to create a new exam list ? HOT 3
- How do we manipulate the tensors with required_grad=True? HOT 2
- What loss we should use to train the SplitBreastModel ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from breast_cancer_classifier.