[PR #22] [CLOSED] remove unused/repeated imports #447

Closed
opened 2026-10-31 21:15:06 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openai/CLIP/pull/22
Author: @amrzv
Created: 1/24/2021
Status: ❌ Closed

Base: main ← Head: edit-colab-notebook


📝 Commits (2)

  • 90c1b12 remove unused/repeated imports
  • a393830 edited markdown; removed regex installation (it's already in colab)

📊 Changes

1 file changed (+35 additions, -109 deletions)

View changed files

📝 Interacting_with_CLIP.ipynb (+35 -109)

📄 Description

Hi. Cleaned-up colab notebook:

  • tried running in default colab environment with Torch version: 1.7.0+cu101 and outputs are the same; deleted reinstalling pytorch and torchvision to simplify notebook;
  • removed unused imports os, IPython.display, OrderedDict;
  • removed repeated imports np, torch, Image;
  • prettified a little (according pep8).

Tested in colab (run-all), the notebook worked as expected without errors with same outputs.
P.S: outputs left the same.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openai/CLIP/pull/22 **Author:** [@amrzv](https://github.com/amrzv) **Created:** 1/24/2021 **Status:** ❌ Closed **Base:** `main` ← **Head:** `edit-colab-notebook` --- ### 📝 Commits (2) - [`90c1b12`](https://github.com/openai/CLIP/commit/90c1b12d6379e53176d975d0e556e4e7aacdbba2) remove unused/repeated imports - [`a393830`](https://github.com/openai/CLIP/commit/a39383095604d480cf02e98b7112e0f68ce9dc8c) edited markdown; removed regex installation (it's already in colab) ### 📊 Changes **1 file changed** (+35 additions, -109 deletions) <details> <summary>View changed files</summary> 📝 `Interacting_with_CLIP.ipynb` (+35 -109) </details> ### 📄 Description Hi. Cleaned-up colab notebook: - tried running in default colab environment with `Torch version: 1.7.0+cu101` and outputs are the same; deleted reinstalling `pytorch` and `torchvision` to simplify notebook; - removed unused imports `os`, `IPython.display`, `OrderedDict`; - removed repeated imports `np`, `torch`, `Image`; - prettified a little (according pep8). Tested in colab (run-all), the notebook worked as expected without errors with same outputs. P.S: outputs left the same. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 21:15:06 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#447
No description provided.