You can remove the sweat smell from the yoga pants by soaking them in a solution of cold water and vinegar for around 30 minutes before washing. Alternatively, you can combine half vinegar and half water in a spray bottle, shake to form a homogeneous solution, and then spritz the yoga pants. You can consider adding several drops of essential oils to help remove the vinegar smell.