pytorch train

2022. 4. 25. 17:04· 개발/insightface
목차
  1. References

실행하려고 하다보니 설치가 안 된 부분이 있어 설치해주고 넘어갑니다.

conda install scikit-learn

conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos

하려고 했는데.. mac os x 12.3 을 위한 거라고 하네요.

https://stackoverflow.com/questions/71174306/expected-in-usr-lib-libc-1-dylib-installing-tensorflow-on-m1-macbook-pro

 

'Expected in: /usr/lib/libc++.1.dylib': Installing Tensorflow on M1 MacBook Pro

I am trying to install Tensorflow on my MacBook Pro with the M1 chip. The operating system of my MacBook is MacOS Big Sur Version 11.0. In order to install Tensorflow to use it with Python, I have

stackoverflow.com

저는 지금

하 업데이트 하고 다시 오겠습니다.

import 가 됩니다. 다시 실행해봅니다.

disutils 관련 오류는 아래로 해결합니다.

pip install setuptools==59.5.0

 requirements.txt 에 있는 것들을 설치해줍니다.

pip install scikit-learn
pip install easydict
// onnx 설치를 위한
brew install protobuf
pip3 install onnx --no-use-pep517

onnx 설치 부분이 완료가 안되면 (xcrun 관련 에러 발생 -> os update 때문에.)

xcode-select --install

이 명령어로 해결하면 됩니다.

설치를 완료하였습니다만.. 

pip3 install opencv-python

train.py 소스 일부를 고칩니다....

 

python -u train.py --network r100 --loss arcface --dataset emore

 

References

https://github.com/deepinsight/insightface/tree/master/recognition/arcface_mxnet

 

GitHub - deepinsight/insightface: State-of-the-art 2D and 3D Face Analysis Project

State-of-the-art 2D and 3D Face Analysis Project. Contribute to deepinsight/insightface development by creating an account on GitHub.

github.com

https://webnautes.tistory.com/1639

 

MacBook M1에 Tensorflow 설치하기

MacBook M1에 Tensorflow를 설치하는 방법을 다룹니다. 참고 https://developer.apple.com/metal/tensorflow-plugin/ 최초작성 2022. 2. 4 macOS 12.0 이상에서 가능하며 글 작성 시점에서 현재 지원하지 않는 항..

webnautes.tistory.com

https://stackoverflow.com/questions/70520120/attributeerror-module-setuptools-distutils-has-no-attribute-version

 

AttributeError: module 'setuptools._distutils' has no attribute 'version'

I was trying to train a model using tensorboard. While executing, I got this error: $ python train.py Traceback (most recent call last): File "train.py", line 6, in <module> from t...

stackoverflow.com

https://www.hahwul.com/2019/11/18/how-to-fix-xcrun-error-after-macos-update/

 

Mac 업그레이드 후 개발 관련 도구 에러(xcrun: error: invalid active developer path) 해결방법(xcode-select --ins

최근에 모하비에서 카탈리나로 업그레이드 했습니다. 매번 업데이트 때마다 여러 문제가 발생하는데, 이번에도 어김없이 xcode cli 관련 이슈가 또 터지네요.. 매번 명령어 때문에 검색하기도 귀

www.hahwul.com

https://github.com/onnx/onnx/issues/3129

 

M1 arm64 release binaries · Issue #3129 · onnx/onnx

Bug Report Describe the bug ONNX fails to install on Apple M1. System information OS Platform and Distribution: macOS Big Sur 11.0.1 (20D91) ONNX version: 1.8 Python version: 3.9.2 Reproduction ins...

github.com

https://github.com/apache/incubator-mxnet/issues/18329

 

'mxnet' has no attribute 'metric' · Issue #18329 · apache/incubator-mxnet

Description On master branch, when execute the below commands, python -c "import gluoncv" or python -c "import mxnet as mx; print(mx.metric)" , an error raised with message: ...

github.com

 

728x90
반응형

'개발 > insightface' 카테고리의 다른 글

OSError: cannot open shared object file: No such file or directory  (0) 2022.05.05
docker ubuntu  (0) 2022.04.26
m1 pytorch 설치, mxnet install in mac m1  (3) 2022.04.25
insight face arc-face training - pytorch 선택  (5) 2022.04.24
  1. References
'개발/insightface' 카테고리의 다른 글
  • OSError: cannot open shared object file: No such file or directory
  • docker ubuntu
  • m1 pytorch 설치, mxnet install in mac m1
  • insight face arc-face training - pytorch 선택
내공얌냠
내공얌냠
내공냠냠
내공얌냠
내공냠냠
내공얌냠
전체
오늘
어제
  • 분류 전체보기 (254)
    • 개발 (113)
      • mediapipe (16)
      • insightface (5)
      • JongjuAR (3)
    • 자료구조 알고리즘 (79)
      • 코딩테스트 (64)
      • 이론 (15)
    • 공부 (7)
      • 단행본 (7)
      • 튜토리얼 (19)
      • 논문 (15)
      • 복기 (5)
    • 참여 (5)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

공지사항

인기 글

태그

  • python telegrambot
  • vscode 스프링 설치
  • ios google places api
  • postgresql install in mac
  • flutter conference
  • flutter
  • speaker adaptation tts
  • 플러터 튜토리얼
  • 플러터
  • mediapipe
  • 음성인식 기초
  • 컴퓨터 비전 기초
  • 음성인식 튜토리얼
  • 머신러닝이란
  • 미디어파이프
  • kubeflow설치가이드
  • 컴퓨터 비전
  • 깃 튜토리얼
  • kubeflow설치안됨
  • flutter tutorial
  • torchscript vs onnx vs tensorrt
  • flutter 행사 후기
  • 구글 미디어파이프
  • mediapipe translate
  • git tutorial
  • 딥러닝 기반 음성인식 기초
  • flutter 행사
  • google mediapipe
  • postgresql 재설치
  • 컴퓨터 비전 책 추천

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.2.2
내공얌냠
pytorch train
상단으로

티스토리툴바

단축키

내 블로그

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

블로그 게시글

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

모든 영역

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

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