Comments (1)
Like the error says Albumentations expects named arguments. E.g.
image = self.transforms(image) # raises Error
image = self.transforms(image=image) # doesn't raise Error
You should also change from a PIL image to a numpy array:
image = self.transforms(image=np.array(image))
Lastly, you can't use copy-paste without masks and bounding boxes. In coco.py, this looks like:
# pack outputs into a dict
output = {
'image': image,
'masks': masks,
'bboxes': bboxes
}
return self.transforms(**output)
from copy-paste-aug.
Related Issues (18)
- AttributeError: 'CopyPaste' object has no attribute '_to_dict'
- The example script is no use for my aerial image
- How do I use copy-paste-aug in instance segmentation HOT 1
- how to integrate with detectron2? HOT 1
- RandomScale of albumentations drops "bboxes" content in coco annotations HOT 1
- Mosaic can't be used for Instance Segmentation?
- An error occurred while using Copy-Paste! HOT 2
- Facing issues with test dataset ../../datasets/coco/train2014/
- How to use copy-paste augmentation for YOLOX object detection
- How do I use this augment data? HOT 3
- Reproduce results in Paper HOT 3
- How to use this copy-paste for semantic segmentation HOT 3
- How to use copy-paste augmentation for YOLO5 object detection HOT 4
- copy paste to background image HOT 2
- How can I use the copy-paste augmentation without albumentation framework? HOT 1
- How To Visualize Augmented Images in As presented in Fig 2. HOT 1
- TypeError: __init__() takes from 3 to 5 positional arguments but 6 were given. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copy-paste-aug.