Closed lc0 closed 5 years ago
Seems like it was my local error related to envs on Colab. Do you you think we can check these more explicitly?
On Sat, Mar 9, 2019 at 1:55 PM Sergii Khomenko notifications@github.com wrote:
Seems like it was my local error related to envs on Colab. Do you you think we can check these more explicitly?
It certainly would be nice if we could, although I dont know how. Do you have any suggestions?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/probability/issues/322#issuecomment-471225818, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFZtmM2Tc2rrZPuZujHdwy0EAe1g2BYks5vVC2zgaJpZM4bm6Ze .
I mean, it's mostly for transition time.
Very simple idea: Tensorflow has tf.version.VERSION
, so what if we just fail on import if version is not compatible.
I think it's a bigger questions what versions we do not expect run be executed together if any. What do you think, what versions are not compatible like in my example from above?
It seems more complicated than one error. seems as if TFP does not work with TF2 and raise many errors. see #323
@ErmiaAzarkhalili would you mind to try with tf-nightly-2.0-preview
. Something like https://colab.research.google.com/drive/1astt2Bkj6T7o4MAOx2Q4HYOKD65ZE1Jl#scrollTo=NwiLC1s2QHRW
Thanks @lc0!
tl;dr:
Try this:
pip install --upgrade tf-nightly-gpu-2.0-preview tfp-nightly
(Drop the -gpu
if you don't have one or want a smaller whl
download.)
Please reopen if the above procedure didnt work for you. In the coming days we'll also update the GH home page.
/home/sehar/DeepSpeech/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/sehar/DeepSpeech/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /home/sehar/DeepSpeech/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /home/sehar/DeepSpeech/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /home/sehar/DeepSpeech/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /home/sehar/DeepSpeech/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /home/sehar/venv/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/sehar/venv/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /home/sehar/venv/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /home/sehar/venv/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /home/sehar/venv/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /home/sehar/venv/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) WARNING:tensorflow:From /home/sehar/DeepSpeech/tensorflow/python/data/ops/dataset_ops.py:494: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version. Instructions for updating: tf.py_func is deprecated in TF V2. Instead, there are two options available in V2.
tf.py_function
s can use accelerators such as GPUs as well as
being differentiable using a gradient tape.W1024 13:33:04.438267 140035658102592 deprecation.py:323] From /home/sehar/DeepSpeech/tensorflow/python/data/ops/dataset_ops.py:494: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version. Instructions for updating: tf.py_func is deprecated in TF V2. Instead, there are two options available in V2.
tf.py_function
s can use accelerators such as GPUs as well as
being differentiable using a gradient tape.WARNING:tensorflow:From /home/sehar/DeepSpeech/tensorflow/python/data/ops/iterator_ops.py:348: Iterator.output_types (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.data.get_output_types(iterator)
.
W1024 13:33:04.508710 140035658102592 deprecation.py:323] From /home/sehar/DeepSpeech/tensorflow/python/data/ops/iterator_ops.py:348: Iterator.output_types (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.data.get_output_types(iterator)
.
WARNING:tensorflow:From /home/sehar/DeepSpeech/tensorflow/python/data/ops/iterator_ops.py:349: Iterator.output_shapes (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.data.get_output_shapes(iterator)
.
W1024 13:33:04.508934 140035658102592 deprecation.py:323] From /home/sehar/DeepSpeech/tensorflow/python/data/ops/iterator_ops.py:349: Iterator.output_shapes (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.data.get_output_shapes(iterator)
.
WARNING:tensorflow:From /home/sehar/DeepSpeech/tensorflow/python/data/ops/iterator_ops.py:351: Iterator.output_classes (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.data.get_output_classes(iterator)
.
W1024 13:33:04.509080 140035658102592 deprecation.py:323] From /home/sehar/DeepSpeech/tensorflow/python/data/ops/iterator_ops.py:351: Iterator.output_classes (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.data.get_output_classes(iterator)
.
WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
W1024 13:33:04.932764 140035658102592 lazy_loader.py:50] The TensorFlow contrib module will not be included in TensorFlow 2.0. For more information, please see:
WARNING:tensorflow:From /home/sehar/DeepSpeech/tensorflow/python/ops/init_ops.py:1251: calling VarianceScaling.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
W1024 13:33:04.935033 140035658102592 deprecation.py:506] From /home/sehar/DeepSpeech/tensorflow/python/ops/init_ops.py:1251: calling VarianceScaling.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
WARNING:tensorflow:From DeepSpeech.py:232: add_dispatch_support.
this is my error while my run file for training my own model
Looks like an error in your code in logging.py initializing a progress bar.
On Thu, Oct 24, 2019, 4:49 AM sehargul-123 notifications@github.com wrote:
this is my error while my run file for training my own model
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tensorflow/probability/issues/322?email_source=notifications&email_token=AFJFSIYDEH3GAR2HNWANLODQQFOSJA5CNFSM4G43UZPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECEHXOI#issuecomment-545815481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJFSI2VC7F37G5P2IXOTDLQQFOSJANCNFSM4G43UZPA .
from future import print_function
import progressbar import sys
from util.flags import FLAGS
def prefix_print(prefix, message): print(prefix + ('\n' + prefix).join(message.split('\n')))
def log_debug(message): if FLAGS.log_level == 0: prefix_print('D ', message)
def log_info(message): if FLAGS.log_level <= 1: prefix_print('I ', message)
def log_warn(message): if FLAGS.log_level <= 2: prefix_print('W ', message)
def log_error(message): if FLAGS.log_level <= 3: prefix_print('E ', message)
def create_progressbar(*args, **kwargs):
if 'fd' not in kwargs:
kwargs['fd'] = sys.stdout
if FLAGS.show_progressbar:
return progressbar.ProgressBar(*args, **kwargs)
return progressbar.NullBar(*args, **kwargs)
def log_progress(message): if not FLAGS.show_progressbar: log_info(message) what do I have to change in logging.py to resolve this error
i have progressbar=2.5 and progressbar2=3.47.0
The error here is not in TF probability code, so we can't really help. The error is somewhere between DeepSpeech.py
and util/logging.py
.
kindly help me to indicate that error
From: Brian Patton notifications@github.com Sent: Monday, November 4, 2019 7:21 PM To: tensorflow/probability probability@noreply.github.com Cc: sehargul-123 sehar_capricon@hotmail.com; Comment comment@noreply.github.com Subject: Re: [tensorflow/probability] Python 3 + TF2 - TypeError: init() got an unexpected keyword argument 'values' (#322)
The error here is not in TF probability code, so we can't really help. The error is somewhere between DeepSpeech.py and util/logging.py.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/tensorflow/probability/issues/322?email_source=notifications&email_token=ANPWXS5ULEFJ3N3D5VZHTUDQSAVVJA5CNFSM4G43UZPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7M2KQ#issuecomment-549375274, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANPWXS4BZ7QMP3ERHOZTJYTQSAVVJANCNFSM4G43UZPA.
can you please help me in indicating that error
From: Brian Patton notifications@github.com Sent: Monday, November 4, 2019 7:21 PM To: tensorflow/probability probability@noreply.github.com Cc: sehargul-123 sehar_capricon@hotmail.com; Comment comment@noreply.github.com Subject: Re: [tensorflow/probability] Python 3 + TF2 - TypeError: init() got an unexpected keyword argument 'values' (#322)
The error here is not in TF probability code, so we can't really help. The error is somewhere between DeepSpeech.py and util/logging.py.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/tensorflow/probability/issues/322?email_source=notifications&email_token=ANPWXS5ULEFJ3N3D5VZHTUDQSAVVJA5CNFSM4G43UZPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7M2KQ#issuecomment-549375274, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANPWXS4BZ7QMP3ERHOZTJYTQSAVVJANCNFSM4G43UZPA.
i have progressbar=2.5 and progressbar2=3.47.0
@sehargul-123 As @brianwa84 said, this is not tensorflow-level issue, this is you not following the documentations. Our requirements.txt
specifies progressbar2
, if you installed both then it's likely picking the wrong one and explains your issue ...
thanks problem resolve
I was testing a terrific example by @jvdillon and unfortunately it failed on my for TF2 and python3.6(default version for python3 env on colab)
code
And error message