Closed Zzmonica closed 6 years ago
Hello,
I have an issue when I change the batch_size too :
...
1638
1639
1640
1641
1642
1643
Traceback (most recent call last):
File "/export/livia/home/vision/descampsg/.pycharm_helpers/pydev/pydev_run_in_console.py", line 52, in run_file
pydev_imports.execfile(file, globals, locals) # execute the script
File "/export/livia/home/vision/descampsg/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/export/livia/home/vision/descampsg/foldertodeploy/main.py", line 51, in
the batch_size was 10. I have the same problem with 50 or 500. Thanks for help
Zzmonica did you find a solution for your case ?
Hi Guys, sorry for late reply. As of now, the dataloader takes up a study at a time. As each study may have varying number of images, we can't have batch size>1.
Thank you for you answer, I thought it was why i can't reach your results. Currently i got a accuracy of 54% on the validation set of the wrist instead of 75%. I don't know why i have this issue. Any idea ?
So you ensemble 7 trained models to evaluate? For that your training dataset is just one study type.If not, how can you train the valid set with only one model?
Yeah, ensemble is an option. Else you can modify the datapipeline to do image level training (instead of study level).
Yeah,I'm going to do that job ~
Microrpatorgui , have you improve the accuracy ?
Yes by taking picture one by one instead of study by study and taking a batch size of 8.
I also trained the network on the entire database.
I did that too. So what's your accuracy on validation set? Did you change anything?
yes 85% on the validation set of the wrist
wow~ so~~good! so you just valid the wrist set? have you change anything? my performance was awful..
yes just for the wrist, i used BCELoss
Have you change the bceloss's parameters with the corresbonding study type's normal and abnormal proportion?
@Microrpatorgui I knew! Thanks!
When I changing the batch_size into a number that bigger than 1 , the program then goes an error that : at train.py:train_model in the enumerate operation RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 3 and 2 in dimension 1