-
Notifications
You must be signed in to change notification settings - Fork 1
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
29 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# paperbot | ||
PaperBot: Learning to Design Real-World Tools Using Paper | ||
# PaperBot: Learning to Design Real-World Tools Using Paper | ||
### Arxiv 2024 | ||
### [Project Page](https://paperbot.cs.columbia.edu/) | [Paper](https://paperbot.cs.columbia.edu/assets/paperbot.pdf) | ||
|
||
[PaperBot: Learning to Design Real-World Tools Using Paper](https://paperbot.cs.columbia.edu/) | ||
[Ruoshi Liu](https://ruoshiliu.github.io/)<sup>1</sup>, [Junbang Liang](https://www.linkedin.com/in/junbangliang/)<sup>1</sup>,[Sruthi Sudhakar](https://sruthisudhakar.github.io/)<sup>1</sup>, [Huy Ha](https://www.cs.columbia.edu/~huy/)<sup>1,2</sup>, [Cheng Chi](https://cheng-chi.github.io/)<sup>1,2</sup>, [Shuran Song](https://shurans.github.io/)<sup>1,2</sup>, [Carl Vondrick](https://www.cs.columbia.edu/~vondrick/)<sup>1</sup> <br> | ||
<sup>1</sup>Columbia University, <sup>2</sup>Stanford University | ||
|
||
<p align="center"> | ||
<img width="100%" src="figures/teaser.jpg"> | ||
</p> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,27 @@ | ||
import os | ||
from tqdm import tqdm | ||
from pdf2image import convert_from_path | ||
|
||
# Ensure this script is run in the directory containing your PDF files | ||
|
||
# Get all PDF files in the current directory | ||
pdf_files = [f for f in os.listdir('.') if f.endswith('.pdf')] | ||
|
||
# Set DPI for high quality. This still affects the output resolution but doesn't add margins. | ||
dpi_setting = 300 # Adjust this value as needed | ||
|
||
# tqdm | ||
pdf_files = tqdm(pdf_files, desc="Converting PDFs") | ||
for pdf_file in pdf_files: | ||
# Convert each PDF to a list of images | ||
# Use 'size' parameter only if you want to force a particular size. | ||
# Omitting 'size' to keep the original aspect ratio without forcing dimensions. | ||
images = convert_from_path(pdf_file, dpi=dpi_setting) | ||
|
||
# Save each page as an image | ||
for i, image in enumerate(images): | ||
# Constructing image file name based on PDF file name and page number | ||
image_file_name = f"{os.path.splitext(pdf_file)[0]}.jpg" | ||
image.save(image_file_name, 'JPEG', quality=100) | ||
|
||
print("Conversion completed.") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.