visual-layer / fastdup

fastdup is a powerful free tool designed to rapidly extract valuable insights from your image & video datasets. Assisting you to increase your dataset images & labels quality and reduce your data operations costs at an unparalleled scale.
Other
1.52k stars 74 forks source link

Display ASCII art when user initiates run #274

Closed dnth closed 9 months ago

dnth commented 10 months ago

This PR adds a function to display fastdup ASCII art when user executes the .run method.

I've added two ASCII art in ascii_art.py as a list of strings. The art that will be displayed is chosen randomly from the list.

ascii_arts = [
    """                                                                                                 
               :++.                                                  ...                                       
             ;&&$+.                               ;x:                ;;;                                       
            .$&+                                  X&x                ;;;                                       
           X$&&&$$;    :$&&$+. ;$x    .x&&&X:   ;$&&&$$$:    :;;;;:. ;;;  :;;.      .;;.  :;;  :;;;;;.         
           +x&&Xxx: :$&&Xx++X&&$&$  .&&$+;+$&&; :x&&$xxx: .;;;;;:;;;;;;;  :;;.      .;;:  :;;;;;;:;;;;;:       
            .$&;   :$&X       +&&$  ;&$.    ;XX   X&x    .;;;       ;;;;  :;;.      .;;:  :;;;.      :;;:      
            .$&;   +&&.        x&$  .$&&$+.       X&x    ;;;         ;;;  :;;.      .;;:  :;;.        ;;;      
            .$&;   +&&.        x&$     ;X&&&&$.   X&x    ;;;         ;;;  :;;.      .;;:  :;;         ;;;      
            .$&;   :&&;       :&&$  .:.     x&&   X&x    :;;;       :;;;  .;;:      :;;:  :;;;       .;;;      
            .$&;    +&&$;   :X&&&$  ;&&+.  .X&&   X&&.    :;;;:   :;;;;;   ;;;;.  .;;;;:  :;;;;:.  .;;;;       
            .$&;      +&&&&&&X.+&$   .X&&&&&&+     X&&&&;   :;;;;;;;.;;;    .;;;;;;;:;;:  :;; :;;;;;;;.        
                                                                                          :;;                  
                                                                                          :;;                  
                                                                                          :;;                  
                                                                                          .::                                                                                                                                                                                                                                                                                                                                                       
""",
"""

   ad88                                          88                            
  d8"                             ,d             88                            
  88                              88             88                            
MM88MMM  ,adPPYYba,  ,adPPYba,  MM88MMM  ,adPPYb,88  88       88  8b,dPPYba,   
  88     ""     `Y8  I8[    ""    88    a8"    `Y88  88       88  88P'    "8a  
  88     ,adPPPPP88   `"Y8ba,     88    8b       88  88       88  88       d8  
  88     88,    ,88  aa    ]8I    88,   "8a,   ,d88  "8a,   ,a88  88b,   ,a8"  
  88     `"8bbdP"Y8  `"YbbdP"'    "Y888  `"8bbdP"Y8   `"YbbdP'Y8  88`YbbdP"'   
                                                                  88           
                                                                  88           

"""

]

Here's how it looks like in a notebook

image image

And in a terminal

image

Art generated using

dbickson commented 9 months ago

merged manually to 1.41, thanks!!