Open susuhu opened 2 months ago
Hi Su,
We are using Keras integrated within TensorFlow 2.6 as tf.keras. Please avoid using standalone Keras if you're working with TensorFlow 2.6. I am also sending you the YAML file to reproduce the environment we used. Please let me know if it worked.
From: Su @.> Sent: 26 August 2024 10:44 To: olgarithmics/ICLR_CAMIL @.> Cc: Subscribed @.***> Subject: [olgarithmics/ICLR_CAMIL] run.py error (Issue #2)
CAUTION: This email originated from outside of the ICR. Do not click links or open attachments unless you recognize the sender's email address and know the content is safe.
I got this error when trying run.py ValueError: Cannot apply softmax to a tensor that is 1D. Received input: Tensor("encoder/alpha/Reshape:0", shape=(None,), dtype=float32) Is it a Keras, Tensorflow version issue? Can you please provide the tensorflow environment details? Thank you.
— Reply to this email directly, view it on GitHubhttps://github.com/olgarithmics/ICLR_CAMIL/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGBCOSWJDTPB6LZOFKOZE4TZTL2IJAVCNFSM6AAAAABNDU6SL6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DMNBTGAYTIOA. You are receiving this because you are subscribed to this thread.Message ID: @.***>
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.
This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
Hi Olga,
Thanks for the reply. I haven't received tf YAML file yet. Where did you send it?
Best, Su
Hi,
The yml file was part of my initial commit. It is called alma.yml
From: Su @.> Sent: 01 September 2024 13:28 To: olgarithmics/ICLR_CAMIL @.> Cc: Olga Fourkioti @.>; Comment @.> Subject: Re: [olgarithmics/ICLR_CAMIL] run.py error (Issue #2)
CAUTION: This email originated from outside of the ICR. Do not click links or open attachments unless you recognize the sender's email address and know the content is safe.
Hi Olga,
Thanks for the reply. I haven't received tf YAML file yet. Where did you send it?
Best, Su
— Reply to this email directly, view it on GitHubhttps://github.com/olgarithmics/ICLR_CAMIL/issues/2#issuecomment-2323318770, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGBCOSTENOGIJOT7C65JCTLZUMB5VAVCNFSM6AAAAABNDU6SL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRTGMYTQNZXGA. You are receiving this because you commented.Message ID: @.***>
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.
This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
oh right! thanks!
The code runs now. But could you also provide the instruction for tumor localization please? Thanks!
I got this error when trying run.py
ValueError: Cannot apply softmax to a tensor that is 1D. Received input: Tensor("encoder/alpha/Reshape:0", shape=(None,), dtype=float32)
Is it a Keras, Tensorflow version issue? Can you please provide the tensorflow environment details? Thank you.