-
Notifications
You must be signed in to change notification settings - Fork 0
/
ObjDetectionAPI.txt
52 lines (25 loc) · 1.4 KB
/
ObjDetectionAPI.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#### tf-gpu installation tutorial #####
https://www.youtube.com/watch?v=KZFn0dvPZUQ
####################################obj detection api###################################
###protoc compilations
for /f %i in ('dir /b object_detection\protos\*.proto') do C:\Users\GELab\Documents\Development\SmartTableObjClassification\protoc-3.7.1-win32\bin\protoc object_detection\protos\%i --python_out=.
###Cause of this error is installing object_detection library, So one of the solution which can work is running the below command inside models/research
python setup.py install
### create an environmnet and install tensorflow with pip and not anaconda
##### run spyder in specific environment####
activate myenv
(myenv) conda install spyder
### install jupyter notebook kernel for specific environment
conda install jupyter
## and then register the kernel
python -m ipykernel install --user --name object_detection(your env) --display-name "Python (object_detection)"
###check gpu version of tensorflow in python
import tensorflow as tf
if tf.test.gpu_device_name():
print('Default GPU Device: {}'.format(tf.test.gpu_device_name()))
else:
print("Please install GPU version of TF")
##command for installation of tf_gpu
pip install --ignore-installed --upgrade tensorflow-gpu
### needed packages
conda install pillow, lxml, jupyter, matplotlib, opencv