Closed jpcenteno80 closed 3 years ago
Inspection of data/step1_heartloc/model_weights/step1_heartloc_model_weights.hdf5
yields the following keys:
import h5py
f = h5py.File('step1_heartloc_model_weights.hdf5', 'r')
f.keys()
## <KeysViewHDF5 ['concatenate_1', 'lambda_1', 'lambda_2', 'lambda_3', 'lambda_4', 'model_1', 'model_input']>
f['model_1'].keys()
## <KeysViewHDF5 ['conv_10', 'conv_1_1', 'conv_1_2', 'conv_2_1', 'conv_2_2', 'conv_3_1', 'conv_3_2', 'conv_4_1', 'conv_4_2', 'conv_5_1', 'conv_5_2', 'conv_6_1', 'conv_6_2', 'conv_7_1', 'conv_7_2', 'conv_8_1', 'conv_8_2', 'conv_9_1', 'conv_9_2']>
len(f['model_1'].keys())
## 19
The model's layers are under the model_1
key. Tried to make a new .hdf5
with just the model_1
contents, but still running into the same error (above).
Unfortunately, as of now there is no support for running the pre-trained models on a system with other than 4 GPUs, at least to our knowledge. This is due to the way the model was trained using
parallel_model = multi_gpu_model(model, gpus=4)
We are already training new models on single GPUs which then should be able to even run on CPUs (although slower) and will publish them as soon as possible.
still waiting for the new weight file for one gpu.
Hi, thanks for the great code! I changed the hard coded
mgpu = 4
tomgpu = 1
in thestep1_heartloc/run_inference.py
file. But when I runpython run_step1_heart_localization.py
I encounter the following error:Wondering if this is related to trying to use single GPU (my server only has a single 16 GB GPU) or something else. Thank you for your help!