Resnet environment stuff