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

Can't call numpy() on Tensor that requires grad #203

Open
pretbc opened this issue Jan 19, 2024 · 0 comments
Open

Can't call numpy() on Tensor that requires grad #203

pretbc opened this issue Jan 19, 2024 · 0 comments

Comments

@pretbc
Copy link

pretbc commented Jan 19, 2024

Below error occur when I run :

from joblib import Parallel, delayed

Parallel(n_jobs=4, )(
                delayed(my_func)(path for path in
                tqdm(dump_paths, colour="green", leave=False)

my_func(...) call detect.detect_image(images)

 File "venv/lib/python3.10/site-packages/feat/detector.py", line 889, in detect_image
    raise ValueError(
ValueError: when using a batch_size > 1 all images must have the same dimensions or output_size must not be None so py-feat can rescale images to output_size. See pytorch error: 
Can't call numpy() on Tensor that requires grad. Use tensor.detach().numpy() instead.
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