Skip to content

Commit

Permalink
Refactor code for speed and clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jun 9, 2024
1 parent 7f543ba commit c0e4b2f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion general_json2yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import cv2
import pandas as pd
from PIL import Image

from utils import *


Expand Down
1 change: 0 additions & 1 deletion labelbox_json2yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import yaml
from PIL import Image
from tqdm import tqdm

from utils import make_dirs


Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def exif_size(img):
rotation = dict(img._getexif().items())[orientation]
if rotation in [6, 8]: # rotation 270
s = (s[1], s[0])
except:
except Exception:
pass

return s
Expand Down

0 comments on commit c0e4b2f

Please sign in to comment.