Compare commits
	
		
			3 Commits
		
	
	
		
			9e22bd0e20
			...
			2c09745a9f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						2c09745a9f
	
				 | 
					
					
						|||
| 
						
						
							
						
						beb7c5e337
	
				 | 
					
					
						|||
| 
						
						
							
						
						19705527a0
	
				 | 
					
					
						
@@ -53,7 +53,7 @@ Tagging galleries
 | 
				
			|||||||
The appropriate invocation depends on your machine, and the chosen model.
 | 
					The appropriate invocation depends on your machine, and the chosen model.
 | 
				
			||||||
Unless you have a powerful machine, or use a fast model, it may take forever.
 | 
					Unless you have a powerful machine, or use a fast model, it may take forever.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 $ find "$GALLERY/images" -type f \
 | 
					 $ find "$GALLERY/images" -type l \
 | 
				
			||||||
   | build/deeptagger --pipe -b 16 -t 0.5 \
 | 
					   | build/deeptagger --pipe -b 16 -t 0.5 \
 | 
				
			||||||
     models/ml_caformer_m36_dec-5-97527.model \
 | 
					     models/ml_caformer_m36_dec-5-97527.model \
 | 
				
			||||||
   | sed 's|[^\t]*/||' \
 | 
					   | sed 's|[^\t]*/||' \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,11 +28,9 @@ run() {
 | 
				
			|||||||
for model in models/*.model
 | 
					for model in models/*.model
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
	name=$(sed -n 's/^name=//p' "$model")
 | 
						name=$(sed -n 's/^name=//p' "$model")
 | 
				
			||||||
	run ""     1 "$model" "$@"
 | 
						for batch in 1 4 16
 | 
				
			||||||
	run ""     4 "$model" "$@"
 | 
						do
 | 
				
			||||||
	run ""    16 "$model" "$@"
 | 
							run ""    $batch "$model" "$@"
 | 
				
			||||||
 | 
							run --cpu $batch "$model" "$@"
 | 
				
			||||||
	run --cpu  1 "$model" "$@"
 | 
						done
 | 
				
			||||||
	run --cpu  4 "$model" "$@"
 | 
					 | 
				
			||||||
	run --cpu 16 "$model" "$@"
 | 
					 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.go
									
									
									
									
									
								
							@@ -296,6 +296,9 @@ func cmdInit(fs *flag.FlagSet, args []string) error {
 | 
				
			|||||||
	if fs.NArg() != 1 {
 | 
						if fs.NArg() != 1 {
 | 
				
			||||||
		return errWrongUsage
 | 
							return errWrongUsage
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						if err := os.MkdirAll(fs.Arg(0), 0755); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	if err := openDB(fs.Arg(0)); err != nil {
 | 
						if err := openDB(fs.Arg(0)); err != nil {
 | 
				
			||||||
		return err
 | 
							return err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user