Humming lights can be caused by:
A bad ballast or bad transformer. Replace the ballast or transformer.
A conflict between a low-voltage dimmer and the low-voltage light fixture it controls. This is a tough one, but sometimes experimenting with different dimmers will lead you to one that doesn’t make the low-voltage light transformer hum.