-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the version of keras #2
Comments
Hi @zlpsophina, I reached out directly to Vishnu regarding this issue and received the follow information below. I am still running into issues with loading the models that I downloaded directly from the website as pasted below. I am actively debugging why this is happening but if you have any suggestions please let me know. model = load_model('/scratch/rjirsara/RobertJirsaraie/projects/Models/DBN_Model/Tensorflow/saved_model.pb') model = load_model('/scratch/rjirsara/RobertJirsaraie/projects/Models/DBN_Model/DBN_model.h5') |
Hi @zlpsophina, I got the model to using Python 3.6.3 and the following command below to install tensorflow-gpu==1.12.0, which is the only one that gave me trouble. python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl I also ran into the error below when using the 5h file that I directly downloaded from GitHub but the ones on the CBICA website that he linked to the README worked just fine. Hope this helps! OSError: Unable to open file (file signature not found) |
I've used the below Neurodocker command to generate a Dockerfile for a container that seems to be working. The resulting container has NOT BEEN EXTENSIVELY TESTED but sharing as may be useful starting point for anyone coming across this issue as I did. Some things to note:
UPDATE: docker run --rm repronim/neurodocker:master generate docker \
--base=ubuntu:20.04 \
--pkg-manager=apt \
--ants version=2.3.0 \
--miniconda \
conda_install="python=3.6 pip pandas numpy nibabel keras=2.2.4 tensorflow=1.12.0 pillow scikit-learn git git-annex" \
pip_install="datalad datalad-installer h5py==2.10.0 --force-reinstall" \
use_env="base" \
--run "apt-get update && apt-get install -y \
libz-dev \
libpng-dev \
netbase" \
--run "git config --global --add user.name test && \
git config --global --add user.email test && \
git clone https://github.com/vishnubashyam/DeepBrainNet.git /opt/DeepBrainNet && \
cd /opt/DeepBrainNet/Models && \
curl <download link>" \
--run "datalad install -r ///templateflow && \
cd /templateflow && \
datalad get tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-01_T1w.nii.gz && \
datalad get tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-01_desc-brain_T1w.nii.gz && \
datalad get tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-01_desc-brain_probseg.nii.gz" > Dockerfile UPDATE 2: |
Dear authors: Best regards. |
It took us some time to execute the code and put it in a pipeline. The pipeline is implemented with Nextflow and assumes BIDS dataset input. Feedback is welcome. /cc @tannerjared |
Thanks! I'll try out the new pipeline and let you know if there are any problems on my end. |
I've run the pipeline successfully. I still need to compare results from this pipeline with the semi-automated version. Thanks for putting this together @mateuszpawlik! |
Thanks for the feedback @tannerjared. Feel free to open issues and contribute there. FYI There's a short discussion about the predicted values depending on preprocessing. |
Hi ,I got a bug describe as ValueError: Unknown layer:name,this is because the version of keras intalled in your running envrioment is different from mine,so could you please tell me the version of keras you are using?
The text was updated successfully, but these errors were encountered: