I am able to start training, it can send name and devolve also "dummy" and after that an error message appears on Mobile "Error" and also on Server, as you can observe below.
faceswap-admin@faceswap-server-debug:~/FaceSwap-server$ ./start_demo.sh
sourcing torch:
/home/faceswap-admin/torch/install/bin/torch-activate
launching FaceSwap server at dir /home/faceswap-admin/FaceSwap-server
INFO Start RESTful API Server (port :8021)
INFO Start UPnP Server
INFO Start monitoring offload engines
INFO * Mobile server() configuration
INFO - Open TCP Server at ('0.0.0.0', 9098)
INFO - Disable nagle (No TCP delay) : 1
INFO --------------------------------------------------
INFO * Mobile server() configuration
INFO - Open TCP Server at ('0.0.0.0', 9099)
INFO - Disable nagle (No TCP delay) : 1
INFO --------------------------------------------------
INFO * Mobile server() configuration
INFO - Open TCP Server at ('0.0.0.0', 9101)
INFO - Disable nagle (No TCP delay) : 1
INFO --------------------------------------------------
INFO * Application server() configuration
INFO - Open TCP Server at ('0.0.0.0', 10101)
INFO - Disable nagle (No TCP delay) : 1
INFO --------------------------------------------------
INFO * Application server() configuration
INFO - Open TCP Server at ('0.0.0.0', 10102)
INFO - Disable nagle (No TCP delay) : 1
INFO --------------------------------------------------
INFO * UComm server configuration
INFO - Open TCP Server at ('0.0.0.0', 9090)
INFO - Disable nagle (No TCP delay) : 1
INFO --------------------------------------------------
[Error] REST API Server is closed unexpectedly
INFO Google Glass is connected for (Mobile Video Server)
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Google Glass is connected for (Mobile Video Server)
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
{u'objects': {u'acc_tcp_streaming_address': u'10.11.12.61', u'video_tcp_streaming_port': 10101, u'result_return_server_list': [u'10.11.12.61:10120'], u'ucomm_data_address': u'10.11.12.61', u'ucomm_data_port': 9090, u'acc_tcp_streaming_port': 10102, u'video_tcp_streaming_address': u'10.11.12.61'}, u'return': u'success'}
INFO Gabriel Server :
INFO {u'acc_tcp_streaming_address': u'10.11.12.61',
u'acc_tcp_streaming_port': 10102,
u'result_return_server_list': [u'10.11.12.61:10120'],
u'ucomm_data_address': u'10.11.12.61',
u'ucomm_data_port': 9090,
u'video_tcp_streaming_address': u'10.11.12.61',
u'video_tcp_streaming_port': 10101}
INFO connecting to 10.11.12.61:9090
INFO User communication module is connected
INFO * UCOMM server configuration
INFO - Open TCP Server at ('0.0.0.0', 10120)
INFO - Disable nagle (No TCP delay) : 1
INFO --------------------------------------------------
INFO Start forwarding data
INFO Google Glass is connected for (Mobile Video Server)
2018-01-29 23:07:18+0000 [-] Log opened.
2018-01-29 23:07:18+0000 [-] Traceback (most recent call last):
2018-01-29 23:07:18+0000 [-] File "/home/faceswap-admin/FaceSwap-server/openface-server/cloudlet-demo-openface-server.py", line 595, in
2018-01-29 23:07:18+0000 [-] reactor.listenTCP(args.port, factory)
2018-01-29 23:07:18+0000 [-] File "/usr/local/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 492, in listenTCP
2018-01-29 23:07:18+0000 [-] p.startListening()
2018-01-29 23:07:18+0000 [-] File "/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 984, in startListening
2018-01-29 23:07:18+0000 [-] raise CannotListenError(self.interface, self.port, le)
2018-01-29 23:07:18+0000 [-] twisted.internet.error.CannotListenError: Couldn't listen on any:9000: [Errno 98] Address already in use.
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
checking openface server status:
1
openface server has not finished starting. wait for another 20 seconds...
checking openface server status:
2
openface server has not finished starting. wait for another 20 seconds...
INFO Google Glass is connected for (Mobile Video Server)
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Google Glass is connected for (Mobile Video Server)
checking openface server status:
3
openface server has not finished starting. wait for another 20 seconds...
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Offloading engine is connected
INFO new Offlaoding Engine is connected
INFO Google Glass is connected for (Mobile Video Server)
checking openface server status:
4
openface server has not finished starting. wait for another 20 seconds...
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Google Glass is connected for (Mobile Video Server)
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
checking openface server status:
5
openface server has not finished starting. wait for another 20 seconds...
2018-01-29 23:09:07,828 INFO MainProcess resp: {"type": "GET_TRAINING_RESP", "val": false}
2018-01-29 23:09:07,829 INFO MainProcess openface is training?False
Discovery Control VM
INFO Gabriel Server :
INFO {u'acc_tcp_streaming_address': u'10.11.12.61',
u'acc_tcp_streaming_port': 10102,
u'result_return_server_list': [u'10.11.12.61:10120'],
u'ucomm_data_address': u'10.11.12.61',
u'ucomm_data_port': 9090,
u'video_tcp_streaming_address': u'10.11.12.61',
u'video_tcp_streaming_port': 10101}
TOKEN SIZE OF OFFLOADING ENGINE: 1
INFO Success to connect to (u'10.11.12.61', 10101)
[INFO/DetectionProcess] child process calling self.run()
2018-01-29 23:09:07,847 INFO DetectionProcess created
INFO Offloading engine is connected
INFO Start getting data from the server
INFO Start publishing data
INFO new Offlaoding Engine is connected
[INFO/receive_thread] child process calling self.run()
INFO Google Glass is connected for (Mobile Video Server)
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Google Glass is connected for (Mobile Video Server)
INFO New connection is starting at 1517267366.198832
adding person
training_cnt :0
INFO returning result: {"training": "trt", "engine_id": "dummy"
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Google Glass is connected for (Mobile Video Server)
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Google Glass is connected for (Mobile Video Server)
INFO New connection is starting at 1517267397.277692
adding person
training_cnt :0
INFO returning result: {"training": "joke", "engine_id": "dummy
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Google Glass is connected for (Mobile Video Server)
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
INFO Google Glass is connected for (Mobile Video Server)
INFO New connection is starting at 1517267433.212038
adding person
training_cnt :0
INFO returning result: {"training": "tab", "engine_id": "dummy"
INFO Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 98, in handle
self.handleinput_data()
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 134, in handleinput_data
header_size = struct.unpack("!I", self.recvall(4))[0]
File "/usr/local/lib/python2.7/dist-packages/gabriel/control/mobile_server.py", line 71, in recvall
raise MobileCommError("Recv 0 data at %s" % str(self))
MobileCommError: Recv 0 data at Mobile Video Server
INFO Mobile Video Server terminate thread
^C[INFO/DetectionProcess] process shutting down
[INFO/receive_thread] process shutting down
Process receive_thread:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
[INFO/DetectionProcess] calling join() for process receive_thread
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self.target(*self.args, **self._kwargs)
File "/home/faceswap-admin/FaceSwap-server/openfaceClient.py", line 165, in async_on_receive
inputready,outputready,exceptready = select.select(input,[],[])
KeyboardInterrupt
[INFO/receive_thread] process exiting with exitcode 1
Process DetectionProcess:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self.target(*self.args, **self._kwargs)
File "/home/faceswap-admin/FaceSwap-server/face_swap.py", line 417, in detection_update_thread
frame = img_queue.get(timeout=1)
File "/usr/lib/python2.7/multiprocessing/queues.py", line 131, in get
if timeout < 0 or not self._poll(timeout):
KeyboardInterrupt
[INFO/DetectionProcess] process exiting with exitcode 1
user exits
2018-01-29 23:23:12,097 INFO MainProcess detection process shutdown!
2018-01-29 23:23:12,099 INFO MainProcess sync faces thread shutdown!
INFO App thread terminated
INFO Streaming thread terminated
INFO terminate thread
INFO Publish thread terminated
[INFO/MainProcess] process shutting down
DEBUG Socket is closed
INFO Offloading engine is disconnected
INFO <main.UCommServerHandler object at 0x7fe36784d890> terminate thread
faceswap-admin@faceswap-server-debug:~/FaceSwap-server$
Please, it would be great to finish testing that part.
Thanks for your estimated help.
In Android side, I have tryed with 2 Android Mobile Smartphones: Samsung S8 (Android 7) and Benq Aquaris M5 (Android 6), and it seems that Bq Aquaris M5 have better results because it is possible to see on server that "dummy" is devolved, maybe Android version is important.
I tryed many times to make training with different names and result is ever the same error window.
Then it came back to general page and try to connect to server again.
If you want to have a quick test of whether your image stream transmission is working fine, you can run another cognitive engine by
This cognitive engine sets up an HTTP server to publish the received images. If all properly set, you should now be able to see the camera images from mobile devices by connecting to http://gabriel_ip:7070/index.html using your browser.
I have tryed it and it is working, I am able to see what the mobile device is displaying.
Thanks for your estimated help.