Better HN
topnewbestaskshowjobs
Log inSign up

eigenvalue

6,392 karma · joined Mar 13, 2013 (13y ago) · 1,218 submissions

Currently building pastel.network in NYC

See my open source projects here:

https://github.com/Dicklesworthstone

And my Twitter here: https://x.com/doodlestein

Submissions

comment 2y ago · link · parent

Yes, I imagine it's using the same OCR model as the iPhone, which is really incredibly good. In fact, it's so good that I made a little app for fun just to be able to use it for OCRing whole PDF books:

https://apps.apple.com/us/app/super-pdf-ocr/id6479674248

comment 2y ago · link · parent

Agreed, this should not be used for anything mission critical unless you're going to sit there and carefully review the output by hand (although that is still going to be 100x faster than trying to manually correct the raw OCR output).

Where it's most useful to me personally is when I want to read some old book from the 1800s about the history of the Royal Navy [0] or something like that which is going to look really bad on my Kindle Oasis as a PDF, and the OCR version available from Archive.org is totally unreadable because there are 50 typos on each page. The ability to get a nice Markdown file that I can turn into an epub and read natively is really nice, and now cheap and fast.

[0] https://archive.org/details/royalnavyhistory02clowuoft/page/...

comment 2y ago · link · parent

This is the best I've found so far:

https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-gguf

But I see that this new one just came out using Llama 3.1 8B:

https://huggingface.co/aimagelab/LLaVA_MORE-llama_3_1-8B-fin...

comment 2y ago · link · parent

You know, I’ve really looked hard at what’s out there and haven’t been able to find anything else that’s totally free/open, that runs well on CPU, and which has better quality output than Tesseract. I found a couple Chinese projects but had trouble getting them to work and the documentation wasn’t great. If you have any leads on others to try I’d love to hear about them.

One of the benefits of this project is that it doesn’t seem to matter that much that there are mistakes in the OCR output as long as you’re dealing with words, where the meaning would be clear to a smart human trying to make sense of it and knowing that there are probable OCR errors. For numbers it’s another story, though.

comment 2y ago · link · parent

Cool, I know there's a little Windows Power Toy for doing something similar:

https://learn.microsoft.com/en-us/windows/powertoys/text-ext...

But the built-in functionality for iOS has the best quality OCR of anything I've seem (much better than the Windows tool), and I constantly find myself screenshotting my phone screen and using that to extract the text. My project is really for longer scanned documents like old books and articles.

246.

Show HN: LLM-aided OCR – Correcting Tesseract OCR errors with LLMs(github.com ↗)

479 points · by eigenvalue · 2y ago · 172 comments

comment 2y ago · link · parent

That is very cool. Too bad it’s not open source.

comment 2y ago · link · parent

You could make a very winding maze that has a lot of false corridors that don't lead anywhere, so the algorithm would be forced to waste a lot of time following them to the end. Especially if many of these are "near solutions" that get close to the goal but can't get all the way.

comment 2y ago · link · parent

Things don't have to be exactly in the same category to usefully compare them. Groq has emerged as the premiere way to host LLMs at scale at speeds that are dramatically faster than anyone else, which allows for all kinds of new and exciting applications that wouldn't work if you had to wait for 50tok/sec responses, but which feel magical at 500tok/sec. And although the exciting with LLMs seems to be around the training of them, I think if you look out a few years, vastly more FLOPs will be expended on inference than on training.

comment 2y ago · link · parent

No problem. I also don't think you should be worried or disappointed about finding something interesting no matter what its provenance. As long as it's correct/fascinating (and in the case of this project, the animated output itself shows that it's doing something useful/interesting), none of that should really matter ultimately. I'll take a look at your project, sounds cool.

As for the temporal logic essay, you're very welcome to fork it and submit a PR to make something more formal/correct, but keep in mind that my goal with that was more explaining things in an intuitive way-- there are plenty of rigorous but impenetrable tomes already about mathematical logic!

comment 2y ago · link · parent

100% agree with you on this-- I find a functional approach, where there is no state to deal with, just input arguments and return values, to be much much easier because you can reason about each function separately.

comment 2y ago · link · parent

I do use LLMs to assist in writing and debugging code, but if you think there is any LLM model in the world that could easily conceive of and generate the code for this pathfinding project in a couple shots, I welcome you to try it and see what you get. I conceived of the idea of the project and how it would work, the various different maze generation techniques, how to optimize it, what the animation should look like, etc., with massive amounts of testing and evaluation along the way to figure out the best approach and how to make the output plots look nice.

Same with the README. It's the result of tons of manual intervention, many many steps of iteratively revising and changing, adding sections, improving sections, etc., and it's ultimately driven by the code itself which it is describing. The people who think it's so easy should try themselves and see if they can make anything that anyone thinks is cool or interesting with one or two LLM prompts.

comment 2y ago · link · parent

It takes a while to design, manufacture, and test/validate new silicon. There is also a very elaborate software stack on top of it. This is a multi-year effort to reproduce for an extremely talented, nimble engineering team. And by then, Groq will have even more refined and powerful systems available.

Also, when an end market is growing as fast as the AI compute market is, multiple players can do very well for years at a time. I think Groq also has a high probability of being acquired by Google/Microsoft/Apple/Meta if the FTC allows it. But they are probably better off following the hockey stick growth for a couple more years before doing that.

comment 2y ago · link · parent

Yeah, except I worked for a decade doing investment management at large hedge funds. And I'm also very familiar with the product offerings of both companies and think Groq is on an extreme growth trajectory. NVDA is extremely overvalued right now based on optimism around AI compute. If that optimism is warranted, then Groq is likely to 10x or more from here in the next few years.

comment 2y ago · link · parent

I generally hate "OOP" style code. I like individual functions that stand on their own. Also, it makes it much harder to use numba to optimize the code if they are methods inside a huge class.

In any case, this project is about making cool looking and educational animations of a pathfinding algorithm and generating interesting and diverse mazes to test it on. Not about making some amazing and modular reusable system.

comment 2y ago · link · parent

I was developing on one remote machine and running/testing it another machine. This is just a fun little learning/diversion project... I don't really care about it having a meticulous git commit history.

comment 2y ago · link · parent

Check out the other sample videos I linked to in my comment, those are easy to pause in VLC. I can look into extending the final frame for a few seconds, too.

comment 2y ago · link · parent

I have to say that I would much rather invest in Groq at a $2.8b valuation than NVDA at a $2.55T valuation. Hard to imagine a world where those two numbers are both correct at the same time.

comment 2y ago · link · parent

Yes, doing it that way sort of goes beyond the standard A* and becomes more of a "build your own custom pathfinder toolbox" where you can insert any additional considerations you have in your specific problem domain. Sort of like how you can add different factors to a loss function in machine learning (like trying to minimize non-zero parameter count for LASSO in addition to minimizing mean squared error).

comment 2y ago · link · parent

Here's a direct link to the YouTube demo video: https://www.youtube.com/watch?v=iA6XJRE6CTM

Also, here's the Lisp implementation post that inspired me (and which I based my Python code on):

https://news.ycombinator.com/item?id=41145528

And here are a few other sample videos using different settings-- I'll add more during the day as they finish generating:

https://www.dropbox.com/scl/fo/q13cxuvgy8vxr3ksi06uw/APkL57-...

261.

Show HN: Visual A* pathfinding and maze generation in Python(github.com ↗)

135 points · by eigenvalue · 2y ago · 38 comments

comment 2y ago · link · parent

I still can't get over how bad Alexa is, how it barely even works to do the simplest tasks, gets so confused so easily, etc. They have spent so much money. They have so many developers. They have so much compute available. The technology to make it way better is just lying around and open source now, and has been for the past 1.5 years at least. If I were put in charge of Alexa, I really think I would lay everyone off and start with a tiny group of really good devs and move as fast as possible to get something approaching the voice version of ChatGPT with all the integrations working. It's just mind boggling how poorly managed the whole thing has been, and I think it's a real indictment of top management for letting it get so bad after so much effort and money.

comment 2y ago · link · parent

I have to say, the experience of trying to sign up for Nvidia Enterprise so you can try the "NIM" packaged version of this model, is just icky and and awful now that I've gotten used to actually free and open models and software. It feels much nicer and more free to be able to clone llama.cpp and wget a .gguf model file from huggingface without any registration at all. Especially since it has now been several hours since I signed up for the Nvidia account and it still says on the website "Your License Should be Active Momentarily | We're setting up your credentials to download NIMs."

I really don't get Nvidia's thinking with this. They basically have a hardware monopoly. I shelled out the $4,000 or so to buy two of their 4090 GPUs. Why are they still insisting on torturing me with jumping through these awful hoops? They should just be glad that they're winning and embrace freedom.

comment 2y ago · link · parent

There are a lot of models coming out, but in my view, most don't really matter or move the needle. There are the frontier models which aren't open (like GPT-4o) and then there are the small "elite" local LLMs like Llama3 8B. The rest seem like they are mostly about manipulating benchmarks. Whenever I try them, they are worse in actual practice than the Llama3 models.

comment 2y ago · link · parent

They are almost certainly extracting the audio and then using Whisper or other superior speech recognition models. I made a free tool which can do this very efficiently for whole playlists of YouTube videos, so I'm sure they can do the same:

https://github.com/Dicklesworthstone/bulk_transcribe_youtube...

comment 2y ago · link · parent

Good, this guy is totally evil and malicious. He has plenty of capacity to pay for the damage he has caused people who actually did contribute to bitcoin.

comment 2y ago · link · parent

That’s pretty funny. Good test of value across the millennia. I wonder if the best aqueduct engineers during the peak of Ancient Rome’s power had villas worth their body weight in gold.

comment 2y ago · link · parent

Couldn't get it to work in Windows 11. Was able to run the just install script only after editing it to use the full path to the 7zip binary. Said it installed correctly, but then when I try to do `just run play whip` I got this:

  cargo:rustc-cfg=feature="ffmpeg_7_0"
  cargo:ffmpeg_7_0=true

  --- stderr
  cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
  thread 'main' panicked at C:\Users\jeffr\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bindgen-0.69.4\lib.rs:622:31:
  Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

comment 2y ago · link · parent

Pretty sure they offset any possible slowdowns by doing heroic optimizations in other parts of CPython. There was even some talk about keeping just those optimizations and leaving the GIL in place, but fortunately they went for the full GILectomy.

comment 2y ago · link · parent

I personally optimize more for development time and overall productivity in creating and refactoring, adding new features, etc. I'm just so much faster using Python than anything else, it's not even close. There is such an incredible world of great libraries easily available on pip for one thing.

Also, I've found that ChatGPT/Claude3.5 are much, much smarter and better at Python than they are at C++ or Rust. I can usually get code that works basically the first or second time with Python, but very rarely can do that using those more performant languages. That's increasingly a huge concern for me as I use these AI tools to speed up my own development efforts very dramatically. Computers are so fast already anyway that the ceiling for optimization of network oriented software that can be done in a mostly async way in Python is already pretty compelling, so then it just comes back again to developer productivity, at least for my purposes.

1
8910
41