Skip to content

Commit

Permalink
make images 4x2
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonyzhang committed Feb 22, 2024
1 parent d771b9f commit 8b4d972
Show file tree
Hide file tree
Showing 31 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions process_videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@


def process_images(input_dir, output_dir):
for image in glob(osp.join(input_dir, "*.png")):
for image in glob(osp.join(input_dir, "*.jpg")):
output_image = osp.join(output_dir, osp.basename(image).replace(".png", ".jpg"))
cmd = ["convert", image, "-resize", "400x400", output_image]
cmd = ["convert", image, "-resize", "400x", output_image]
print(" ".join(cmd))
subprocess.call(cmd)

Expand All @@ -35,5 +35,5 @@ def process_videos(input_dir, output_dir):


if __name__ == "__main__":
# process_images(INPUT_DIR, OUTPUT_DIR)
process_videos(INPUT_DIR, OUTPUT_DIR)
process_images(INPUT_DIR, OUTPUT_DIR)
# process_videos(INPUT_DIR, OUTPUT_DIR)
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/co3d_results/bottle_34_1435_4403_N8.jpg
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.
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.
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.
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 modified resources/co3d_results_processed/apple_189_20388_37651_N8.jpg
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 modified resources/co3d_results_processed/banana_434_61617_120791_N8.jpg
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/co3d_results_processed/bench_167_18175_33897_N8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/co3d_results_processed/bicycle_196_21125_43621_N8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/co3d_results_processed/bottle_34_1435_4403_N8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/co3d_results_processed/chair_187_20196_37207_N8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/co3d_results_processed/handbag_31_1278_3933_N8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/co3d_results_processed/hydrant_147_16374_32167_N8.jpg
Binary file modified resources/co3d_results_processed/plant_160_17628_33564_N8.jpg

0 comments on commit 8b4d972

Please sign in to comment.