AttributeError: module 'transforms' has no attribute 'Normalize'

Hi ptrblck. I used this section earlier in the code. Sorry I didn’t include it in first post.

if os.path.isdir("vision") == True:
    print("vision present")
else:
    Repo.clone_from("https://github.com/pytorch/vision.git", "vision")

shutil.copy('vision/references/detection/utils.py', 'utils.py')
shutil.copy('vision/references/detection/transforms.py', 'transforms.py')
shutil.copy('vision/references/detection/coco_eval.py', 'coco_eval.py')
shutil.copy('vision/references/detection/engine.py', 'engine.py')
shutil.copy('vision/references/detection/coco_utils.py', 'coco_utils.py')

I used that because it’s mostly the same as what’s provided here:

That Colab tutorial relies on torchvision 0.12.0, I think, and I’m trying to use 0.13.0 at this point, so I’m using most of the same code.

I see “vision/torchvision/transforms at main · pytorch/vision · GitHub”. I should use that instead? It seems to have the transforms module, but not engine. I suppose I should copy both repos and import the requisite modules accordingly.