Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #50

Open
mobaigy opened this issue Sep 21, 2023 · 0 comments

Comments

@mobaigy
Copy link

mobaigy commented Sep 21, 2023

When I follow the demo.ipynb in running the `for seed in ["42", "44", "82", "100", "800"]:

model_type = f"adapter_{r}"

files = glob.glob(f"{root}/seed{seed}/*/sup_vitb16_imagenet21k/*/*/{LOG_NAME}")
for f in files:
    df = get_df(files, f"seed{seed}", root, is_best=False, is_last=True)
    if df is None:
        continue
    df["seed"] = seed
df_list.append(df)`

There was a error:Traceback (most recent call last): File "/home/isalab303/.conda/envs/vpt/lib/python3.7/code.py", line 90, in runcode exec(code, self.locals) File "<input>", line 4, in <module> File "/home/isalab303/GY/vpt-main/src/utils/vis_utils.py", line 161, in get_df for job_path in tqdm(files, desc=model_type): File "/home/isalab303/GY/vpt-main/src/utils/vis_utils.py", line 120, in get_training_data # "lr": float(lr) * 256 / int(batch_size), TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
So what should be done to fix this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant