this post was submitted on 03 Apr 2024
194 points (88.5% liked)

Programmer Humor

19817 readers
262 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] astraeus 39 points 8 months ago (10 children)

Hey, if you understand Python it makes sense. If you’ve used the PIL before it makes even more sense. If you don’t understand Python, you should probably start by understanding Python.

[–] [email protected] 64 points 8 months ago (9 children)

Of course it makes sense, the code does pretty much nothing. The point is that the tutorial does not teach you about how to remove a background. It's like a "how to cook X" article that just tells you to "order X online" and that's it.

[–] lthlnkso 17 points 8 months ago

There are two kinds of "how-to".

  1. How to do something - that's what this is. Simple, straightforward, accomplishes its goal.

  2. How to understand something - explaining how and why this works and how you could generalize what this is doing to related projects.

However, even if you are interested in the second choice, this is still useful! Your next step is just to look into the libraries that the rembg package uses.

load more comments (8 replies)
load more comments (8 replies)