mirror of
				https://github.com/PaddlePaddle/PaddleOCR.git
				synced 2025-10-31 09:49:30 +00:00 
			
		
		
		
	rm _
This commit is contained in:
		
							parent
							
								
									9131c4a7ac
								
							
						
					
					
						commit
						11d6814f36
					
				| @ -63,7 +63,7 @@ def infer(args): | ||||
|         save_img_path = os.path.join( | ||||
|             args.output_dir, | ||||
|             os.path.splitext(os.path.basename(image_path))[0] + "_re.jpg") | ||||
|         logger.info("[Infer] process: {}/{}, save_result to {}".format( | ||||
|         logger.info("[Infer] process: {}/{}, save result to {}".format( | ||||
|             idx, len(eval_dataloader), save_img_path)) | ||||
|         with paddle.no_grad(): | ||||
|             outputs = model(**batch) | ||||
|  | ||||
| @ -250,7 +250,7 @@ def infer(args): | ||||
|         for idx, img_path in enumerate(infer_imgs): | ||||
|             save_img_path = os.path.join(args.output_dir, | ||||
|                                          os.path.basename(img_path)) | ||||
|             print("process: [{}/{}], save_result to {}".format( | ||||
|             print("process: [{}/{}], save result to {}".format( | ||||
|                 idx, len(infer_imgs), save_img_path)) | ||||
| 
 | ||||
|             img = cv2.imread(img_path) | ||||
|  | ||||
| @ -137,7 +137,7 @@ if __name__ == "__main__": | ||||
|             save_img_path = os.path.join( | ||||
|                 args.output_dir, | ||||
|                 os.path.splitext(os.path.basename(img_path))[0] + "_ser.jpg") | ||||
|             print("process: [{}/{}], save_result to {}".format( | ||||
|             print("process: [{}/{}], save result to {}".format( | ||||
|                 idx, len(infer_imgs), save_img_path)) | ||||
| 
 | ||||
|             img = cv2.imread(img_path) | ||||
|  | ||||
| @ -120,7 +120,7 @@ if __name__ == "__main__": | ||||
|             save_img_path = os.path.join( | ||||
|                 args.output_dir, | ||||
|                 os.path.splitext(os.path.basename(img_path))[0] + "_re.jpg") | ||||
|             print("process: [{}/{}], save_result to {}".format( | ||||
|             print("process: [{}/{}], save result to {}".format( | ||||
|                 idx, len(infer_imgs), save_img_path)) | ||||
| 
 | ||||
|             img = cv2.imread(img_path) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 WenmuZhou
						WenmuZhou