.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
World Supremacy- Save $9.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT > Mods
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old October 24th, 2020, 11:18 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Captain
 
Join Date: Jun 2005
Posts: 980
Thanks: 71
Thanked 273 Times in 192 Posts
MarkSheppard is on a distinguished road
Default The Use of Neural Net Deep Learning for Icon Generation

I finally got around to figuring out something that I've always wanted to try ever since the first papers came out about 2015 on the use of Neural Networks for image translation.

For my first attempts, I'm trying to train a neural network to convert GREEN icons to DESERT icons and vice versa; with the following dataset:



I ran CYCLE-GAN for a few hundred epochs and got this basic quality:



You can see how in Epoch 31, the AI is pretty drunk, but by Epoch 431, it's pretty decent.

I stopped there; because the AI went past "good" and became stupid again.

I then went and "tested" my AI against these images which weren't in the training set to see how well the AI would handle it.



And, well....



I guess maybe I need to run it for 5000 epochs?
Reply With Quote
  #2  
Old October 25th, 2020, 08:43 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 10,406
Thanks: 2,310
Thanked 3,579 Times in 1,784 Posts
DRG will become famous soon enough
Default Re: The Use of Neural Net Deep Learning for Icon Generation

I suppose you have a good reason for doing this but a conversion from a solid green to a desert tan Icon takes me seconds to do the basics with PSP and a few more to add in details like turret rings

Attached Thumbnails
Click image for larger version

Name:	Image4.png
Views:	91
Size:	2.8 KB
ID:	16157  
__________________
Reply With Quote
  #3  
Old October 25th, 2020, 09:53 AM

Karagin Karagin is offline
Corporal
 
Join Date: Apr 2020
Location: Killeen, TX
Posts: 142
Thanks: 77
Thanked 21 Times in 13 Posts
Karagin is on a distinguished road
Default Re: The Use of Neural Net Deep Learning for Icon Generation

Still amazes me, I have two icons I tried to make back for the SP2 and they look meh to okay. The stuff you guys do is amazing.
__________________
Karagin

"Only the dead have seen the end of wars" - Plato

"Wasted trip man! No one said anything about no stinking Tigers!" - Oddball

"The Senate decrees, the Grand Admiral calls,
the orders come down from on high,
It's 'On Full Kits' and sound 'Board Ships,'
We're sending you where you can die." - cadence of the Line Marines (Jerry Pournelle)
Reply With Quote
  #4  
Old October 25th, 2020, 10:34 AM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Captain
 
Join Date: Jun 2005
Posts: 980
Thanks: 71
Thanked 273 Times in 192 Posts
MarkSheppard is on a distinguished road
Default Re: The Use of Neural Net Deep Learning for Icon Generation

Quote:
Originally Posted by DRG View Post
I suppose you have a good reason for doing this but a conversion from a solid green to a desert tan Icon takes me seconds to do the basics with PSP and a few more to add in details like turret rings
Mostly, it's to learn how to use Neural Nets for fun; as there are some ways you could use Neural Nets:

1.) Use existing icons to generate a "made up" icon based on earlier icons -- there have been papers by people who used scans of NES sprites to make entirely made up sprites. (Generate me a random German looking tank!)

2.) Possibly, as Neural Net Research gets better; make it so that a neural network could be trained to draw a sprite from a good top reference or drawing.
Reply With Quote
  #5  
Old October 25th, 2020, 11:11 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 10,406
Thanks: 2,310
Thanked 3,579 Times in 1,784 Posts
DRG will become famous soon enough
Default Re: The Use of Neural Net Deep Learning for Icon Generation

Quote:
Originally Posted by Karagin View Post
Still amazes me, I have two icons I tried to make back for the SP2 and they look meh to okay. The stuff you guys do is amazing.
and a quick camo using the two previous ( 2x normal game size )



All I can say is the learning curve was steep for me as well and *maybe* only one or two of my early examples still exist in the game ( the only one I can think of that is still in use is the Feldwagen in the WW2 German OOB Icon 304.... that is the only one that goes back to the early days PRE SP2WW2 still in use in the game and I could do a better one now but it's "good enough" to be kept it.....just 'cause. That one predates Andy joining the team so early summer 1998.

BUT.... 2 decades of trial and error either builds knowledge and skills or you never get that far. squeezing as much out of <256 colours has been a pet project for years and in that time I have learned what works and what doesn't. It took me years to start using "paste as transparent section" and now it's SOP. It's how I isolate a hull and turret from the background to do a full " repaint" of a solid colour and built up camo patterns

I guess as well it's critical which drawing program you use. I've been using Paint Shop Pro ver 7 since it was released and I am sure there are newer ones out there that can do more but this does what I need it to do
Attached Thumbnails
Click image for larger version

Name:	Image3c.png
Views:	89
Size:	1.8 KB
ID:	16158  
__________________
Reply With Quote
The Following User Says Thank You to DRG For This Useful Post:
  #6  
Old October 25th, 2020, 11:22 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 10,406
Thanks: 2,310
Thanked 3,579 Times in 1,784 Posts
DRG will become famous soon enough
Default Re: The Use of Neural Net Deep Learning for Icon Generation

Quote:
Originally Posted by MarkSheppard View Post
Quote:
Originally Posted by DRG View Post
I suppose you have a good reason for doing this but a conversion from a solid green to a desert tan Icon takes me seconds to do the basics with PSP and a few more to add in details like turret rings
Mostly, it's to learn how to use Neural Nets for fun; as there are some ways you could use Neural Nets:

1.) Use existing icons to generate a "made up" icon based on earlier icons -- there have been papers by people who used scans of NES sprites to make entirely made up sprites. (Generate me a random German looking tank!)

2.) Possibly, as Neural Net Research gets better; make it so that a neural network could be trained to draw a sprite from a good top reference or drawing.
Yeah, I can see this being an interesting project just to see what you can get.
__________________
Reply With Quote
  #7  
Old October 25th, 2020, 02:30 PM

Karagin Karagin is offline
Corporal
 
Join Date: Apr 2020
Location: Killeen, TX
Posts: 142
Thanks: 77
Thanked 21 Times in 13 Posts
Karagin is on a distinguished road
Default Re: The Use of Neural Net Deep Learning for Icon Generation

I use PSP7 myself, still learning new things about it.
__________________
Karagin

"Only the dead have seen the end of wars" - Plato

"Wasted trip man! No one said anything about no stinking Tigers!" - Oddball

"The Senate decrees, the Grand Admiral calls,
the orders come down from on high,
It's 'On Full Kits' and sound 'Board Ships,'
We're sending you where you can die." - cadence of the Line Marines (Jerry Pournelle)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:12 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2020, Shrapnel Games, Inc. - All Rights Reserved.