Yea, I don't thing sailors need to worry about autonomous ships for a while yet.
Most maintenance is done underway, ie Able Seaman chipping and painting and maintenance items buy engineers.
Those big engines don't get an overhaul every few years, a "unit" (ie piston rings and liner) will get replaced, next port next unit. the crew have all the parts on hand, they know the ship and how to do a unit. That's eight ports for an eight cylinder engine or more. You just cannot get ring in crew to do this kind of work, folk who don't know the ship will take to long, parts won't get ordered etc. having no crew on the ship just to tie the ship up for longer to do the maintenance makes no sense.
Computers to fix things on the run will not work. We had an issue this week where the crank case mist detector caused and engine to go into slow-down (just reduced load, they are fixed speed engines) turned out that the problem was actually just a crack in an air line to the sensor, easy fix for the crew on board, and we carry on, you just cannot automate this kind of thing and little breakdowns like this happen all the time.
We have had issues with the bilge and ballast valves, we just use them manually until we can fix them, How does a computer deal with that?
Who will take responsibility for the oily water separator? You can't just pump bilge water over the side, it has to be treated with the oily water separator then pumped overboard and the sludge gets taken ashore.
Who will replace that blown nav light lamp?
Ships are big and very complex pieces of machinery, they don't get stamped out by the millions like trucks and there are a lot of very experienced engineers who refuse to work on a ship that is less than 6 months old because they cannot be bothered with running a ship and dealing with all the crap that was not commissioned properly by the yard that wanted the ship out of the yard so they could get on with the next order. The brown paper bag industry must do a thriving trade near ship building yards.
I had the interesting job a few years ago working on the Lewek Petrel, the only work that ship had done was the delivery from Singapore to NZ. She could not hold position on DPS, I had the fun of fixing the lights on the deck that didn't even bungs in the holes you could run wires into the fittings for extra wires to other lights, Yea water proof my ass. The pump for the crane was immersed in oil, that was commissioned in the rain, yea that went well once the hyd pump mixed the water and oil together.

The "New to us" EX European passenger ship the company I work for owns recently had a problem where a seawater pump sensor came adrift, Well the bilge level switch failed also....
That caused a whole heap of damage before someone doing their rounds noticed the water above the floor plates. Without someone walking around the flooding would have gone unnoticed, even still a critical pump was destroyed resulting in a ship that cannot carry passengers until it was fixed.
You just have to have people on board a ship to keep it running, It's that simple.
Oh, maybe I should drink less before posting on Scantlings.
Good wine still isn't beer.