You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not really a issue, but a little help for those who want to use this project directly on Google Colab without any installation requirement (the default preinstalled setting of Google Colab)
Code Trick
You just need to replace :
import tensorflow.as tf
by
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
in the head on the following two files :
/SIUN/code/src/lib/tf_util.py
/SIUN/code/src/model/model.py
allowing to the code working with tensorflow 2>
Notebook
Now create a simple notebook with a cell for the project cloning
Hi, Thanks for taking the effort to write up this guide. This helps alot.
I did what you told, I still gets this error
I am confused what to do ? which version of tensorflow has this method "depth_to_space" v1 or v2. Is there a way around to this as well ?? If you can help that would be lot helpful for me.
This is not really a issue, but a little help for those who want to use this project directly on Google Colab without any installation requirement (the default preinstalled setting of Google Colab)
Code Trick
You just need to replace :
by
in the head on the following two files :
/SIUN/code/src/lib/tf_util.py
/SIUN/code/src/model/model.py
allowing to the code working with tensorflow 2>
Notebook
Now create a simple notebook with a cell for the project cloning
Another to set the working directory
For my own case, I mount Google Drive with this cell
Now, just call the process
An option is to build a zip of the result directory
That's all. Hope that helps.
The text was updated successfully, but these errors were encountered: