How to resolve my problem in Pycharm? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to resolve my problem in Pycharm? (/thread-38293.html) |
How to resolve my problem in Pycharm? - bshoushtarian - Sep-26-2022 Hi, I'm using Pycharm to classify images of Clothing based on the following link: https://colab.research.google.com/github/tensorflow/examples/blob/master/courses/udacity_intro_to_tensorflow_for_deep_learning/l03c01_classifying_images_of_clothing.ipynb when I run the code in Colab, there is no problem. I have installed all required packages for running the code in Pycharm. However, Pycharm produces an input/output error for line 12 below (there is no GPU on my desktop): 1 import tensorflow as tf 2 3 # Import TensorFlow Datasets 4 import tensorflow_datasets as tfds 5 tfds.disable_progress_bar() 6 7 # Helper libraries 8 import math 9 import numpy as np 10 import matplotlib.pyplot as plt 11 12 dataset, metadata = tfds.load('fashion_mnist', as_supervised=True, with_info=True) 13 train_dataset, test_dataset = dataset['train'], dataset['test'] Traceback (most recent call last): File "H:/PyCharm_Projects1/J1/P1.py", line 12, in <module> dataset, metadata = tfds.load('fashion_mnist', as_supervised=True, with_info=True) File "H:\J1\lib\site-packages\tensorflow_datasets\core\load.py", line 327, in load dbuilder.download_and_prepare(**download_and_prepare_kwargs) File "H:\J1\lib\site-packages\tensorflow_datasets\core\dataset_builder.py", line 494, in download_and_prepare self.info.update_data_dir(self._data_dir) File "J:\Python 3_8_8\lib\contextlib.py", line 120, in __exit__ next(self.gen) File "H:\J1\lib\site-packages\tensorflow_datasets\core\utils\py_utils.py", line 325, in incomplete_dir tf.io.gfile.rename(tmp_dir, dirname) File "H:\J1\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 620, in rename_v2 _pywrap_file_io.RenameFile( tensorflow.python.framework.errors_impl.UnknownError: Failed to rename: ~\tensorflow_datasets\fashion_mnist\3.0.1.incompleteDE8LGI to: ~\tensorflow_datasets\fashion_mnist\3.0.1 : Access is denied. ; Input/output error Process finished with exit code 1 How can I resolve this problem so that I get the Colab's results in Pycharm? Thank you very much for your sincere help and attention. Bijan |