Command logging using Caffe under Docker

Source: Internet
Author: User
Tags jupyter jupyter notebook docker run

    • See all images
sudo docker images

    • Generate container
      sudo docker run-it--net=host-v/home/tingting/dropbox/code/craterdetection/docker:/root/with an image Workspace Tingting/caffe:version1 Bash

    • Open Jupyter Notebook

Jupyter Notebook

In the browser, type: localhost:8890

It is important to note that, sometimes because of the opening of multiple containers, the interface of the new container Jupyter notebook is different, before because of the thought of all the interface sinus only 8888, so the direct input of 8888, But in fact, this opens the 8888 interface corresponding to the container

    • To generate a network structure diagram for a prototxt file
#Load the moduleImportCaffeImportCaffe.drawFrom Caffe.protoImportCaffe_pb2From Google.protobufImportText_format#Set the Parametersinput_net_proto_file =‘Test_net.prototxt‘#NET Configuration Fileoutput_image_file =‘Test_net.jpg‘#The Output Imagerankdir = ' lr # net arrange Method:lr, TB, Rl# Read the netnet = Caffe_pb2.netparameter () Text_format. Merge (Open (input_net_proto_file). Read (), net) # Draw The Netprint ( drawing NET to%s '% Output_image_file) caffe.draw.draw_net_to_ File (NET, Output_image_file, Rankdir) print ( "done ...             
    • Open a running container with a new terminal

# Watch the containers which is running

sudo Dockers PS

# go into one Conainer

sudo docker exec-it Sharp_ardinghelli bash

Command logging using Caffe under Docker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.