How to apply a pre-trained model of 3 channel images on single channel images?


I tried to used a pre-trained model that already was trained on three-channel color images, however, I am getting an error because of shape difference. Could someone let me know how can I tackle this issue? One user had suggested using Tile layer, but I could not find any relevant document/help for using this layer or any other solution. I really appreciate your help.


There is not much information in caffe.proto about tile layer. If you look at the code it just copies data tiles times for each outer dimension. For your case it should be:

layer{ name: "tile" type: "Tile" bottom: "bottom-blob" top: "top-blob" tiling_param { // axis is 1 by default tiles: 3 } }


  • Most efficient way to cater for different web devices?
  • Drawing Isometric Tilemaps
  • How to cast UInt to SInt value in Chisel3?
  • OpenLayers: How to re-align mouse coordinates and vector layers after fluid css rendering of map div
  • How do you increment a count while using the sleep function?
  • MySQL Spatial - Convert from SRID 31287 to 4326
  • Keep track of the program variables in Haskell like imperative programs
  • Recreate Apple Watch fitness tracker ‘progress’ bar - gradient on CAShapeLayer stroke
  • Drag and reorder - UICollectionview with sections
  • Thrust filter by key value
  • 'Enemy' was not declared in this scope?
  • Criterion causing memory consumption to explode, no CAFs in sight
  • Why must we declare a variable name when adding a method to a struct in Golang?
  • Python ImageIO Gif Set Delay Between Frames
  • Stop Bash Script if Hive Fails
  • Textfile Structure (tables)
  • How do I get HTML corresponding to current DOM tree?
  • How to define and use opencv mat of user type
  • JQuery Internet Explorer and ajaxstop
  • JSON response opens as a file, but I can't access it with JavaScript
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Display issues when we change from one jquery mobile page to another in firefox
  • Different response to non-authenticated users and AJAX calls
  • req.body is undefined - nodejs
  • Excel - Autoshape get it's name from cell (value)
  • Check if a string to interpolate provides expected placeholders
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • Change an a tag attribute in JavaScript based on screen width
  • RestKit - RKRequestDelegate does not exist
  • Traverse Array and Display in markup
  • Data Validation Drop Down Box Arrow Disappearing
  • log4net write single file for each call to log.info
  • Authorize attributes not working in MVC 4
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • Busy indicator not showing up in wpf window [duplicate]
  • How can i traverse a binary tree from right to left in java?
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF