Use local checkpoint in SSG
This commit is contained in:
parent
c93dd623d7
commit
969bcd9021
|
@ -11,7 +11,6 @@
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="jdk" jdkName="torch-cu11" jdkType="Python SDK" />
|
<orderEntry type="jdk" jdkName="torch-cu11" jdkType="Python SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="module" module-name="SwitchedConvolutions" />
|
|
||||||
</component>
|
</component>
|
||||||
<component name="PyDocumentationSettings">
|
<component name="PyDocumentationSettings">
|
||||||
<option name="format" value="PLAIN" />
|
<option name="format" value="PLAIN" />
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/../SwitchedConvolutions/.idea/SwitchedConvolutions.iml" filepath="$PROJECT_DIR$/../SwitchedConvolutions/.idea/SwitchedConvolutions.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/mmsr.iml" filepath="$PROJECT_DIR$/.idea/mmsr.iml" />
|
<module fileurl="file://$PROJECT_DIR$/.idea/mmsr.iml" filepath="$PROJECT_DIR$/.idea/mmsr.iml" />
|
||||||
</modules>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -10,7 +10,7 @@ from switched_conv.switched_conv_util import save_attention_to_image_rgb
|
||||||
from switched_conv.switched_conv import compute_attention_specificity
|
from switched_conv.switched_conv import compute_attention_specificity
|
||||||
import os
|
import os
|
||||||
import torchvision
|
import torchvision
|
||||||
from torch.utils.checkpoint import checkpoint
|
from utils.util import checkpoint
|
||||||
|
|
||||||
# VGG-style layer with Conv(stride2)->BN->Activation->Conv->BN->Activation
|
# VGG-style layer with Conv(stride2)->BN->Activation->Conv->BN->Activation
|
||||||
# Doubles the input filter count.
|
# Doubles the input filter count.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user