Comments (5)
Hi @sarthakpati , yes it fixed the issue as well. Thanks!
from gandlf.
Hi @sarthakpati , I also encountered this error end fix it by changing that line to:
label = label.reshape(image.shape[0], len(params["value_keys"]))
from gandlf.
What is the rationale behind using image.shape[0]
?
from gandlf.
Because the last batch coming from data loader is not equal to batch size, but it is equal to the number of remaining images. For example I was getting the error because in the last iteration the batch size was 43, but it was trying to reshape it assuming that it is 64.
from gandlf.
I understand. Would the commit fa70a18 fix your issue as well? I tried it with different scenarios and it seemed to work as expected.
from gandlf.
Related Issues (20)
- Issue with cuda lib? HOT 11
- Add a few segmentation-specific metrics
- Allow metrics to be generated by passing predictions and ground truths
- RuntimeError: cuDNN error: CUDNN_STATUS_MAPPING_ERROR HOT 1
- Add metrics to compare 2 images
- Ensure the training parameters are captured in the model dictionary itself
- Updated post-training model optimization to ensure the built-in parameters can be used
- Perform penalty calculation after all sanity checks are completed
- Allow penalty and class weights to be taken from the config
- torch.Size error
- `gandlf_collectStats` is not detecting `problem_type` correctly HOT 1
- Add documentation describing how one could federate their models using OpenFL
- Problem with cuda following installing virtual environment HOT 4
- Per-label and per-class metrics should be formatted properly for CSV output
- No need for the history file
- Add focal loss
- Add some SOTA optimizers HOT 3
- Add Matthews Correlation Coefficient Loss
- FlexiNet
- Converting DICOM to NIfTI using Gandlf_Anonymizer requires specifying a .nii.gz output file (not a folder). 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 gandlf.