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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.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
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,378
Thanks: 101
Thanked 619 Times in 410 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: 12,495
Thanks: 3,966
Thanked 5,704 Times in 2,815 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:	880
Size:	2.8 KB
ID:	16157  
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc
Reply With Quote
  #3  
Old October 25th, 2020, 09:53 AM

Karagin Karagin is offline
BANNED USER
 
Join Date: Apr 2020
Location: Killeen, TX
Posts: 473
Thanks: 432
Thanked 139 Times in 93 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.
Reply With Quote
  #4  
Old October 25th, 2020, 10:34 AM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,378
Thanks: 101
Thanked 619 Times in 410 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: 12,495
Thanks: 3,966
Thanked 5,704 Times in 2,815 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:	857
Size:	1.8 KB
ID:	16158  
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc
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: 12,495
Thanks: 3,966
Thanked 5,704 Times in 2,815 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.
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc
Reply With Quote
  #7  
Old October 25th, 2020, 02:30 PM

Karagin Karagin is offline
BANNED USER
 
Join Date: Apr 2020
Location: Killeen, TX
Posts: 473
Thanks: 432
Thanked 139 Times in 93 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.
Reply With Quote
Reply

Bookmarks


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 11:39 PM.


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