I have got the above output as a param from torch.load(‘yolov5s.pt’ map_location=‘cpu’).
I have used
model = params['model']
.got the following issue:
File "models/load.py", line 73, in attempt_load
model.append(ckpt['ema' if ckpt.get('ema') else 'model'].float().fuse().eval())
File "/home/user/anaconda3/envs/dali/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'Model' object has no attribute 'append'