forked from mrq/DL-Art-School
Fix torchvision import bug
This commit is contained in:
parent
58886109d4
commit
553917a8d1
|
@ -10,6 +10,7 @@ from switched_conv_util import save_attention_to_image_rgb
|
||||||
from switched_conv import compute_attention_specificity
|
from switched_conv import compute_attention_specificity
|
||||||
import functools
|
import functools
|
||||||
import os
|
import os
|
||||||
|
import torchvision
|
||||||
|
|
||||||
|
|
||||||
class ImageGradient(nn.Module):
|
class ImageGradient(nn.Module):
|
||||||
|
@ -674,3 +675,5 @@ class Spsr5(nn.Module):
|
||||||
val["switch_%i_specificity" % (i,)] = means[i]
|
val["switch_%i_specificity" % (i,)] = means[i]
|
||||||
val["switch_%i_histogram" % (i,)] = hists[i]
|
val["switch_%i_histogram" % (i,)] = hists[i]
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user