To ssh into container:
docker exec -it <container id> /bin/bashRemove all old images:
| from imageai.Detection import ObjectDetection | |
| import os | |
| execution_path = os.getcwd() | |
| detector = ObjectDetection() | |
| detector.setModelTypeAsRetinaNet() | |
| detector.setModelPath( os.path.join(execution_path , "resnet50_coco_best_v2.1.0.h5")) | |
| detector.loadModel() | |
| detections = detector.detectObjectsFromImage(input_image=os.path.join(execution_path , "image.jpg"), output_image_path=os.path.join(execution_path , "imagenew.jpg")) |
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"Thx to crxviewer for the magic download URL.
| <script src="jquery-1.6.1.min.js"></script> | |
| <script src="socket.io/socket.io.js"></script> | |
| <script> | |
| var socket = new io.Socket(null,{port:8080}); | |
| socket.connect(); | |
| socket.on('message',function(obj){ | |
| switch(obj.tipo){ | |
| case 'imagen': | |
| img = document.getElementById('stream'); | |
| img.src=""; |
| -- Retrieve descendants | |
| -- ==================== | |
| -- retrieve descendants of #4 | |
| SELECT c.* | |
| FROM Comments AS c | |
| JOIN TreePaths AS t ON c.comment_id = t.descendant | |
| WHERE t.ancestor = 4; | |
| -- Retrieve ancestors |