Closed gitathrun closed 4 years ago
Hi, what is your environment? I just tried using the mentionned tf-nightly
build 2.1.0-dev20191128
and the last transformers
release 2.2.0
and it works perfectly on my machine. Also tried in a notebook and everything is working too: https://colab.research.google.com/drive/1VPK7OcYZRQGVgC4b4RpIl0nvYJPW7o5C
Also working using the last tf-nightly
build from today.
@Pierrci I have tried your code in the colab, it works perfectly. The error might be caused by colab kernel, while after the pip installation, restart the notbook kernel then the code works.
Many thanks.
@Pierrci It looks like there's no longer that version of tf-nightly.
ERROR: Could not find a version that satisfies the requirement tf-nightly==2.1.0-dev20191128 (from versions: 2.2.0.dev20200301, 2.2.0.dev20200302, 2.2.0.dev20200303, 2.2.0.dev20200304, 2.2.0.dev20200305, 2.2.0.dev20200306, 2.2.0.dev20200307, 2.2.0.dev20200308, 2.2.0.dev20200309, 2.2.0.dev20200310, 2.2.0.dev20200311, 2.2.0.dev20200312, 2.2.0.dev20200313, 2.2.0.dev20200314, 2.2.0.dev20200315, 2.2.0.dev20200316, 2.2.0.dev20200317, 2.2.0.dev20200318, 2.2.0.dev20200319, 2.2.0.dev20200323, 2.2.0.dev20200324, 2.2.0.dev20200325, 2.2.0.dev20200327, 2.2.0.dev20200328, 2.2.0.dev20200329, 2.2.0.dev20200330, 2.2.0.dev20200331, 2.2.0.dev20200401, 2.2.0.dev20200402, 2.2.0.dev20200403, 2.2.0.dev20200404, 2.2.0.dev20200405, 2.2.0.dev20200406, 2.2.0.dev20200407, 2.2.0.dev20200408, 2.2.0.dev20200409, 2.2.0.dev20200410, 2.2.0.dev20200411, 2.2.0.dev20200412, 2.2.0.dev20200413, 2.2.0.dev20200414, 2.2.0.dev20200415, 2.2.0.dev20200416, 2.2.0.dev20200417, 2.2.0.dev20200418, 2.2.0.dev20200419, 2.2.0.dev20200420, 2.2.0.dev20200421, 2.2.0.dev20200422, 2.2.0.dev20200423, 2.2.0.dev20200424, 2.2.0.dev20200425, 2.2.0.dev20200426, 2.2.0.dev20200427, 2.2.0.dev20200428, 2.2.0.dev20200429, 2.2.0.dev20200430, 2.2.0.dev20200501, 2.2.0.dev20200502, 2.2.0.dev20200503, 2.2.0.dev20200504, 2.2.0.dev20200505, 2.2.0.dev20200506, 2.2.0.dev20200507, 2.2.0.dev20200508, 2.3.0.dev20200512, 2.3.0.dev20200513, 2.3.0.dev20200514, 2.3.0.dev20200515)
ERROR: No matching distribution found for tf-nightly==2.1.0-dev20191128
And building with TensorFlow 2.2.0-* leads me to this issue where
print(model.inputs)
print(model.outputs)
gives
None
None
!pip install tensorflow==2.1.0
works fine
I currently encountered an error when trying to use the model_generation.py script
Problem 1: If the tf.version is 1.15, following statement got error:
Problem 2: if I installed tf-nightly, instead of 1.15 tf, the version is The above statement go through, but following error shows up
Would you mind update the requirement.txt to fix the version of tf-nightly and transformers, to ensure the script could execute correctly?
Many thanks.