Evolution of dust properties in an interstellar filament