Closed jpainam closed 4 months ago
Hi, this is my code.
from clodsa.augmentors.augmentorFactory import createAugmentor from clodsa.transformers.transformerFactory import transformerGenerator from clodsa.techniques.techniqueFactory import createTechnique PROBLEM = "instance_segmentation" ANNOTATION_MODE = "coco" INPUT_PATH = "/home/fst/data/VOCdevkit/VOC2007/JPEGImages" GENERATION_MODE = "linear" OUTPUT_MODE = "coco" OUTPUT_PATH = "/home/fst/data/augmented/" augmentor = createAugmentor(PROBLEM, ANNOTATION_MODE, OUTPUT_MODE, GENERATION_MODE, INPUT_PATH, {"outputPath": OUTPUT_PATH} ) transformer = transformerGenerator(PROBLEM) '''for angle in [90, 180]: rotate = createTechnique("rotate", {"angle": angle}) augmentor.addTransformer(transformer(rotate)) ''' flip = createTechnique("flip", {"flip": 1}) augmentor.addTransformer(transformer(flip)) none = createTechnique("none", {}) augmentor.addTransformer(transformer(none)) augmentor.applyAugmentation()
When i run, i get this error
libpng error: Write Error libpng error: Write Errorlibpng error: Write Error libpng error: Write Errorlibpng error: Write Errorlibpng error: Write Error libpng error: Write Error ^CError in image: /home/fst/data/VOCdevkit/VOC2007/JPEGImages/562.png libpng error: Write Errorlibpng error: Write Errorlibpng error: Write Error libpng error: Write Error libpng error: Write Error libpng error: Write Error libpng error: Write Error libpng error: Write Errorlibpng error: Write Error libpng error: Write Error libpng error: Write Errorlibpng error: Write Errorlibpng error: Write Error libpng error: Write Errorlibpng error: Write Error libpng error: Write Error libpng error: Write Error .........
I updated libpng as describe in this StackOverflow link and
libpng
x = cv2.imread('img.png') cv2.imwrite('./new_img.png', x)
give no errors. Please, what might be the problem? Thank you.
Hi!! I am encountering the same issue . libPng write error. did it work out??
Please update libpng using this link https://github.com/ContinuumIO/anaconda-issues/issues/6271
Hi, this is my code.
When i run, i get this error
I updated
libpng
as describe in this StackOverflow link andgive no errors. Please, what might be the problem? Thank you.