Heat a large frying pan up over a medium heat and add in the walnuts to gently toast them, this should only take a few minutes, then remove and set aside. Add the olive oil and finely sliced garlic plus the sprigs of rosemary. Fry very gently for a couple of minutes being careful not to burn the garlic, otherwise it'll taste bitter, (the garlic should be very lightly golden and crisp, no darker), and infuse the oil with the aromatic flavours. Turn down the heat a little.