Comments (15)
Hi Fatma,
Yes this is to be expected in those notebooks as they are pretty old now and not maintained. They should still provide a good basis for testing the networks trained with the functional API, so you could try to just prune them to what you need.
When I have time I will try to correct them in order to have them work in the current state, or even better provide evaluation scripts for the functional networks.
from fastmri-reproducible-benchmark.
etty old now and not maintained. They should still provide a good basis for testing the networks trained with the functional API, so you could try to just prune them to what you need.
thank you, i am waiting for your information
from fastmri-reproducible-benchmark.
Hello again,
when i prune the code for reconstruction (comment all lines that included helpers folder), i encountered another problem that included helpers folder.
(#from fastmri_recon.helpers.nn_mri import lrelu
#from fastmri_recon.helpers.reconstruction import reco_and_gt_unet_from_val_file, reco_and_gt_net_from_val_file, reco_and_gt_zfilled_from_val_file)
NameError:name 'reco_and_gt_unet_from_val_file' is not defined
from fastmri_recon.helpers.reconstruction import reco_and_gt_unet_from_val_file, reco_and_gt_net_from_val_file, reco_and_gt_zfilled_from_val_file
As it is seen, in reconstruction.py , it is needed to import reco_and_gt_unet_from_val_file. In all_net_params section,
'val_gen': val_gen_zero,
'run_id': 'unet_af4_1569210349',
'reco_function': reco_and_gt_unet_from_val_file,
},
these lines calls the reco_and_gt_unet_from_val_file for the reconstruction. So helpers folder contains all these reconstruction.py and nn_mri.py files.
best regards,
from fastmri-reproducible-benchmark.
Sorry about that.
- You can find
reco_and_gt_unet_from_val_file
infastmri_recon.evaluate.reconstruction.unet_reconstruction.py
. - You can find
reco_and_gt_net_from_val_file
infastmri_recon.evaluate.reconstruction.cross_domain_reconstruction.py
. - You can find
reco_and_gt_zfilled_from_val_file
infastmri_recon.evaluate.reconstruction.zero_filled_reconstruction.py
from fastmri-reproducible-benchmark.
Sorry about that.
- You can find
reco_and_gt_unet_from_val_file
infastmri_recon.evaluate.reconstruction.unet_reconstruction.py
.- You can find
reco_and_gt_net_from_val_file
infastmri_recon.evaluate.reconstruction.cross_domain_reconstruction.py
.- You can find
reco_and_gt_zfilled_from_val_file
infastmri_recon.evaluate.reconstruction.zero_filled_reconstruction.py
ok i will revise it. thank you:)
from fastmri-reproducible-benchmark.
Hi again,
Sorry for disturbance. But i encountered the problem in all_net_params section named NameError: name 'lrelu' is not defined.
This function is derived from nonexisting nn_mri.py. Because lrelu is tried to import from there. Consequently, testing is not run .
Best regards,
from fastmri-reproducible-benchmark.
Hmm but did you use lrelu
in your unet model ?
If so then the simplest I can do is just to add in an evaluation notebook to cover the old models.
from fastmri-reproducible-benchmark.
from fastmri-reproducible-benchmark.
If you used the current parameters listed in unet_approach_af4.py
you don't need lrelu
.
from fastmri-reproducible-benchmark.
from fastmri-reproducible-benchmark.
Hi everyone again,
Sorry for disturbance. But while running the qualitative_validation_for_net for unet , i encountered the error named as
ValueError: You are trying to load a weight file containing 19 layers into a model with 60 layers.
But As you know, anyway unet has 19 layers. I don't understand why i am always facing this error.
Do you have any idea for this?
Best regards,
from fastmri-reproducible-benchmark.
It probably means that you haven't used the same parameters for training and for evaluation. Make sure that the parameters match.
Btw, a U-net doesn't always have 19 layers, it depends on how you define layer and also on how you parametrize the U-net instance.
from fastmri-reproducible-benchmark.
Sorry i was confused with vgg16 because of training fastmri both VGG16 and UNET at the same time. I changed the path as your folder
chkpt_path = f'/content/fastmri_reproducible_benchmark_master/checkpoints/{run_id}-{epoch}.hdf5' . I think this error is derived because of the model that i trained more less fastmri data.
But after changing the path as you added in fastmri_reproducible_benchmark_master/checkpoints ended with 300 epoch, i encountered another error. I am really sorry about this error disturbance.
Error is
TypeError: To be compatible with tf.contrib.eager.defun, Python functions must return zero or more Tensors; in compilation of <function unpack_model at 0x7f8ace097400>, found return value of type <class 'tensorflow.python.keras.engine.training.Model'>, which is not a Tensor.
Do you have any idea to overcome this error? i searched and tested all way but not overcome.
Best regards,
from fastmri-reproducible-benchmark.
Can you show me the entire stack trace ?
from fastmri-reproducible-benchmark.
from fastmri-reproducible-benchmark.
Related Issues (20)
- maybe remove or update np_metrics HOT 4
- need to specify the scikit-image version in the requirements.txt HOT 2
- Update the introduction notebook
- Add HuggingFace Hub integration to store the models HOT 1
- Regarding sessions of OASIS3 dataset to be downloaded HOT 5
- Error in training PD-net for OASIS3 dataset HOT 14
- Unpin TF version number
- Correct bias setting in MWCNN
- PSNR and SSIM metrics from skimage HOT 1
- Nufft and its adj operator with cropped 320x320 image HOT 8
- Error in training XPDNet HOT 3
- GPU->CPU Memcpy failed HOT 3
- Move to using tensorflow-nufft HOT 3
- Difficulty in running inference for NCPDNet HOT 2
- Getting NaN values when running nc_train.py HOT 8
- question about mask HOT 1
- Time per epoch increasing HOT 1
- Getting error when I run postBuild HOT 1
- How to predict using the XPDNet-brain-af4 model HOT 2
- error
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 fastmri-reproducible-benchmark.