Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Announcements
»
Third party
»
Conscious Artificial Intelligence - Project Update
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[SOLVED] Font question
by
Pe3s
[
Today
at 05:57:05 pm]
Fpcupdeluxe
by
BosseB
[
Today
at 05:43:50 pm]
Old application will not ...
by
Martin_fr
[
Today
at 05:38:41 pm]
pdfium.dll loadfromfile f...
by
domasz
[
Today
at 05:21:00 pm]
SQL - looks easy but I ca...
by
rvk
[
Today
at 05:14:53 pm]
How can I access the prop...
by
jamie
[
Today
at 04:13:36 pm]
Read a config file
by
Ally
[
Today
at 03:37:09 pm]
How do you render a pixel...
by
Artlav
[
Today
at 03:14:43 pm]
Generic: array of T
by
bpranoto
[
Today
at 03:05:59 pm]
Converting from Delphi.
by
JuhaManninen
[
Today
at 02:53:00 pm]
« previous
next »
Print
Pages:
1
...
8
9
[
10
]
Author
Topic: Conscious Artificial Intelligence - Project Update (Read 51048 times)
Dzandaa
Jr. Member
Posts: 95
From C# to Lazarus
Re: Conscious Artificial Intelligence - Project Update
«
Reply #135 on:
December 09, 2022, 11:45:22 am »
Dr Schuler
,
Congratulation!!!
Great job.
B->
Logged
Dzandaa
schuler
Full Member
Posts: 206
Re: Conscious Artificial Intelligence - Project Update
«
Reply #136 on:
December 10, 2022, 04:26:26 am »
@metis and @Dzandaa,
Thank you!
@Thaddy,
Quote
Well, with a last name like that, you obviously felt the pressure to become a scholar.
You certainly have a point.
Logged
schuler
Full Member
Posts: 206
Re: Conscious Artificial Intelligence - Project Update
«
Reply #137 on:
December 10, 2022, 04:46:52 am »
... the coding continues ...
The paper
Searching for Activation Functions
describes the search for a better activation function than
ReLU
. In their work, the authors found
Swish
to be the best replacement for
ReLU
. The downside of
Swish
is: it requires a lot of computation to calculate it. Later, the paper
Searching for MobileNetV3
introduces the
Hard Swish
activation function. The
Hard Swish
gives similar results to Swish with a lot less computation.
I've just added to the source code the
Hard Swish
implementation and done new runs comparing ReLU, Swish and Hard Swish. Follow source codes and results.
Source codes are:
ReLU:
https://github.com/joaopauloschuler/neural-api/blob/master/examples/SimpleImageClassifier/SimpleImageClassifier.lpr
.
Swish:
https://github.com/joaopauloschuler/neural-api/blob/master/examples/SimpleImageClassifier/SimpleImageClassifierSwish.lpr
.
Hard Swish:
https://github.com/joaopauloschuler/neural-api/blob/master/examples/SimpleImageClassifier/SimpleImageClassifierHardSwish.lpr
.
Results are (CIFAR-10 test classification accuracy):
ReLU: 85.53% -
https://github.com/joaopauloschuler/neural-api/blob/master/examples/SimpleImageClassifier/results/SimpleImageClassifier20221206.csv
.
Swish: 86.55% -
https://github.com/joaopauloschuler/neural-api/blob/master/examples/SimpleImageClassifier/results/SimpleImageClassifierSwish20221207.csv
.
Hard Swish: 86.82% -
https://github.com/joaopauloschuler/neural-api/blob/master/examples/SimpleImageClassifier/results/SimpleImageClassifierHardSwish20221208.csv
.
Looks pretty good to me!
Wish everyone happy pascal coding.
«
Last Edit: December 11, 2022, 03:21:32 am by schuler
»
Logged
Dzandaa
Jr. Member
Posts: 95
From C# to Lazarus
Re: Conscious Artificial Intelligence - Project Update
«
Reply #138 on:
December 10, 2022, 04:10:42 pm »
Hi,
thank you for the update.
Have you tested the "mish" activation?
https://ai-scholar.tech/en/articles/treatise/mish-ai-374
It seems easy to implement.
B->
Logged
Dzandaa
schuler
Full Member
Posts: 206
Re: Conscious Artificial Intelligence - Project Update
«
Reply #139 on:
December 11, 2022, 04:14:55 am »
@Dzandaa,
It looks good.
I've just added a feature request to this:
https://github.com/joaopauloschuler/neural-api/issues/106
.
Logged
schuler
Full Member
Posts: 206
Re: Conscious Artificial Intelligence - Project Update
«
Reply #140 on:
December 21, 2022, 06:14:42 pm »
DrDub from GitHub coded a simple
web server
for a neural network that receives an
image
and
classifies
it. I did plenty of updates on the top of his code. The code can be found at:
https://github.com/joaopauloschuler/neural-api/tree/master/examples/ResNet/server
Logged
schuler
Full Member
Posts: 206
Re: Conscious Artificial Intelligence - Project Update
«
Reply #141 on:
January 09, 2023, 05:34:18 pm »
Hello
Just finished updating the
autoencoder
example:
https://github.com/joaopauloschuler/neural-api/tree/master/examples/VisualAutoencoder
.
This example uses the freshly tested (but coded long ago)
TNNetUpsample
layer for increasing resolution in the decoder side.
TNNetUpsample
converts channels (depth) into spatial data. For example, a 128x128x256 activation map will be converted to 256x256x64. This layer type does a similar job to Tensorflow's
tf.nn.depth_to_space
.
Wish everyone happy pascal coding
Logged
Dzandaa
Jr. Member
Posts: 95
From C# to Lazarus
Re: Conscious Artificial Intelligence - Project Update
«
Reply #142 on:
February 12, 2023, 12:26:59 pm »
Your sources are available on 2 platforms
Which are the most recent?
Thank you.
Logged
Dzandaa
Print
Pages:
1
...
8
9
[
10
]
« previous
next »
Lazarus
»
Forum
»
Announcements
»
Third party
»
Conscious Artificial Intelligence - Project Update
TinyPortal
© 2005-2018