It depends on the hardware. A single nail or basic hook in drywall is usually safe only for small frames, often around 5 to 10 lb. Heavier pieces require anchors or, better yet, a picture hanging rail that spreads the load across the wall.
Typical drywall limits
Plain nail or light hook ...