• Jacob Segal's avatar
    Default to sampling entire image · af02393c
    Jacob Segal authored
    By default, when applying a mask to a condition, the entire image will
    still be used for sampling. The new "set_area_to_bounds" option on the
    node will allow the user to automatically limit conditioning to the
    bounds of the mask.
    
    I've also removed the dependency on torchvision for calculating bounding
    boxes. I've taken the opportunity to fix some frustrating details in the
    other version:
    1. An all-0 mask will no longer cause an error
    2. Indices are returned as integers instead of floats so they can be
       used to index into tensors.
    af02393c
nodes.py 45.4 KB