[solved] SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

2020. 6. 8. 02:38·🔨삽질

코드

import tensorflow as tf
tf.__version__
interpreter = tf.lite.interpreter("C:/Users/user/model.tflite")
interpreter.allocate_tensors()

 

오류 메세지

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

 

해결 방법

"C:\Users\user\model.tflite"

를

"C:/Users/user/model.tflite"

로 바꿔주면 된다.

 

\ 대신 /를 사용하면 해결된다.

'🔨삽질' 카테고리의 다른 글

[solved] 작업관리자에서 크롬 옆에 있는 숫자는 뭘까?  (0) 2020.06.09
[solved] AttributeError: module 'tensorflow._api.v2.lite' has no attribute 'interpreter'  (0) 2020.06.08
[solved] 깃허브에 잔디가 안 심어진다!  (0) 2020.05.31
[solved] build.gradle (Module: app) 이 없다!  (0) 2020.05.30
AttributeError: module 'tensorflow' has no attribute 'placeholder'  (0) 2020.05.22
'🔨삽질' 카테고리의 다른 글
  • [solved] 작업관리자에서 크롬 옆에 있는 숫자는 뭘까?
  • [solved] AttributeError: module 'tensorflow._api.v2.lite' has no attribute 'interpreter'
  • [solved] 깃허브에 잔디가 안 심어진다!
  • [solved] build.gradle (Module: app) 이 없다!
힝님
힝님
힝입니다.
  • 힝님
    컴01기
    힝님
  • 전체
    오늘
    어제
    • 분류 전체보기 (86)
      • 📰논문 리뷰 (16)
      • 🍒회고록 (4)
      • 🖤네이버 ai tech (0)
      • ✨글쓰는힝 (1)
      • 🔥데이터 분석 (3)
      • 🎲유니티 (2)
      • 🔨삽질 (10)
      • 📚 서적 리뷰 (4)
      • 🐹알고리즘 (3)
      • 😎정리하는 카테고리 (4)
      • 📝CS 공부 (6)
        • 운영체제 (1)
        • 네트워크 (4)
        • 리팩토링 (1)
      • etc (22)
        • 혼공단 (7)
        • Spring (7)
        • JS (1)
        • OpenCV (2)
        • Unity (5)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • Github
  • 공지사항

  • 인기 글

  • 태그

    혼공SQL
    github
    혼공단
    백준
    혼공머신
    혼공학습단
    회고록
    unity
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.4
힝님
[solved] SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.