Git Product home page Git Product logo

Comments (1)

xuanzhiliu avatar xuanzhiliu commented on June 1, 2024 5

Hi,I have solved this problem,here is my solution:
I used this method(random_color and random_brightness) to do data augmentation during the semantic segmentation,at first I try to augment both the original images.png and the mask.png so that this problem occured
However, the mask.png shouldn't and unnecessary to be augmented because the objects's location and shape and size isn't changed(except rotate and cutout),so that I deleted the codes:
p.ground_truth()
then the codes worked pretty
After that I got the reason why I can't changed the mask.png,due to the reason that the mode of the mask.png is 'L',which means:
mask.mode=='L',you can use the code to check it
However,the question is,only the imgs which mode is 'RGB' can be used in the image.py,I don't know why and have no idea to solve it.So,if you faced this problem,here are two ways can be taken into consideration:
1.check your img.mode and make sure they are'RGB' not others,like 'P','L'
2.make sure your imgs are png, this is important.I tryed to use jpg,jpeg in all the methods and all of them have bugs
I hope my advice can help you solve your problem
good luck!

from augmentor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.