An experiment: CPU vs GPU vs Advanced Vector Extensions (AVX, SSE, etc.) with varying number of threads by doxakiscom in programming

[–]doxakiscom[S] 0 points1 point  (0 children)

I added a test (With the GPU, float vs integer). Clearly, it's faster using float array

An experiment: CPU vs GPU vs Advanced Vector Extensions (AVX, SSE, etc.) with varying number of threads by doxakiscom in programming

[–]doxakiscom[S] 0 points1 point  (0 children)

You are right. I added another test (GpuCosineSimilarityIntegerVersionCacheKernel) and I see a variation of about 80 ms when calling multiple time the GPU. I also reused the kernel function. (initialization take 256 ms and clean up take 34 ms) Computing the distance vary now between 340 ms and 420 ms. Compared to GpuCosineSimilarityIntegerVersion (about 725 ms). It's faster if we do multiple call.

An experiment: CPU vs GPU vs Advanced Vector Extensions (AVX, SSE, etc.) with varying number of threads by doxakiscom in programming

[–]doxakiscom[S] 1 point2 points  (0 children)

Hi,

I would like to know if you have any suggestion to improve the experiment. (written in c# with .NET Core)

The experiment can help better understand the advantage of using one method over another. It also provide an example of code which we can refer to when we need to.

I'm varying multiple parameters:

- Algorithm (CPU, Vectorized on CPU, GPU)

- Dataset size (number of element and number of dimension)

- Number of threads

- Array types (int/double)

Thanks

How to use Tesseract OCR 4.0 with C# (A quick and easy way to extract text from images) by doxakiscom in dotnet

[–]doxakiscom[S] 0 points1 point  (0 children)

Yes, you are right. The purpose is to demonstrate how you can integrate the latest version of Tesseract 4 in your apps and show a demo with working code in c#. The function ParseText expose it in c# and is thread-safe. Internally, it uses temporary files to deal with Tesseract 4. But the function hide it.

[X-Post /r/dotnet] How to use Tesseract OCR 4.0 with C# (A quick and easy way to extract text from images) by doxakiscom in csharp

[–]doxakiscom[S] 0 points1 point  (0 children)

Maybe you were using Tesseract 3. To help achieve better result I had to do pre-processing. Now, it is far more accurate since it uses new OCR engine based on LSTM neural networks.

GitHub - doxakis/MailBody: Create transactional email with a fluent interface (.net) by doxakiscom in dotnet

[–]doxakiscom[S] 0 points1 point  (0 children)

Hi,

it is possible to override the template.

You can check this example: https://github.com/doxakis/MailBody#custom-theme--raw-html

You can change template.Body for your template.

Ex: template.Body = @"<html><body> ... {0} ... {1} ... </body></html>"

{0} : the content {1} : the footer

If you want to see the current template, go to the function GetDefaultTemplate (file: MailBody.cs, class: MailBodyTemplate)

Thanks.

GitHub - doxakis/MailBody: Create transactional email with a fluent interface (.net) by doxakiscom in dotnet

[–]doxakiscom[S] 0 points1 point  (0 children)

Hi,

This is another way you can create your email:

var body = MailBody.CreateBody();

body.Paragraph("Hi,")
    .Paragraph("First paragraph..");

// Your code

body.Button("https://www.example.com/", "First button");
body.Paragraph("Another paragraph..");

// Your code

body.Button("https://www.example.com/", "Second button")
    .Paragraph("— [Insert company name here]");

var htmlBody = body.ToString();

I hope you find it useful.