개발로 하는 개발

General Virtual Sketching Framework for Vector Line Art 코드 돌리기 - 환경 설정 본문

Projects/Capstone

General Virtual Sketching Framework for Vector Line Art 코드 돌리기 - 환경 설정

jiwon152 2023. 9. 18. 12:48
Tensorflow==1.15
opencv-python==3.4.2.*
pillow==6.2.0
scipy==1.5.2
gizeh==0.1.11

After python version 3.7, tensorflow 1.5 wasn't supported, so we are going to make a venv with python 3.7 version first.

python -m venv virtualSketch

 

source virtualSketch(venv_name)/bin/activate
#check the python version
python --version

venv activate 하기 -> 앞에 (환경 이름) 붙게 됨

python version 확인하기

deactivate

나중에 비활성화할 때

 

지금은 venv 활성화 한 상태에서

pip install -r requirements.txt

finished

 

 

 

 

 

 

 

 

 

 

 

 

 

tensorflow

SYSTEM_VERSION_COMPAT=0 pip install tensorflow-macos tensorflow-metal

 

 

Releases

Become a Member Stay up to date on OpenCV and Computer Vision news Join our Newsletter  

opencv.org

 

 


However, tensorflow for apple silicon is not supported due to requirements. So, I would not be able to train this on my mac. I hope to find some desktops or cloud GPUs that are compatible with python 3.7 and tensorflow-gpu.

https://developer.apple.com/metal/tensorflow-plugin/

 

Tensorflow Plugin - Metal - Apple Developer

Accelerate the training of machine learning models with TensorFlow right on your Mac.

developer.apple.com