-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,894 additions
and
193 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import random | ||
|
||
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 | ||
""" | ||
|
||
] | ||
|
||
|
||
def get_ascii_art(): | ||
choice = random.randint(0, len(ascii_arts) - 1) | ||
return ascii_arts[choice] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# FastDup Software, (C) copyright 2022 Dr. Amir Alush and Dr. Danny Bickson. | ||
# This software is free for non-commercial and academic usage under the Creative Common Attribution-NonCommercial-NoDerivatives | ||
# 4.0 International license. Please reach out to [email protected] for licensing options. | ||
|
||
from fastdup.sentry import fastdup_capture_exception | ||
|
||
import os | ||
cat = {0: u'__background__', | ||
|
@@ -103,8 +103,8 @@ def read_coco_labels(path): | |
#print('cat is', cat[int_cat]) | ||
label_dict[os.path.join(path.replace('labels','images'),f).replace('.txt','.jpg')] = cat[int_cat] | ||
except Exception as ex: | ||
print('Failed to read file ', os.path.join(path, f), ' with error: ', ex) | ||
fastdup_capture_exception(f'Failed to read coco file {os.path.join(path, f)}', ex) | ||
|
||
return label_dict | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.