Traceback (most recent call last):


 "trainval_net.py", line 209, in <module>

imdb.num_classes, training=True)


 "/home/wuwenfu/faster-rcnn.pytorch-master/lib/roi_data_layer/roibatchLoader.py", line 54, in __init__

self.ratio_list_batch[left_idx:(right_idx+1)] = torch.tensor(target_ratio.astype(np.float64)) # trainset ratio list ,each batch is same number
AttributeError: 'int' object has no attribute 'astype'

Traceback (most recent call last):


 "train.py", line 357, in <module>

train()


 "train.py", line 100, in train

grad = tape.gradient(mse_loss, G.weights)
AttributeError: 'Model' object has no attribute 'weights'**
