Giter Site home page Giter Site logo

Comments (15)

zaccharieramzi avatar zaccharieramzi commented on June 25, 2024

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.

fharman avatar fharman commented on June 25, 2024

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.

fharman avatar fharman commented on June 25, 2024

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.

zaccharieramzi avatar zaccharieramzi commented on June 25, 2024

Sorry about that.

from fastmri-reproducible-benchmark.

fharman avatar fharman commented on June 25, 2024

Sorry about that.

ok i will revise it. thank you:)

from fastmri-reproducible-benchmark.

fharman avatar fharman commented on June 25, 2024

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.

zaccharieramzi avatar zaccharieramzi commented on June 25, 2024

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.

fharman avatar fharman commented on June 25, 2024

from fastmri-reproducible-benchmark.

zaccharieramzi avatar zaccharieramzi commented on June 25, 2024

If you used the current parameters listed in unet_approach_af4.py you don't need lrelu.

from fastmri-reproducible-benchmark.

fharman avatar fharman commented on June 25, 2024

from fastmri-reproducible-benchmark.

fharman avatar fharman commented on June 25, 2024

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.

zaccharieramzi avatar zaccharieramzi commented on June 25, 2024

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.

fharman avatar fharman commented on June 25, 2024

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.

zaccharieramzi avatar zaccharieramzi commented on June 25, 2024

Can you show me the entire stack trace ?

from fastmri-reproducible-benchmark.

fharman avatar fharman commented on June 25, 2024

from fastmri-reproducible-benchmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.