AI 개념 및 구현15 맥북 M1 pro에 Tensorflow, Keras 개발 환경 세팅하기 Visual Studio Code에서 구동하였습니다. 1. Motivation 딥러닝 공부를 위해서 Tensorflow 환경을 세팅해야 했습니다. M1의 경우 anaconda에서 tensorflow, keras 지원을 안한다고 들어서 miniforge를 이용해 tensorflow, keras를 설치하였습니다. miniforge는 anaconda의 축소 버전입니다. 2. miniforge 다운로드 https://github.com/conda-forge/miniforge GitHub - conda-forge/miniforge: A conda-forge distribution. A conda-forge distribution. Contribute to conda-forge/miniforge developmen.. 2023. 10. 30. M1 Mac에서 Image data augmentation 오류 해결 Error MessageNotFoundError: No registered 'RngReadAndSkip' OpKernel for 'GPU' devices compatible with node {{node RngReadAndSkip}} . Registered: device='XLA_CPU_JIT' device='CPU' [Op:RngReadAndSkip] Solution# 텐서를 CPU에 할당with tf.device('/cpu:0'): data_augmentation = keras.Sequential( [ layers.RandomFlip("horizontal"), layers.RandomRotation(0.1), layers.R.. 2023. 10. 1. google-colab import 시 오류 해결(AttributeError: module 'IPython.utils.traitlets' has no attribute 'Unicode') Visual Studio Code에서 google-colab을 import 할 때 뜬 에러이다. 찾아보니, 일반적인 파이썬 인터프리터 환경이 아닌 ipython 환경인 jupyter notebook 또는 Colab에서 실행하면 된다고 한다. The library google-colab is not designed to run in a normal Python REPL, which means that you have to run this in an ipython environment like Jupiter notebooks or colab rather than the python interpreter directly. Reference https://github.com/tensorflow/cloud/iss.. 2023. 9. 30. 이전 1 2 3 다음