Open mangoHoli opened 4 years ago
@mangoHoli I met the same error, have you solved it?
I cant find data_parallel in utils. Only me?
@mangoHoli I met the same error, have you solved it?
I forgot how i solved it. But you can check if you got the following code in ‘WORK_PATH/crnn/models/utils.py’:
import torch.nn as nn import torch.nn.parallel
def data_parallel(model, input, ngpu): if isinstance(input.data, torch.cuda.FloatTensor) and ngpu > 1: output = nn.parallel.data_parallel(model, input, range(ngpu)) else: output = model(input) return output
I cant find data_parallel in utils. Only me?
import torch.nn as nn import torch.nn.parallel
def data_parallel(model, input, ngpu): if isinstance(input.data, torch.cuda.FloatTensor) and ngpu > 1: output = nn.parallel.data_parallel(model, input, range(ngpu)) else: output = model(input) return output
@mangoHoli, hello, Have you solved the problem?
@mangoHoli, hello, Have you solved the problem?
hi, have you solved it?
The angel of this character is: 0 Rotate the array of this img!
AttributeError Traceback (most recent call last)