Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lessons/4-ComputerVision/07-ConvNets/pytorchcv.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def check_image(fn):
im = Image.open(fn)
im.verify()
return True
except:
except Exception:
return False

def check_image_dir(path):
Expand Down
2 changes: 1 addition & 1 deletion lessons/4-ComputerVision/07-ConvNets/tfcv.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def check_image(fn):
im = Image.open(fn)
im.verify()
return im.format=='JPEG'
except:
except Exception:
return False

def check_image_dir(path):
Expand Down
2 changes: 1 addition & 1 deletion lessons/4-ComputerVision/08-TransferLearning/pytorchcv.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def check_image(fn):
im = Image.open(fn)
im.verify()
return True
except:
except Exception:
return False

def check_image_dir(path):
Expand Down
2 changes: 1 addition & 1 deletion lessons/4-ComputerVision/08-TransferLearning/tfcv.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def check_image(fn):
im = Image.open(fn)
im.verify()
return im.format=='JPEG'
except:
except Exception:
return False

def check_image_dir(path):
Expand Down