Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Announcements
»
Third party
»
Conscious Artificial Intelligence - Project Update
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
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
Modifying TJSArray object...
by
rlsdevine
[
Today
at 01:58:42 am]
When does Menu OnDrawItem...
by
Sieben
[
Today
at 01:21:05 am]
capture apl_exec stdout
by
BobDog
[
Today
at 12:31:18 am]
mormot2 JSON + If + and =...
by
Joanna
[
Today
at 12:08:56 am]
Resizing the forum is not...
by
KodeZwerg
[
Today
at 12:00:56 am]
[Solved] LazReport: dynam...
by
lainz
[February 07, 2023, 11:57:00 pm]
TThread - Why can't I sta...
by
Slawek
[February 07, 2023, 11:29:08 pm]
RTL/Packages as dynamical...
by
marcov
[February 07, 2023, 11:12:03 pm]
SQLite3 Beginner's diffi...
by
Neville
[February 07, 2023, 10:32:18 pm]
[SOLVED] VST summation ti...
by
Pe3s
[February 07, 2023, 09:16:04 pm]
« previous
next »
Print
Pages:
1
...
8
9
[
10
]
Author
Topic: Conscious Artificial Intelligence - Project Update (Read 50268 times)
Dzandaa
Jr. Member
Posts: 90
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: 90
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
Print
Pages:
1
...
8
9
[
10
]
« previous
next »
Lazarus
»
Forum
»
Announcements
»
Third party
»
Conscious Artificial Intelligence - Project Update
TinyPortal
© 2005-2018