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: interpolate() got an unexpected keyword argument 'antialias' #32

Open
lcx199712 opened this issue May 19, 2024 · 0 comments
Open

Comments

@lcx199712
Copy link

env: cuda 11.3 python3.8 torch 1.10.1+cu113

When I set the Granularity above 2.5, the results are normal. However, when I set the Granularity below 2.5, the following error occurs.
1716128176137

Traceback (most recent call last):
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/gradio/queueing.py", line 522, in process_events
response = await route_utils.call_process_api(
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/gradio/route_utils.py", line 260, in call_process_api
output = await app.get_blocks().process_api(
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/gradio/blocks.py", line 1689, in process_api
result = await self.call_function(
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/gradio/blocks.py", line 1255, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/gradio/utils.py", line 750, in wrapper
response = f(*args, **kwargs)
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "/home/lcx/SoM-main/demo_som.py", line 121, in inference
output, mask = inference_seem_pano(model, _image, text_size, label_mode, alpha, anno_mode)
File "/home/lcx/SoM-main/task_adapter/seem/tasks/inference_seem_pano.py", line 58, in inference_seem_pano
outputs = model.model.evaluate(batch_inputs)
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/seem/modeling/architectures/seem_model_v1.py", line 413, in evaluate
mask_pred_result = retry_if_cuda_oom(sem_seg_postprocess)(
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/detectron2/utils/memory.py", line 70, in wrapped
return func(*args, **kwargs)
File "/home/lcx/anaconda3/envs/som/lib/python3.8/site-packages/seem/modeling/modules/postprocessing.py", line 119, in sem_seg_postprocess
result = F.interpolate(
TypeError: interpolate() got an unexpected keyword argument 'antialias'

1716128436183
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