If you have a dent from a table or cupboard leg in a carpet let an ice cube melt and the fibers recover.
Dents in carpet by heavy objects are easily removed by means a steam cleaner. The original structure of the carpet will be restored immediately. Preparation is the melting of an ice cube on the affected area. Even dents of many years standing enclosures disappear!