tangtheduy / se06-13.1

Nhận dạng khuôn mặt và xử lý thành cartoon, áp các filter như tiktok. (đề tài mới do anh Hào hướng dẫn)
3 stars 1 forks source link

Các lệnh cần cài đặt #20

Open leminhdung2701 opened 2 years ago

leminhdung2701 commented 2 years ago

Ae add vào các lệnh mik cài môi trương để sau xem lại cho dễ

vanh1512 commented 2 years ago
  1. Các lệnh cài môi trường
    • python 3.6 : sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3.6
    • Môi trường ảo : sudo apt-get update sudo apt-get install python3-virtualenv virtualenv -p /usr/bin/python3.6 venv
    • Kích hoạt môi trường ảo : source venv/bin/activate
  2. Các thư viện cần cài đặt
    • pip install tensorflow-gpu==1.15
    • pip install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
    • pip install cmake
    • pip install dlib -vvv
    • pip install matplotlib
    • pip install scipy
    • pip install requests
vanh1512 commented 2 years ago

Flask : tham khảo ở trang web : https://vsudo.net/blog/flask-ubuntu.html

leminhdung2701 commented 2 years ago

tôi thấy lệnh dlib vẫn còn lỗi đấy

vanh1512 commented 2 years ago

bạn chạy thử lệnh sudo apt-get install python3.6-dev rồi cài dlib

tangtheduy commented 2 years ago

sudo apt-get install python3.6-dev bổ sung lệnh này khi cài python3.6 nữa

tangtheduy commented 2 years ago

Bổ sung lệnh sudo apt install build-essential. Để chạy dlib không bị lỗi