This file contains hidden or 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
| read -r -p "Input project name: " project_name | |
| mkdir -p $project_name | |
| cd $project_name | |
| mkdir -p assets | |
| mkdir -p configs | |
| mkdir -p datasets | |
| mkdir -p models | |
| mkdir -p notebooks | |
| mkdir -p scripts |
This file contains hidden or 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
| if (Translator.BetterTeX) { | |
| const conferenceRules = [ | |
| { re: /icassp|international conference on acoustics,?\s*speech,?\s*(and)?\s*signal processing/i, | |
| value: 'Proc. ICASSP' }, | |
| { re: /interspeech|conference of the international speech communication association/i, | |
| value: 'Proc. Interspeech' }, | |
| { re: /\bneurips\b|\bnips\b|advances in neural information processing systems|conference on neural information processing systems/i, | |
| value: 'NIPS' }, | |
| { re: /\bicml\b|international conference on machine learning/i, | |
| value: 'Proc. ICML' }, |
This file contains hidden or 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
| import fitz # PyMuPDF | |
| import os | |
| from PIL import Image | |
| from tqdm import tqdm | |
| import cv2 | |
| import numpy as np | |
| import img2pdf | |
| H = 1280 | |
| def pdf_to_png(*args): |