mirror of
				https://github.com/qurator-spk/sbb_binarization.git
				synced 2025-10-31 01:24:14 +01:00 
			
		
		
		
	use types.Path instead of click.Path to avoid NameError
This commit is contained in:
		
							parent
							
								
									e4c1eb2913
								
							
						
					
					
						commit
						dc5a5c791a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -8,7 +8,7 @@ from .sbb_binarize import SbbBinarizer | ||||||
| @command() | @command() | ||||||
| @version_option() | @version_option() | ||||||
| @option('--patches/--no-patches', default=True, help='by enabling this parameter you let the model to see the image in patches.') | @option('--patches/--no-patches', default=True, help='by enabling this parameter you let the model to see the image in patches.') | ||||||
| @option('--model-dir', '-m', type=click.Path(exists=True, file_okay=False), required=True, help='directory containing models for prediction') | @option('--model-dir', '-m', type=types.Path(exists=True, file_okay=False), required=True, help='directory containing models for prediction') | ||||||
| @argument('input_image') | @argument('input_image') | ||||||
| @argument('output_image') | @argument('output_image') | ||||||
| def main(patches, model_dir, input_image, output_image): | def main(patches, model_dir, input_image, output_image): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue