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
library(ANTsRNet)
library(ANTsR)
#> Loading required package: ANTsRCore#> #> Attaching package: 'ANTsRCore'#> The following objects are masked from 'package:stats':#> #> sd, var#> The following objects are masked from 'package:base':#> #> all, any, apply, max, min, prod, range, sumimg<- ri( 1 ) %>% resampleImage( c(4,4) ) %>% iMath( "Normalize" )
mask= randomMask( getMask( img ), 50 )
r= c( 3, 3 )
patch= getNeighborhoodInMask( img, mask, r, boundary.condition="NA" )
uvaSegModel= uvaSegTrain( patch, 6 )
#> Error in py_call_impl(callable, dots$args, dots$keywords): _SymbolicException: Inputs to eager execution function cannot be Keras symbolic tensors, but found [<tf.Tensor 'dense_2/Identity:0' shape=(None, 6) dtype=float32>, <tf.Tensor 'dense_1/Identity:0' shape=(None, 6) dtype=float32>]#> #> Detailed traceback: #> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training.py", line 728, in fit#> use_multiprocessing=use_multiprocessing)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 324, in fit#> total_epochs=epochs)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 123, in run_one_epoch#> batch_outs = execution_function(iterator)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_v2_utils.py", line 86, in execution_function#> distributed_function(input_fn))#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 457, in __call__#> result = self._call(*args, **kwds)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 520, in _call#> return self._stateless_fn(*args, **kwds)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 1823, in __call__#> return graph_function._filtered_call(args, kwargs) # pylint: disable=protected-access#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 1141, in _filtered_call#> self.captured_inputs)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 1224, in _call_flat#> ctx, args, cancellation_manager=cancellation_manager)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 511, in call#> ctx=ctx)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/eager/execute.py", line 75, in quick_execute#> "tensors, but found {}".format(keras_symbolic_tensors))
Created on 2020-01-30 by the reprex package (v0.3.0.9001)
Created on 2020-01-30 by the reprex package (v0.3.0.9001)
Session info
The text was updated successfully, but these errors were encountered: