The convnet filter shape in caffe is [128 64 3 3] or [out_dim, in_dim, filter_height, filter_weight]. How do I convert it to the tensorflow shape [filter_height, filter_width, in_dim, out_dim] or [3 3 64 128], to get the same results with a tensorflow model as with a caffe model.
Transfer weights from caffe to tensorflew
290 Views Asked by Tanvir At
1
There are 1 best solutions below
Related Questions in TENSORFLOW
- (Tensorflow)Does the op assign change the gradient computation?
- Tensorflow Windows Accessing Folders Denied:"NewRandomAccessFile failed to Create/Open: Access is denied. ; Input/output error"
- Android App TensorFlow Google Cloud ML
- Convert Tensorflow model to Caffe model
- Google Tensorflow LSTMCell Variables Mapping to Hochreiter97_lstm.pdf paper
- additive Gaussian noise in Tensorflow
- TFlearn evaluate method results meaning
- Regularization losses Tensorflow - TRAINABLE_VARIABLES to Tensor Array
- feed picture to model tensorflow for training
- Fail to read the new format of tensorflow checkpoint?
- I got a error when running a github project in tensorflow
- Tensorflow R0.12 softmax_cross_entropy_with_logits ASSERT Error
- RuntimeError in run_one_batch of TensorFlowDataFrame in tensorflow
- Same output in neural network for each input after training
- ConvNet : Validation Loss not strongly decreasing but accuracy is improving
Related Questions in CAFFE
- Python interface of Caffe: Error in "import caffe"
- compiling caffe on Yosemite
- [Caffe]: Check failed: ShapeEquals(proto) shape mismatch (reshape not set)
- Caffe layer registry error
- Error in creating LMDB database file in Python for Caffe
- Caffe net.predict() outputs random results (GoogleNet)
- How to convert Mat from opencv to caffe format
- How to create an caffemodel file from training image and its labeled?
- Error when using classify in caffe
- Two errors while running Caffe
- How to speed up caffe classifer in python
- installing caffe cmake error
- Error while installing deepdish
- Caffe Framework Runtest Core dumped error
- Generate caffemodel file
Related Questions in CONV-NEURAL-NETWORK
- Using Convolution Neural Net with Lasagne in Python error
- How to prepare data for torch7 deep learning convolutional neural network example?
- additive Gaussian noise in Tensorflow
- Same output in neural network for each input after training
- ConvNet : Validation Loss not strongly decreasing but accuracy is improving
- Tensor flow affecting multiprocessing/threading
- Inceptionv3 Transfer Learning on Torch
- Transfer weights from caffe to tensorflew
- Lasagne NN strange behavior with accuracy and weight convergence
- Multiple outputs in Keras gives value error
- How to use feature maps of CNN to localize obect on the image?
- Why Validation Error Rate remain same value?
- How to create LMDB files for semantic segmentation?
- Training model to recognize one specific object (or scene)
- Restoring saved TensorFlow model to evaluate on test set
Related Questions in PYCAFFE
- Transfer weights from caffe to tensorflew
- How does Caffe determine test set accuracy?
- How to set the bias_term false in a convolutional layer pycaffe?
- How did you run FCN code semantic segmentation?
- Is it possible to forward the output of a deep-learning network to another network with caffe / pycaffe?
- How to create LMDB files for semantic segmentation?
- Issues during 'make pycaffe' on OSX
- How to change between GPU mode and CPU mode in caffe?
- caffe / unet: Could not compute map between tops; are they connected by spatial layers?
- Do I have to use a Scale-Layer after every BatchNorm Layer?
- Faster-RCNN bbox/image normalization
- He-initialization for Caffe?
- I am getting error with caffe.io.array_to_datum() for single channel images, how to solve?
- Do I have to transpose my gray scale image while creating LMDB database?
- Error using Caffe: "This tool requires OpenCV; compile with USE_OPENCV."
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think you can simply use
numpyto resize the array to the dimension that you wish to transform it to. And then just pass it totensorflowcomputation graph as usual.For your case, you can use:
Example: