dragen1860 / TensorFlow-2.x-Tutorials

TensorFlow 2.x version's Tutorials and Examples, including CNN, RNN, GAN, Auto-Encoders, FasterRCNN, GPT, BERT examples, etc. TF 2.0版入门实例代码,实战教程。
6.37k stars 2.23k forks source link

Error in ColorBot #8

Closed maggiezha closed 5 years ago

maggiezha commented 5 years ago

I got this error when I run: python main.py Traceback (most recent call last): File "main.py", line 121, in main() File "main.py", line 69, in main data_dir=data_dir, url=SOURCE_TRAIN_URL, batch_size=batchsz) File "/home/maggie/TensorFlow-2.x-Tutorials/lesson19-ColorBot/utils.py", line 53, in load_dataset path = maybe_download(os.path.basename(url), data_dir, url) File "/home/maggie/TensorFlow-2.x-Tutorials/lesson19-ColorBot/utils.py", line 40, in maybe_download temp_filename, = urllib.request.urlretrieve(source_url) AttributeError: 'module' object has no attribute 'request'

dragen1860 commented 5 years ago

use python 3.7.