When I implement the following code:

  
      github.com
  
  
    leaderj1001/Billion-scale-semi-supervised-learning/blob/master/make_sample_data.py 12
import torch
import torch.nn.functional as F
import cv2
import numpy as np
import os
import glob
import argparse
import json
import random
import codecs

from model import resnet50

use_cuda = torch.cuda.is_available()
device = torch.device('cuda' if use_cuda else 'cpu')


def get_args():
    parser = argparse.ArgumentParser("parameters")



  This file has been truncated. show original

  
  
    
    
  
  


It gives me the following error
File “make_sample_data.py”, line 149, in 
main(args)
File “make_sample_data.py”, line 132, in main
if args.load_pretrained:
AttributeError: ‘NoneType’ object has no attribute ‘load_pretrained’