일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- CUDA
- windows
- ubuntu
- shakeratos
- python3
- dataset
- Deep Learning
- raspberry pi
- dlib
- YouTube 8M
- python
- 딥러닝
- download
- keras
- Jupyter notebook
- FIle
- gpu memory
- urllib
- colab
- TensorFlow
- colaboratory
- install
- object detection
- face_recognition
- linux
- Anaconda
- Windows 10
- ppc64le
- pyTorch
- error
- Today
- Total
목록python (5)
Shakerato
refer to (utahman) : https://github.com/matterport/Mask_RCNN/issues/6 pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI * When you have error on jupyter notebook, even if you already installed, You need to install on jupyter before you run the code, like this. !pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirect..
For examples, AttributeError: module 'cv2.cv2' has no attribute 'TrackerCSRT_create' AttributeError: module ‘cv2.cv2’ has no attribute ‘saliency’ ... Because the 'contrib' module is not installed. 1. run cmd or PowerShell as 'administrator'2. activate 3. pip install opencv-contrib-python Try your code again
1. Install applicationsudo apt-get install gnustep-gui-runtime 2. test tts like belowsay "hello" 3. create python code 'tts.py' import os os.system('say "hello"') 4. Run codepython tts.py
## To avoid duplicate file names problem in Windows (e.g. Ab.txt, aB.txt),## At first, I download the dataset and renamed the file names in the Linux OS.## then, I copy renamed files to my Windows desktop for training deep neural network.## Renamed dataset also works well on the YouTube-8M training code. import osimport shutil oldpath = '/data/yt8m/v2/video/'newpath = '/data/yt8m/v2/video2/' fil..
import urllib.request as urllib2import timeimport logging def fileDownload(url, file_name): logging.basicConfig(level=logging.INFO) logger = logging.getLogger('[fileDownload]') num_of_retries = 3 time_interval = 2 for retrycnt in range(num_of_retries): try: u = urllib2.urlopen(url) break except Exception as e: logger.error(' Faild to download: ' + str(e) + ', Number of remaining attempts: ' \ + ..