Let G be a graph and let f be a positive integer-valued function defined on V(G) such that 1≤a≤f(x)≤b≤2a for every x∈V(G). If t(G)≥b2a, |V(G)|≥b2a+1, and f(V(G)) is even, then G has an f-factor.