-
Notifications
You must be signed in to change notification settings - Fork 29
Description
mindspore=2.4.10, cann版本: 8.0rc2alpha003
在香橙派上运行main_fcn报错:
TypeError Traceback (most recent call last)
/tmp/ipykernel_10078/451043146.py in <cell line: 1>()
----> 1 main()
/tmp/ipykernel_10078/2216351881.py in main()
10 dataset = pre_process() # 前处理
11 # inference
---> 12 res, show_images = inference(dataset, model) # 推理
13 # postprocess
14 post_process(res, show_images) # 后处理
/usr/local/Ascend/thirdpart/aarch64/acllite/acllite_utils.py in wrapper(*args, **kwargs)
244 if DEBUG:
245 btime = time.time()
--> 246 res = func(*args, **kwargs)
247 use_time = time.time() - btime
248 print("in %s, use time:%s" % (func.name, use_time))
/tmp/ipykernel_10078/2575630204.py in inference(dataset, model)
44 show_images = np.clip(show_images, 0, 1)
45 result = model.execute([show_data["data"].asnumpy(), ])
---> 46 res = result[0].argmax(axis=1)
47 return res ,show_images
48
TypeError: 'NoneType' object is not subscriptable