You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 2018-11-14 Stable flight has been achieved with Neuroflight [https://youtu.be/c3aDDPasjjQ](https://youtu.be/c3aDDPasjjQ)
33
36
34
37
## Features
@@ -51,17 +54,36 @@ Input (x) is of size 6, where x = [roll error, pitch error, yaw error, delta rol
51
54
52
55
### Pre-requites
53
56
54
-
1) Use [GymFC](https://github.com/wil3/gymfc) to train and create a neural network in the
57
+
1)**Build Model**Use [GymFC](https://github.com/wil3/gymfc) to train and create a neural network in the
55
58
form of a Tensorflow checkpoint.
56
59
57
-
2)Place the checkpoint files (four of them: checkpoint, \*.data, \*.meta,
60
+
Place the generated checkpoint files (four of them: checkpoint, \*.data, \*.meta,
58
61
\*.index-\*) in a directory which can be independently version
59
62
controlled.
60
63
61
-
3)Create a file called `tf2xla.config.pbtxt` in the directory and define the
64
+
Create a file called `tf2xla.config.pbtxt` in the directory and define the
62
65
neural network configuration according to [https://www.tensorflow.org/xla/tfcompile](https://www.tensorflow.org/xla/tfcompile).
66
+
For example if building with OpenAI baselines PPO1 with angular rate error, and
67
+
delta angular rate error as input ,
68
+
```
69
+
feed {
70
+
id { node_name: "pi/ob" }
71
+
shape {
72
+
dim { size: 1}
73
+
dim { size: 6}
74
+
}
75
+
}
76
+
fetch {
77
+
id { node_name: "pi/pol/final/BiasAdd"}
78
+
}
63
79
64
-
4) Neuroflight was developed using [Tensorflow-1.8.0](https://github.com/tensorflow/tensorflow/releases/tag/v1.8.0).
80
+
```
81
+
82
+
2)**Install Tensorflow** Update: A patched version of Tensorflow is now
83
+
available [here](https://github.com/wil3/tensorflow-neuroflight). If you'd like
84
+
to patch your own copy of Tensorflow continue reading,
85
+
86
+
Neuroflight was developed using [Tensorflow-1.8.0](https://github.com/tensorflow/tensorflow/releases/tag/v1.8.0).
65
87
There appears to be a bug/issue in Tensorflow-1.8.0-rc1 preventing the ABI type from being passed to tfcompile used to compile the neural network. A quick hack to force the correct ABIType is to modify compiler/xla/service/llvm_ir/llvm_util.cc. At the end of the
0 commit comments