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
""" | |
Module to download a PDF from Sci-Hub using a provided DOI. | |
This script uses curl to fetch a PDF from Sci-Hub based on the provided DOI and | |
saves it to a specified output path. | |
Example usage: | |
python get_pdf.py "10.1038/s41586-020-2649-2" "output.pdf" | |
If no output path is specified, the DOI will be used as the filename with invalid |
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
# from https://github.com/OpenAdaptAI/OpenAdapt/blob/44d4a55f332ef3b846933b38854372d4166fd2ea/experiments/gpt4v.py | |
"""Example usage of GPT4-V API. | |
Usage: | |
OPENAI_API_KEY=<your_api_key> python3 gpt4v.py \ | |
[<path/to/image1.png>] [<path/to/image2.jpg>] [...] "text prompt" | |
Example: |
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
# Install script of Caffe2 and Detectron on AWS EC2 | |
# | |
# Tested environment: | |
# - AMI: Deep Learning Base AMI (Ubuntu) Version 3.0 - ami-38c87440 (CUDA is already installed) | |
# - Instance: p3.2xlarge (V100 * 1) | |
# - Caffe2: https://github.com/caffe2/caffe2/commit/e1f614a5f8ae92f4ecb828e1d5f84d2cd1fe12bd | |
# - Detectron: https://github.com/facebookresearch/Detectron/commit/a22302de27f9004422a96414ed4088d05c664978 | |
# | |
# Usage: | |
# Launch a fresh EC2 instance, put this script on the /home/ubuntu/, and run the following command. |