Skip to content

Commit 26b800e

Browse files
committed
Fix image loading example in README
1 parent d60cfc8 commit 26b800e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ Let's use LRP to explain why an image of a castle gets classified as such using
2424
using ExplainableAI
2525
using Flux
2626
using Metalhead
27-
using FileIO
27+
using FileIO, HTTP
2828

2929
# Load model
3030
model = VGG(16, pretrain=true).layers
3131
model = strip_softmax(flatten_chain(model))
3232

3333
# Load input
34-
url = "https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle.jpg"
34+
url = HTTP.URI("https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle.jpg")
3535
img = load(url)
3636
input = preprocess_imagenet(img)
3737
input = reshape(input, 224, 224, 3, :) # reshape to WHCN format

0 commit comments

Comments
 (0)