-
Notifications
You must be signed in to change notification settings - Fork 13
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
tutorial issue, tensorflow dimensions, OSX #10
Comments
You will have to first check your data frame dimensions with the dim function, then change the number of dimensions or use the reshape fonction in Keras to reshape your data frame if necessary as your input tensor needs to have the correct number of dimensions according to the model you are using:
https://keras.io/api/layers/reshaping_layers/reshape/
Best,
Envoyé de mon iPhone
… Le 26 juin 2020 à 05:53, Spatial Audio Labs ***@***.***> a écrit :
Hi there
I'm still struggling with the Windows installation, so I have moved to my mac OS Catalina.
I do end up having another issue when running:
mod0 %>% fit(X_train, Y_train, batch_size = 32, epochs = 50,
validation_data = list(X_test, Y_test),
verbose = 1, callbacks = reduce_lr)
Error below:
Error in py_call_impl(callable, dots$args, dots$keywords) :
ValueError: in user code:
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py:941 test_function *
outputs = self.distribute_strategy.run(
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:951 run **
return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2290 call_for_each_replica
return self._call_for_each_replica(fn, args, kwargs)
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2649 _call_for_each_replica
return fn(*args, **kwargs)
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/keras/e
It seems to be related to the validation data, as by this other issue, there 'it seems that x_val does not have the same dimensions as partial_x_train.' Any hint on this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi there
Ok it makes sense, I should have mentioned and I literally copy/pasted the
tutorial so I was supposing the dimensions were correct already?
Axel
On Mon, 29 Jun 2020 at 13:20, matacloud ***@***.***> wrote:
You will have to first check your data frame dimensions with the dim
function, then change the number of dimensions or use the reshape fonction
in Keras to reshape your data frame if necessary as your input tensor needs
to have the correct number of dimensions according to the model you are
using:
https://keras.io/api/layers/reshaping_layers/reshape/
Best,
Envoyé de mon iPhone
> Le 26 juin 2020 à 05:53, Spatial Audio Labs ***@***.***>
a écrit :
>
> Hi there
>
> I'm still struggling with the Windows installation, so I have moved to
my mac OS Catalina.
>
> I do end up having another issue when running:
>
> mod0 %>% fit(X_train, Y_train, batch_size = 32, epochs = 50,
>
> validation_data = list(X_test, Y_test),
> verbose = 1, callbacks = reduce_lr)
> Error below:
>
> Error in py_call_impl(callable, dots$args, dots$keywords) :
> ValueError: in user code:
>
>
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py:941
test_function *
> outputs = self.distribute_strategy.run(
>
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:951
run **
> return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
>
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2290
call_for_each_replica
> return self._call_for_each_replica(fn, args, kwargs)
>
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2649
_call_for_each_replica
> return fn(*args, **kwargs)
>
/Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/keras/e
> It seems to be related to the validation data, as by this other issue,
there 'it seems that x_val does not have the same dimensions as
partial_x_train.' Any hint on this?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDI4JE3N2JXW3K2KFO5HM3RZCBH5ANCNFSM4OJFQGPA>
.
--
*Axel Drioli*
*SpatialAudioLabs.com <http://spatialaudiolabs.com/>*
*Creating sonic immersive experiences for XR and installations.*
*SoundingWild.com <http://SoundingWild.com> for Wildlife and Conservation
immersive experiences.*
*Tel-Facetime: +44 7460 223640*
*E-mail: axel@spatialaudiolabs.com <axel@spatialaudiolabs.com>*
*'Life On The Edge', a Sounding Wild <http://www.soundingwild.com>
x Spatial Audio Labs production for Wildlife Alliance
<https://www.wildlifealliance.org/> is part of EarthXR 2020
<https://earthx.org/expo/main-attractions/earthxr/> official selection and
Finalist at SXSW2020 Virtual Noise Showcase*
|
The changes you mentionned earlier on Xeno Canto may have changed the overall dimensions of the data frame or these are minor changes from new versions of the package functions. We will need to take a look on tutorial to update it as we said but have not the time to do it before next autumn. Thank you for your support
Envoyé de mon iPhone
… Le 29 juin 2020 à 08:58, Spatial Audio Labs ***@***.***> a écrit :
Hi there
Ok it makes sense, I should have mentioned and I literally copy/pasted the
tutorial so I was supposing the dimensions were correct already?
Axel
On Mon, 29 Jun 2020 at 13:20, matacloud ***@***.***> wrote:
> You will have to first check your data frame dimensions with the dim
> function, then change the number of dimensions or use the reshape fonction
> in Keras to reshape your data frame if necessary as your input tensor needs
> to have the correct number of dimensions according to the model you are
> using:
> https://keras.io/api/layers/reshaping_layers/reshape/
>
> Best,
>
>
> Envoyé de mon iPhone
> > Le 26 juin 2020 à 05:53, Spatial Audio Labs ***@***.***>
> a écrit :
> >
> > Hi there
> >
> > I'm still struggling with the Windows installation, so I have moved to
> my mac OS Catalina.
> >
> > I do end up having another issue when running:
> >
> > mod0 %>% fit(X_train, Y_train, batch_size = 32, epochs = 50,
> >
> > validation_data = list(X_test, Y_test),
> > verbose = 1, callbacks = reduce_lr)
> > Error below:
> >
> > Error in py_call_impl(callable, dots$args, dots$keywords) :
> > ValueError: in user code:
> >
> >
> /Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py:941
> test_function *
> > outputs = self.distribute_strategy.run(
> >
> /Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:951
> run **
> > return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
> >
> /Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2290
> call_for_each_replica
> > return self._call_for_each_replica(fn, args, kwargs)
> >
> /Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2649
> _call_for_each_replica
> > return fn(*args, **kwargs)
> >
> /Users/axeldrioli/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/tensorflow/python/keras/e
>
> > It seems to be related to the validation data, as by this other issue,
> there 'it seems that x_val does not have the same dimensions as
> partial_x_train.' Any hint on this?
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub, or unsubscribe.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#10 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACDI4JE3N2JXW3K2KFO5HM3RZCBH5ANCNFSM4OJFQGPA>
> .
>
--
*Axel Drioli*
*SpatialAudioLabs.com <http://spatialaudiolabs.com/>*
*Creating sonic immersive experiences for XR and installations.*
*SoundingWild.com <http://SoundingWild.com> for Wildlife and Conservation
immersive experiences.*
*Tel-Facetime: +44 7460 223640*
*E-mail: ***@***.*** ***@***.***>*
*'Life On The Edge', a Sounding Wild <http://www.soundingwild.com>
x Spatial Audio Labs production for Wildlife Alliance
<https://www.wildlifealliance.org/> is part of EarthXR 2020
<https://earthx.org/expo/main-attractions/earthxr/> official selection and
Finalist at SXSW2020 Virtual Noise Showcase*
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there
I'm still struggling with the Windows installation, so I have moved to my mac OS Catalina.
I do end up having another issue when running:
mod0 %>% fit(X_train, Y_train, batch_size = 32, epochs = 50,
Error below:
Error in py_call_impl(callable, dots$args, dots$keywords) :
ValueError: in user code:
It seems to be related to the validation data, as by this other issue, there 'it seems that x_val does not have the same dimensions as partial_x_train.' Any hint on this?
The text was updated successfully, but these errors were encountered: