Skip to content
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

How modify depht of model 16x16x4 to 16x16x10 #72

Open
viennois opened this issue Jan 28, 2022 · 2 comments
Open

How modify depht of model 16x16x4 to 16x16x10 #72

viennois opened this issue Jan 28, 2022 · 2 comments
Labels
good first issue Good for newcomers

Comments

@viennois
Copy link

Hello
I would like to use the ten bands of Sentinel 2 at 10m resolution and apply the "createmodel1.py" script provided for 4 spectral bands at 10m. I have 16x16x10 patches as sinput but I don't know how modify the model in the script?
I am a beginner in phyton and CNN.
Thanks for the help
Gaëlle

@remicres
Copy link
Owner

Hi Gaëlle, it is quite straightforward.

You just have to change the number of components per pixel of the input placeholder:
Before:

x = tf.compat.v1.placeholder(tf.float32, [None, None, None, 4], name="x")

After:

x = tf.compat.v1.placeholder(tf.float32, [None, None, None, 10], name="x")

As you can see that is still the TF1 API, and you can follow the tutorial using TensorflowModelTrain with the generated SavedModel.

Soon we will provide pure python examples that employ the TF2 API (with Keras)!

@viennois
Copy link
Author

Thank you, it works !

@remicres remicres added the good first issue Good for newcomers label Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants