Wednesday, December 19, 2018

Letter to Rep Carbajal (CA 24) About the Latest Kavanaugh Abomination

draft

My letter to Rep Salud Carbajal of CA 24 is as follows:

The recent dismissal of ethics complaints against Kavanaugh is an abomination. Why does our government think it can keep doing things like this and still have any credibility? I have had it with this right wing garbage dominating our government. It is time for my elected representative to speak out, loudly, now and often.

As far as I am concerned your only job in Washington is to impeach Trump, Pence and Kavanaugh (and possibly Gorsuch).

You are my representative, please speak out, now.

Thank you.
Michael Wahrman

Tuesday, December 18, 2018

Incremental Notes on GANs

draft

So there are a variety of things I have learned about GANs in the last few weeks.  

1. I am limited by my GPU memory.  The more memory you have, the more you can fit into the GPU, the larger the batch size.  A batch size of 6 may have very different results from a batch size of 2, or a batch size of 50.

2. It is only the GPU (in my case a 1080 with 8 GB memory) that makes this at all practical or possible.  I have 8/16 pretty good processors here and they can run for 10 minutes and not do a single batch, whereas the GPU can do a batch in 60 seconds or less.

3. 256 resolution is much more practical than 512 resolution.

4. It is not at all clear whether GANs can do any of the simplistic projects I wanted to do with galaxies, nebulae or march posters.

5. With the simplistic test patterns, at least 150,000 samples are required.

CBS Eye Recreated by Machine Learning

draft

Kids, dont try this at home.  These machine learning generative adversarial networks are for adults, you could hurt yourself. There are finally some decent results from a GAN on a pattern simple enough to work.  But this tells me almost nothing about what the technique can or cant do.  This test is very, very simple.

An example of the input images. 





And some of the generated images after training on about 125,000 different images.







Monday, December 17, 2018

GANs, Machine Learning & Learning on the Internet

draft

By using a simple test pattern and pushing through latest attempt at a GAN, I was able to confirm some suspicions I had about what was going on.  And through this I was able to use the right words in my Google search and come up with some posts and references to papers to help explain what was going on.

What I saw in my tests is that indeed my GAN was at various times doing a respectable job at recreating the image class.  And then it would seemingly lose its mind, or lose the thread, and go off into its own zone from which it would occassionally return.

The process has been productive and I have learned a lot, but the process is also suboptimal.  Its hard to tell from the Internet at first glance whether or not many of the posts that are thrown in your face have been written by people who actually understand what is going on.  My opinion at this point is that they do not.

In particular, what 98% of these posts about GANs did not tell me was that this very promising technique is not at all cut and dried.  That there are many questions and issues about pretty much every phase of the process, about what type of loss function, about what type of optimizer, about how to avoid "mode collapse" and many other critical issues.

So GANs are an exciting work in progress, a true research project, and unlike many other areas that someone from Computer Graphics might expect, nothing is cut and dried here.  It may work in one case but not another.

In my case, it truly makes progress towards the goal, but then it wanders off.

Here is a link to the best post I have found so far on this topic by Jonathan Hull.  He has written a dozen or so posts on GANs and so you might want to poke around and see more of what he has written.

https://medium.com/@jonathan_hui/gan-why-it-is-so-hard-to-train-generative-advisory-networks-819a86b3750b

Here is one of the input images as a reminder of what I am aiming for and then a few selected images of results that shows it is on the right track.  Remember, our GAN does not know a circle from a politician, so when you see something like a circle that is significant.




And here are some selected outputs from the GAN.










And then here are some images from when it has apparently lost its mind.






Sunday, December 16, 2018

Test Patterns for Machine Learning

draft

I am slowly reducing my test patterns for machine learning to the simplest form that will tell me something.  

When this is a little further along, I may package them all up and put it on kaggle as a lesson for the others.










I should mention that these images have been through the Tensorflow/Keras data augmentation process, and are hence smashed in a variety of ways.  Here is an example of an original image as created via Nuke.  Still not perfect, but better.  For what I am doing, it really doesnt matter.



Shut the Government Down Now

draft

I am perfectly OK if they shut the government down until Trump/Pence is gone, the rapist is off the supreme court, and so forth. I will vote against any representative of mine who permits this travesty to go on even one more day. Its the moral equivalent of the hunger strike in the face of gross injustice.

Saturday, December 15, 2018

Pence is Not an Existential Threat

draft

I have friends so terrified of a potential President Pence, that they are perfectly OK with Trump continuing in office and murdering women and children.  Thats how much they fear Pence.  I think they are out of their mind and need to get a grip.

Short of starting a nuclear war in order to encourage the end of the world and the return of Jesus the Christ child, there is nothing too bad that is likely to happen that could be any worse than Trump.  He cant get legislation passed.  He can put right wing nutty boys in the judicial system the way Trump does, but that is no worse.  Any executive order he signs that is egregious will be reviewed by non-Trump justices and can be overturned by the next administration.

And there is nearly zero chance that he can be elected president in 2020.  He has the charisma of an uninteresting rock.  He probably would not even be able to get the Republican nomination.

So yes, Pence for 1.5 years would be an embarrassment and a humiliation, but he does not represent an existential threat.

Friday, December 14, 2018

Running a More Controlled Test with Tensorflow/Keras

draft

After many interesting tests with Tensorflow/Keras, I am convinced I have no idea what is really going on.  So, I am doing what I should have done to begin with, which is to generate some test data and see how well the script i have written to implement a GAN works with known data.

I finally broke down and learned enough Nuke to be able to generate one of my standard test sequences.  512, 1K frames with two levels of noise and a 12 field chart.  

All the frames look like the one below, except of course that it animates, slowly.



Thursday, December 13, 2018

Without Use, Knowledge Decays

draft

As part of the process of cleaning data for use in machine learning, I finally broke down and I am learning Nuke, that being the preferred compositing program after the predecessors (Shake & Chalice) were destroyed by Apple out of greed. 

But the point is that with the passage of a few years, all kinds of skills and knowledge go away and I am stuck with the frustrating process of trying to remember what used to be second nature.

Let this be a warning to youth out there.  This can and will happen to you.


Wednesday, December 12, 2018

Why Impeachment is Not About Removing Trump (at least not exactly)

draft

This one of those essays that require at least a day to write, and probably several days to write, assuming one wants to do it well.  But I dont have that time so I will just have to sketch out the ideas here and hope you will be indulgent.

The question is as follows.  Is it necessary or desirable to impeach Donald Trump even if it is impossible to convict him because Republicans control the Senate and Republicans are traitors?

Some would say it is not desirable because it would piss off many good Americans who will think that the Democrats are being vindicative.  Others would say it is not desirable because it probably wont remove Trump from office, but it *might* and then we have Pence to deal with.  Still others would say it is not desirable because as far as they can tell Trump has not been "proven" to have committed a crime.

I think it is desirable, even required, and for the following reasons.

First, there are no good Americans who would be pissed off.  The only Americans who support Trump at this point (maybe not initially) are traitors who want to destroy this country, put rapists on the supreme court, etc.

Second, the only mechanisms we have to remove a madman like Trump is impeachment (or article 4 of the 25th Amendment).  If that means Pence, that means Pence.  Pence is a religious nut will try to put gay people in extermination camps, but he will fail.

Third, it is not necessary to prove Trump committed a crime to impeach him.

But the most important reason is this.

The Republicans have tried to destroy this country and we have to fight back.  Now, and forever, now or not at all.