title: AttributeError: 'int' object has no attribute 'functional'
body: <p>I am trying to recur the papper <a href="https://github.com/cuiaiyu/dressing-in-order" rel="nofollow noreferrer">dressing-in-order</a> ,but i am facing with this error:&quot;AttributeError: 'int' object has no attribute 'functional'&quot;</p>
  <p>I just installed pytorch 1.10.1 ,Python 3.6.2 for windows 11.</p>
  <pre><code>import torch
  from models.dior_model import DIORModel
  import os, json
  import torch.nn.functional as F
  from PIL import Image
  import matplotlib.pyplot as plt
  %matplotlib inline
  </code></pre>
  <p><strong>error as follow:</strong></p>
  <pre><code>AttributeError                        Traceback (most recent call last)
  &lt;ipython-input-4-8f34f6d79efa&gt; in &lt;module&gt;()
    1 import torch
   ----&gt; 2 from models.dior_model import DIORModel
    3 import os, json
    4 import torch.nn.functional as F
    5 from PIL import Image
  
  ~\Desktop\DiOr复现\dressing-in-order-main\models\__init__.py in &lt;module&gt;()
   17 
   18 import importlib
  ---&gt; 19 from models.base_model import BaseModel
   20 
   21 
  
  ~\Desktop\DiOr复现\dressing-in-order-main\models\base_model.py in &lt;module&gt;()
    3 from collections import OrderedDict
    4 from abc import ABC, abstractmethod
  ----&gt; 5 from . import networks
    6 from tensorboardX import SummaryWriter
    7 import shutil
  
  ~\Desktop\DiOr复现\dressing-in-order-main\models\networks\__init__.py in &lt;module&gt;()
  ----&gt; 1 from .base_networks import *
    2 from .generators import *
    3 from .vgg import *
    4 from .gfla import PoseFlowNet, ResDiscriminator
    5 import importlib
  
  ~\Desktop\DiOr复现\dressing-in-order-main\models\networks\base_networks.py in &lt;module&gt;()
    6 import functools
    7 import torch
   ----&gt; 8 import torch.nn.functional as F
    9 from torch.autograd import Variable
   10 import math
  
  AttributeError: 'int' object has no attribute 'functional'
  </code></pre>