Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Haiping
@Oceania2018
@uzfm @vshakhlin Just upgrade to v0.3.1 https://www.nuget.org/packages/SciSharp.Models.ImageClassification/0.3.1, it will resolve the prediction issue.
uzfm
@uzfm

@uzfm @vshakhlin Just upgrade to v0.3.1 https://www.nuget.org/packages/SciSharp.Models.ImageClassification/0.3.1, it will resolve the prediction issue.

Thank you very much!!! works great.
Is it possible to see the result of the prediction for all classes?

Vitaliy Shakhlin
@vshakhlin
@Oceania2018 this screen demonstrate difference your current code on the left I add on the right my changes
image.png
Haiping
@Oceania2018
@uzfm You can input multiple images at one time.
@vshakhlin You're correct, do you mind PR your fix?
1 reply
Haiping
@Oceania2018
@vshakhlin The fix is working great.
Zulfadhli
@ampangboy
Hi, I have a problem with using np.where or condition operator using numpy.net. Seems like numpy net doesn't implement operator but looking resources online, its looks like it have been implemented. Is there any troubleshooting guide?
it says Operator '!=' cannot be applied to operands of type 'NDarray' and 'int'
dss
@digital-synapse
Really love the project and what you all are trying to do but it looks like there are still some gaps in support / implementation. Any guesses when we will see a 1.0 release? Would love to be able to use tensorflow.net in production environments!
Haiping
@Oceania2018
@digital-synapse Next release will be v0.70.x aligned with tensorflow v2.7.0 & keras v2.7.0.
After that we're planning to release v1.0, it's usable in production in terms of architectual. Acutally it's already stable although there are many APIs/ NumPy not implemented, those missing stuff will be added gradually.
@digital-synapse Thanks for your fixing PR.
dss
@digital-synapse
Thanks hailing. Glad to help. Any tips for getting 100% core utilization when using the CPU backend?
Franck Malka
@franckm:matrix.org
[m]
Hi does any know if it is possible to recognize keywords from audio streams using tensorflow.net?
Haiping
@Oceania2018
Franck Malka
@franckm:matrix.org
[m]
Yes, i saw that. I am looking for the equivalent in tensorflow.NET
am new to this
Franck Malka
@franckm:matrix.org
[m]
or some guide that maps the terms from python to .net
Haiping
@Oceania2018
@franckm:matrix.org Just use the almost same syntax to translate.
Or you can use https://www.bountysource.com/ to ask someone else to help.
Sam Luedtke
@thislookshard
Has anyone been able to figure out a workaround for loading HDF5 (.h5) Keras models and using them for prediction? It's crucial to my project that these models can be imported directly without having to rebuild them every time, but there still doesn't seem to be a keras.models.load_model() implementation that returns a usable model yet.
Haiping
@Oceania2018
@thislookshard You just need to build once and load_weights. build model is not time cosuming.
Zulfadhli
@pallynor:matrix.org
[m]
hey.. any body experience memory leak in numpy.net?
uzfm
@uzfm
Hello.If I want to make a prediction two different models I receive error. Everything is going for the first time good. In second time I get error on the first model.
Haiping
@Oceania2018
@uzfm Are you using the latest version?
uzfm
@uzfm
ver. 0.3.1
Haiping
@Oceania2018
I'm saying the tf .net version.
uzfm
@uzfm
Tf 1.15.1
Haiping
@Oceania2018
As I know the latest version fixed the issue.
uzfm
@uzfm
image.png
image.png
Haiping
@Oceania2018
Try to upgrade ImageClassfication to v0.4.0
uzfm
@uzfm
Update 0.4.0 did not help
"task[ID]" is a new model.
I want to make simultaneous predictions on two different models.
Haiping
@Oceania2018
Can you raise a issue in our issue page?
uzfm
@uzfm
can you give a link please?
rdthree
@rdthree
Hi, I have a question on NumSharp. I'm trying to get started and learn the API a bit. The DocFX documents search feature doesn't seem to work though.
so as far as a guide of sorts, this is all I've found: https://3rdman.de/2020/08/numsharp-cheat-sheet/
is there anything else out there in terms of examples, guides, tutorials?
rdthree
@rdthree
(sorry mean to say that the search doesn't go as deep as I'd like)
rdthree
@rdthree
hi again, just following on my own question here. it looks like much of the docs Numpy.NET, also applies to NumSharp. For example, the suggestion to reshape a 1D array, and then just trial and error with numpy methods.

for example
input

using NumSharp;
var m = np.array(new double[]{1,2,3,4,5}).reshape(5,1);
m.ToString().Display();

var n = np.array(new double[,]{{1},{2},{3},{4},{5}});
n.ToString().Display();

output

[[1], 
[2], 
[3], 
[4], 
[5]]

[[1], 
[2], 
[3], 
[4], 
[5]]
rdthree
@rdthree
another one...
//this only works with a [,] array, a [] array doesn't have axes to swap
//benefit here is not having to type the size of elements in the reshape
var o = np.array(new double[,]{{1,2,3,4,5}}).swapaxes(0,1);
o.ToString().Display();
[[1], 
[2], 
[3], 
[4], 
[5]]
Vincent B.
@evilz
Hello, I'm a big noob on this lib.
I'm looking for somethig to do the same that
form sklearn.datasets import make_blobs
X, y make_blobs(n_samples=100, n_features=2, centers=2, random_state=0)
napgab
@napgab

Hi, i am trying to translate this model to sci-sharp:

model = Sequential()
model.add(Dense(512, input_shape=(1000,), activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(512, activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(num_classes))
model.add(Activation('softmax'))

Anyone can help me to find how to add the last activation layer? Cannot find it under keras.layers.

Larry Jones
@mrwizard82d1
Anyone interested in / thinking about porting PyMC?
Chad Williamson
@yellowfever13
Hello. Using SciSharp.TensorFlow.Redist-Windows-GPU (2.7.0) - is this compatible with CUDA 11.6? Not sure how to test if TF is using GPU, just getting started.
Chad Williamson
@yellowfever13
Interwebs say to use tf.test.xxxx to see GPU support, but the test namespace does not exist
Sean Hankins
@scarabdesign
I'm trying to convert this python script to Numpy.NET, but it seems to be giving me mass arrays of NaNs. Has anyone attempted this? I can post a version of my code if asked:
https://makersportal.com/blog/2018/11/25/goes-r-satellite-latitude-and-longitude-grid-projection-algorithm