Skip to content

Commit 110f0a9

Browse files
authored
Use resnet18 due to RAM limitation
Google Colab crashes due to insufficient RAM (more than 12 GB is required) if resnet101 or resnet50 are used. Thus, resnet18 is used instead (approximately 6 GB is used).
1 parent b4d1772 commit 110f0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/introyt/captumyt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
# now.
159159
#
160160

161-
model = models.resnet101(weights='IMAGENET1K_V1')
161+
model = models.resnet18(weights='IMAGENET1K_V1')
162162
model = model.eval()
163163

164164

0 commit comments

Comments
 (0)