question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pytorch error albumentations

See original GitHub issue

When I pass my numpy array through the transformer:

need_to_run = force_apply or random.random() < self.p
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
jlevy44commented, May 24, 2019

Nice package! Working now in my pipeline!

0reactions
GadirajuSanjayvarmacommented, Mar 14, 2020

I’ve just been reading through the docs. I use torchvision, so I just didn’t realize that you have to specify the arguments to the transformer when you call it, like image=

Can you plz explain it elaborately.I ma also facing the same issue.Force_apply shou;ld be boolean but it is getting PIL image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Albumentation error - PyTorch Forums
I am using albumentations for data augmentation but I am getting the error in the title. import torch import torch.nn as nn
Read more >
FAQ - Albumentations Documentation
I am receiving an error message Failed building wheel for imagecodecs when I ... with an image or a mask to a PyTorch...
Read more >
module 'albumentations' has no attribute 'pytorch' #692 - GitHub
Bug I want to use albumentations.pytorch library. but I get an error that there is no library. To Reproduce import albumentations import ...
Read more >
Augmentation using Albumentations in Pytorch OD
How do I check if PyTorch is using the GPU? 1 · TypeError: Cannot handle this data type · 2 · Error while...
Read more >
albumentations.torch seems to be renamed as ... - Kaggle
The above line causes the following error: ModuleNotFoundError: No module named 'albumentations.torch'. It seems to be renamed as albumentations.pytorch.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found