Semantic Segmentation Learning Notes (IV.)--enet training problems

Source: Internet
Author: User

According to enet instructions Https://github.com/TimoSaemann/ENet/tree/master/Tutorial, training encountered the following problems

1 No module named Spatial_dropout

Enet through the Python interface to define a new layer spatial_dropout, according to the instructions to start training in the terminal, "No module named Spatial_dropout", because the Caffe,python layer is located in the folder path, Not added to the system Pythonpath, one workaround is to start the training with the Python interface:

Import sys  
caffe_root = ' home/f/caffe/'  
sys.path.insert (0,caffe_root+ ' python ')  

import Caffe
Caffe.set_device (0)
Caffe.set_mode_gpu ()
solver = Caffe. Sgdsolver ('/home/xxx/data/solver.prototxt ')
solver.solve ()

2 Drop1_0_3 when new, Img_height = = Height validation failed

The data layer of the New_height new_weight can not be deleted, according to the input image set size can be.

Layer {
  name: ' Data '
  type: ' Denseimagedata ' top
  : ' Data ' top
  : ' label '
  dense_image_data_param {
    Source: "Enet/dataset/train_fine_2columns.txt"
    batch_size:4
    shuffle:true
    new_height:512
    new_width:1024
    label_divide_factor:8
  }
}


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.