8,496 karma · joined Feb 1, 2017 (9y ago) · 2,551 submissions
comment 6y ago · link · parent
Not sure if it's the language, culture, or both, but I love it.
comment 6y ago · link · parent
Did you try (increasing exercise/water intake/sleep/just not sucking)? How about (decreasing gluten/carbs/aspartame/"toxins"/bogons)? it's just low-hanging fruit.
comment 6y ago · link · parent
aplay was the missing link.
comment 6y ago · link · parent
Various detectors are more or less thwarted by it. It actually surprised me how strong the artifacts from some GANs are - they can survive several passes of re-encoding, but accuracy does suffer.
But I still need the raw 720/1080 stream for training.
comment 6y ago · link · parent
I've been working on deepfake detection for the past two years. I use pytube3 and youtube-dl to scrape hours and hours of footage, not just youtube, but cspan, news sites, anything I can get my hands on. I have ~100 hours pulled so far, at multiple encoding rates.
Facebook recently changed their API and now the best I can scrape easily is 240p. That's insufficient to detect the artifacts the models need to train on. I can only pull 1/3rd of cspan videos I can watch through the viewer because again, api changes. It's a constant cat and mouse.
I'm not exaggerating when I say that if I don't have those wonderful folks out there keeping these tools and test suites up-to-date, this project is massively disadvantaged.
I don't have any public release assets at the moment, but you can read about Siwei Lyu and Hany Farid, who are leading the charge in deepfake detection.
http://www.cs.albany.edu/~lsw/
https://futurism.com/expert-online-disinfo-covid-black-lives...
comment 6y ago · link · parent
You could probably solve for it efficiently by computing a small Histogram of Oriented Gradients block, say 3x3, and use that as a hashmap key. Or Sobel filters might be even easier.
comment 6y ago · link · parent
A cookie recipe is reproducible - follow these steps and get tasty cookies. But will they be the tastiest cookies? For that, you need more detail, but the write-ups almost never have the full story.
Having put dozens of academic ML algos into production, anything short of `make reproduce` which bare minimum gives you a table of results on some validation subset, is merely reproducible-ish. Not having vcs cause it's "hard" is straight-up slacking (use svn if git is too hard).
comment 6y ago · link · parent
$$$.
I think this is a part of a bigger issue. 1st amendment protects citizens from government censorship. DMCA creates a loophole where the govt isn't deciding what to censor, they are merely enforcing compliance of what a corporation wants to censor, sidestepping any 1A defense.
This means ultimately either platforms arbitrate, or the receiving party has to sue, either way it's chilling.
comment 6y ago · link · parent
comment 6y ago · link · parent
It's pretty seamless to flow from bashlike pipelines to pythonic imports and functions.
Autocomplete out of the box is better than bash, comparable to fish or ipython.
comment 6y ago · link · parent
I don't see any way in which that could easily fit with POSIX time types, unless you keep the existing 32-bit time_t and tv_nsecs fields and tack on two 16-bit fields for extending precision in either direction. But ISO C allows time_t to be a floating point number, which opens a few doors.
What about UTF-8 style variable length times? Would that be too messy?
Edit: looks like most 64-bit OSes are already or are switching to 64-bit time_t. So that solves half the problem, but no picoseconds just yet. I guess that's what int64 or float64/80 is for.
comment 6y ago · link · parent
I like trying new languages and have played with dozens, and JS and Prolog are the only languages that have made me actually scream.
You should definitely try to branch out. At the very least it gives you new ways of thinking about things.
Go or dart is probably the best for "JS killer" in terms of maturity, tooling, and targeting the front end, followed by haxe, swift and/or rust (they may be better even, but frankly I'm not as familiar with them).
comment 6y ago · link · parent
OTOH, I am not keen on this opening the door to even more stuff newbies have to learn, especially in the ML domain, where you just know people will use macros to do all manner of "clever tricks".
This proposal also seems too limited to truly enable the kind of performance speedups numerical Pythonistas really want.
The ! notation feels icky and "un-python" to me. Maybe that's just (lack of) mere exposure effect.
What I want instead: improve/stabilize tools and CPython hooks for decompiling, code generation, AST manipulation, and the like. When I can go source -> AST -> source with confidence, maybe lets revisit macros.
comment 6y ago · link · parent
Certainly it's years away but I dunno...This feels possible in an engineering sense.
comment 6y ago · link · parent
comment 6y ago · link · parent
`rm -rf /var/lib/apt/lists/*` in the same RUN decreases bloat and I think possibly decreases cache misses as well.
comment 6y ago · link · parent
1. Solve the problem.
2. Ensure correctness of that solution
3. The code is easy to reason about
4. The app is robust
5. "good enough" performance
6. Performance tuning
Which is of course the "correct answer", and of course in practice these all blend together I will emphasize any number of those at a given time (who doesn't love spending an occasional afternoon just chasing pointless benchmarks?). But I never come at it from a "big O mindset" even when that's what I'm doing in practice, I just call it "common sense" and heuristics: don't put slow things in tight loops, memoize when you can, and leverage concurrency.
In my line of work (CV), moving a slow blocking operation from serial to async will get you easy, bigger wins 90% of the time, vs seeking out something in polytime and refactoring to nlogn.