Comments (5)
You got any solution for ValueError? I am with same error please help.
Thanks
from brain-tumor-segmentation.
I got any solution for ValueError.
If you want to train the model from scratch, the parameter load_model_resume_training
shoud be None
.
If you train the model from the pretrained weights provided by @Issam28, the parameter load_model_resume_training
shoud be pretrained weights filepath without extension and code
self.model =load_model(load_model_resume_training,custom_objects={'gen_dice_loss': gen_dice_loss,'dice_whole_metric':dice_whole_metric,'dice_core_metric':dice_core_metric,'dice_en_metric':dice_en_metric})
change to
self.model = self.load_model(load_model_resume_training)
sgd = SGD(lr=0.08, momentum=0.9, decay=5e-6, nesterov=False)
self.model.compile(loss=gen_dice_loss, optimizer=sgd, metrics=[dice_whole_metric,dice_core_metric,dice_en_metric])
from brain-tumor-segmentation.
I got any solution for ValueError.
If you want to train the model from scratch, the parameterload_model_resume_training
shoud beNone
.
If you train the model from the pretrained weights provided by @Issam28, the parameterload_model_resume_training
shoud be pretrained weights filepath without extension and codeself.model =load_model(load_model_resume_training,custom_objects={'gen_dice_loss': gen_dice_loss,'dice_whole_metric':dice_whole_metric,'dice_core_metric':dice_core_metric,'dice_en_metric':dice_en_metric})change to
self.model = self.load_model(load_model_resume_training) sgd = SGD(lr=0.08, momentum=0.9, decay=5e-6, nesterov=False) self.model.compile(loss=gen_dice_loss, optimizer=sgd, metrics=[dice_whole_metric,dice_core_metric,dice_en_metric])
The load_model function needs '{ }.json', but I didn't find it
from brain-tumor-segmentation.
I got any solution for ValueError.
If you want to train the model from scratch, the parameterload_model_resume_training
shoud beNone
.
If you train the model from the pretrained weights provided by @Issam28, the parameterload_model_resume_training
shoud be pretrained weights filepath without extension and codeself.model =load_model(load_model_resume_training,custom_objects={'gen_dice_loss': gen_dice_loss,'dice_whole_metric':dice_whole_metric,'dice_core_metric':dice_core_metric,'dice_en_metric':dice_en_metric})change to
self.model = self.load_model(load_model_resume_training) sgd = SGD(lr=0.08, momentum=0.9, decay=5e-6, nesterov=False) self.model.compile(loss=gen_dice_loss, optimizer=sgd, metrics=[dice_whole_metric,dice_core_metric,dice_en_metric])The load_model function needs '{ }.json', but I didn't find it
Hello, hope it's not too late.
The json file can be produced by function save_model in object Train.
from brain-tumor-segmentation.
Hello, I used your solution(change self.model) and ran into this problem as well:No such file or directory: '*******/pretrained_weights/ResUnet.epoch_02.hdf5.json'
I don't understand you said "The json file can be produced by function save_model in object Train.", Can you elaborate a bit more on how to solve this problem?
Thank you very much! I am looking forward to your reply.
from brain-tumor-segmentation.
Related Issues (20)
- error file not found y_training.npy and where there is no variable defined x_patches_valid
- Model not performing well on validation data
- Only integers, slices (`:`), ellipsis (`...`), tf.newaxis (`None`) and scalar tf.int32/tf.int64 tensors are valid indices, got [1, 3] HOT 6
- where is the y_dataset_second_part.npy
- Visualization code is NOT GIVEN!
- Question!
- TypeError: tuple indices must be integers or slices, not tuple
- TypeError: Only integers, slices (`:`), ellipsis (`...`), tf.newaxis (`None`) and scalar tf.int32/tf.int64 tensors are valid indices
- Train.py error HOT 1
- Is there a data augmentation script?
- From where I get the "y_training.npy", "x_training.npy" , "y_valid.npy", "x_valid.npy" patches. Please Guide. Its really urgent HOT 1
- The pretrained weight can't use without .json file.
- How did the pretrained weights be generated? HOT 1
- train with 128x128 pred with 240x240?
- TypeError: ('Keyword argument not understood:', 'input') from model.py
- please how i can print some results predicted by a model trained in png format HOT 1
- extract_pathches.py error HOT 1
- Got Dice_whole_Metric & Dice_Core_Metric values greater than 1 which is not possible. pls solve issue if possible?
- ResUnet Error.
- error with predict.py and model.py
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 brain-tumor-segmentation.