Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
File "models/tf.py", line 18, in <module>
    from models.common import Conv, Bottleneck, SPP, DWConv, Focus, BottleneckCSP, Concat, autopad, C3
ModuleNotFoundError: No module named 'models'


What I have tried:

!python3 models/tf.py --weight weights/last.pt --cfg models/yolov5s.yaml --img 416
Posted
Updated 27-Apr-21 4:00am

1 solution

Look at the error message:
ModuleNotFoundError: No module named 'models'

Python cannot find the module to import.
 
Share this answer
 
Comments
Greg StJohn 7-Jul-23 23:00pm    
Ok thanks, but how is that correct?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900