대학원 공부/텐서플로

    [Tensorflow] 텐서플로우 데이터셋 불러오기 (데이터 변형 x, 전이학습)

    [Tensorflow] 텐서플로우 데이터셋 불러오기 (데이터 변형 x, 전이학습)

    https://www.tensorflow.org/datasets/catalog/overview 데이터세트 | TensorFlow Datasets Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trade www.tensorflow.org 텐서플로우 홈페이지의 있는 데이터셋을 정석적인 방법대로 코랩으로 불러와보자..

    [에러] AttributeError: 'Tensor' object has no attribute 'numpy'

    [에러] AttributeError: 'Tensor' object has no attribute 'numpy'

    (코랩 환경입니다) 코랩 환경이 아닌 상태에서 해당 에러가 뜬다면 아래 게시물을 확인하여 해결하시기 바랍니다. https://outputput.tistory.com/38 [tensorflow]AttributeError: 'Tensor' object has no attribute 'numpy' 해결 import tensorflow as tf #tf.enable_eager_execution() hello = tf.constant(10) print(hello) print(hello.numpy()) 간단한 코드인데 AttributeError: 'Tensor' object has no attribute 'numpy' 가 나오면 서 오류가 난다. 텐서 값도 출력해보면 outputput.tistory.com 나는 위..

    [에러] Please ensure this object is passed to the `custom_objects` argument.

    [에러] Please ensure this object is passed to the `custom_objects` argument.

    딥러닝 모델을 학습할 때 항상 너무 답답한건 바로 학습 속도이다. 또한 코랩을 사용하는 유저라면 학습데이터가 크거나 모델의 복잡도가 높을 수록 툭하면 램 사용량이 터져버리는 상황이 발생한다. 이런 상황을 대비하기 위해 어렵게 학습한 모델을 로컬 저장소에 저장하는 방법을 많이 쓴다. 나도 역시나 과제를 하다가 틈만 나면 코랩이 터져버리는 현상 때문에 모델을 저장하고 다음 날 모델을 불러왔는데,다음과 같은 에러가 발생하였다. Unknown metric function: psnr_metric. Please ensure this object is passed to the `custom_objects` argument. 에러문을 해석해보면, 내가 커스텀한 모델과 매트릭스를 불러 올 때, 에러가 생기는 모양이다. ..

    [Tensorflow] 텐서플로 데이터셋 불러오기

    [Tensorflow] 텐서플로 데이터셋 불러오기

    텐서플로우 공식 홈페이지에 소개되어 있는 데이터셋을 가져오는 포스팅이 많이 없기도 했고, 일반 데이터셋이랑은 다루는 방법이 많이 달라서 끄적여본다. 처음에 이런 형식의 데이터셋과 친해지는데 많이 힘들었당 ㅎ https://www.tensorflow.org/datasets/catalog/overview 데이터세트 | TensorFlow Datasets Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Goog..