Perhaps it's not the correct place to discuss about it, but it seems that godot compile all the tiles in one hidden atlas when doing a tileset I've got to ask to a godot guru on discord to be sure.
The script is too big for the comment section so : https://pastebin.com/M7R2XBuN