Regarding caffe caffe.paramspec has no parameter named compression - deep-learning

I was trying to run a customized model on caffe.Unfortunately,I was only provided with a trainval.prototxt and trainval.caffemodel.
The exact error is as follows
Error parsing text-format caffe.NetParameter: 54:17: Message type “caffe.ParamSpec has no field named compression
This is followed by
[upgrade_proto.cpp :79] check failed read protofromtextfile failed to parse param file
A similar question was asked here.
So should I assume that my version of caffe that I have on my system was different from the client's version of caffe and apparently the client version of caffe has a slightly different proto definition??

Related

SSIS Issue Pulling Data From Snowflake - [CData Snowflake Source] Error: Get data error: Received metadata with an incompatible version number

I'm trying to run a simple data flow task in SSIS pulling data from Snowflake to SQL Server using a component from CDATA called Snowflake Source.
Connection works and I can also see a preview of the data but when actually running the package I get the following error message:
[CData Snowflake Source [2]] Error: System.Exception: Get data error: Received metadata with an incompatible version number
at CData.SSIS.Snowflake.SSISSourceComponent.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)
Has anyone experienced this before or know what to do in order to fix it?
Hi I faced this error many time , when i use some custom script component or third party component.
Issue : We do remove or delete some component but some of the reference is not removed from package (it is very tough to debug )
Create fresh package it will work .

Error after predicting using CNN model loaded from disk

I loaded my CNN model using
model = load_model('./model/model.h5')
This model loads well ( Though I do get warning messages: "Call initializer instance with the dtype argument instead of passing it to the constructor" )
However, when I try to predict using this model, I get the following error:
UnknownError: 2 root error(s) found.
(0) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node conv2d/Conv2D}}]]
[[dense_2/Softmax/_273]]
(1) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node conv2d/Conv2D}}]]
0 successful operations.
0 derived errors ignored
Any idea how to overcome this issue?
Apparently, I just didn't have CUDA installed on my system. Did that and now it's working!

ValueError: Unknown initializer: GlorotUniform

Recently I've trained a model using MNIST dataset in Google colab. I've saved the weights using Model.save('model.h5').
I've downloaded the weights and tried to run in other code by loading weights offline in anaconda Model = Keras.models.load_model('model.h5).
But it throws
ValueError: Unknown initializer: GlorotUniform
The issue could be because you're using tf.keras and keras in a mixed way. There could also be a version mismatch between local and remote keras versions. Do check this discussion on stackoverflow.

Lda using mallet

I run the file simple lda.java and I got
exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at cc.mallet.topics.SimpleLDA.main(SimpleLDA.java:560)
It looks like you are using the command line interface without any parameters.
If you look at the source file at https://github.com/mimno/Mallet/blob/master/src/cc/mallet/topics/SimpleLDA.java, you can see that line 560 is expecting to find that there is a command line argument specifying a file at the first position in the arguments array.
If you need to train a topic model from the command line, there is information here: http://mallet.cs.umass.edu/topics.php
The interface you are using is intended as a base for constructing new, custom topic models in Java. Without significant programming experience in Java this will be frustrating and unlikely to succeed.

Message type "caffe.LayerParameter" has no field named "input_param"

I downloaded the latest caffe library today and build.
Tested the library in python to run through a classification program in Python.
In parsing the prototxt file, I have the error as Message type "caffe.LayerParameter" has no field named "input_param".
The error happened at net = caffe.Net(model_def, model_weights, caffe.TEST) .
.model_def = caffe_root + 'models/bvlc_reference_caffenet/deploy.prototxt'
model_weights = caffe_root + 'models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel'
net = caffe.Net(model_def, # defines the structure of the model
model_weights, # contains the trained weights
caffe.TEST) # use test mode (e.g., don't perform dropout)
According to the discussion here, the error is because of not using latest build.
For me I used the latest build. How to fix the issue.