Better HN
topnewbestaskshowjobs
Log inSign up

zerojames

3,625 karma · joined Jan 5, 2022 (4y ago) · 624 submissions

jamesg.blog.
Submissions

comment 3y ago · link · parent

Yes indeed! Dan, we sincerely appreciate the work you do nurture, moderate, and maintain the HN community!

542.

Creating an index for my personal website using NLP(jamesg.blog ↗)

1 points · by zerojames · 3y ago · discuss

comment 3y ago · link · parent

I have added in a video showing inference into the README -- thank you for the feedback!

comment 3y ago · link · parent

Thank you for your comment!

Inference is all about reducing the friction associated with deployment. Set up a Docker container (which works on a range of architectures, with TRT acceleration), load your model (or use SAM or CLIP, which come out of the box), then you can start sending HTTP requests to get predictions.

I'd love to know more about how we can improve the docs (I'm a big documentarian; feedback on docs is always sincerely appreciated).

comment 3y ago · link · parent

Congratulations to India! Every time I read of launches to space, I think (and sometimes say aloud) "wow!" It is awesome in the traditional sense of the world.

546.

How minimal is too minimal? Brainstorming syntax for VisionScript(jamesg.blog ↗)

1 points · by zerojames · 3y ago · discuss

547.

Show HN: Pip install inference, open source computer vision deployment(github.com ↗)

71 points · by zerojames · 3y ago · 16 comments

comment 3y ago · link · parent

Can you remember what terminal it was in? I would love to add it!

Also, it's never too late to get back into piano! :)

comment 3y ago · link · parent

Yes indeed -- thank you! :facepalm:

comment 3y ago · link · parent

I have used KL-divergence in authorship verification: https://github.com/capjamesg/pysurprisal/blob/main/pysurpris...

My theory was: calculate entropy ("surprisal") of used words in a language (in my case, from an NYT corpus), then calculate KL-divergence between a given prose and a collection of surprisals for different authors. The author to whom the prose had the highest KL-divergence was assumed to be the author. I think it has been used in stylometry a bit.

comment 3y ago · link · parent

Thank you for the report! I have just pushed a fix! The code is open source, too; MIT licensed: https://github.com/capjamesg/airport-pianos

The list is at https://airportpianos.org/_data/airports.json.

A friend said he wanted to post the data to OpenStreetMap. I hope the data is syndicated to different places!

Edit: Fixed errant close bracket.

comment 3y ago · link · parent

Hello everyone! One of my favourite things to do is play piano in airports. The prospects of discovering, or being able to play, a piano brighten my mood when travelling.

That's why I made Airport Pianos, a site dedicated to pianos in airports. The site is text-focused and has a client-side search feature that you can use for planning an itinerary.

One of my favourite parts about this project is seeing submissions and data on Google Search Console about piano-related queries. It's so nice to see so many people out there looking for airport pianos; if you know of one, let me know!

My favourite airport piano? Maybe Chicago; really well maintained.

P.S. pianos.pub and www.worldpianos.org also have airport pianos listed!

553.

Airport Pianos: Find Pianos in Airports(airportpianos.org ↗)

52 points · by zerojames · 3y ago · 46 comments

comment 3y ago · link · parent

Thank you so much!

I have been thinking about learning progressions with a language like VisionScript. I see a notebook-like environment being a great place to start; dragging and dropping is intuitive (and fun!).

But if that notebook can introduce someone to the same primitives they can use in a text-based programming language? That gives you the ability to help someone graduate to a full programming environment.

Notebook -> Text that uses the same syntax as the notebook (you could drag+drop in the notebook then write out the text as a starting point!) -> Writing your own programs.

A friend suggested that the implicit state approach of VisionScript could be used in other areas too like audio. I reasoned that we could actually use many of the same primitive names and syntax; just a different backend. I don't know enough about audio processing, but the idea is fascinating!

comment 3y ago · link · parent

My pleasure! I sincerely appreciate your words! It was a pleasure to be on the front page of HN.

comment 3y ago · link · parent

VisionScript goes beyond OpenCV in terms of utilities, providing models for use out of the box.

To classify images, you can use Classify["class 1", "class 2", ...]; to run object detection you can use Detect["object"]; to run segmentation, use Segment["class"]. More abstract methods include Search[], that lets you build a semantic search engine in a few lines of code:

    Load["./folder/"]
    Search["coffee cup"]
    Get[1] # get the top result
    Show[]
I am aiming to encode best practices from computer vision behind the scenes (I work in the industry) to enable one to build powerful applications intuitively, with few lines of code!

comment 3y ago · link · parent

To the extent that VisionScript uses it behind the scenes for various things (i.e. counting objects in a zone https://github.com/capjamesg/visionscript/blob/main/visionsc...)!

comment 3y ago · link · parent

Thank you so much! Comments like this have really made my day.

Scratch does have an "Extensions" feature, so perhaps it would be possible (https://github.com/scratchfoundation/scratch-vm/blob/develop...)!

comment 3y ago · link · parent

Great question! Development has been guided by my asking myself -- and discussing with friends -- what problems I/we would like to solve (or what would be fun!), then building for those use cases. This is evident in the WIP DetectDistinctScenes[] method.

Example script:

    In["file.mov"]
        Classify["building", "garden"]
    Endin

    DetectDistinctFrames[]
This method is more advanced than most. It uses CLIP behind the scenes to detect when classifications change for more than N frames in a video, and generates a list of timestamps you can use to determine scene changes.

I'm keen to build more specific functions for common CV tasks. My code most certainly needs cleaned (the main lang.py is > 2k LOCs right now) but I do have a contributing guide that you can follow to add features should you be interested: https://github.com/capjamesg/visionscript/blob/main/CONTRIBU...

comment 3y ago · link · parent

I have been thinking about this! What would you like to be able to do?

On a separate note, one idea I had was to have rock paper scissors as a quickstart. You could Use["rock paper scissors"] to use that as a model; there could perhaps be a registry of curated, fun models that people can play with out of the box (aka ones good for classroom use).

comment 3y ago · link · parent

Thank you for your comment! Iteration is in the works right now.

I wrote this script at the weekend:

    Load["./bus.jpg"]

    In[Detect["person"]]
        Greyscale[]
    Endin

    Show[]
In[] is our iterator (which came from "in a folder", which was the original use). I'm adding data types. In the above program, In[] is iterating over a Detection object. Behind the scenes, each bounding box is selected, the nested statements (in this case, Greyscale[] are evaluated), then any transformations are applied to only the regions in the bounding box.

Thus the impact is:

    1. Load a file
    2. Find all the people
    3. For each person, turn that region greyscale
    4. Show the resulting image
My rationale for implicit state (I haven't heard that term until now -- thank you!) is that it may be more intuitive for a beginner. Maybe that will be wrong, but I'm eager to experiment!

(I am beyond elated to be on the front page of HN!)

(edited to get the code snippet and list formatting right!)

562.

Show HN: VisionScript, abstract programming language for computer vision(github.com ↗)

93 points · by zerojames · 3y ago · 23 comments

563.

SUSE Parody Music Videos(youtube.com ↗)

3 points · by zerojames · 3y ago · discuss

comment 3y ago · link · parent

I wish there were a way to “follow” a HN thread. I am very curious about this, too.

565.

OpenAI Code Interpreter:“Interestingly, the operation completed without errors.”(blog.roboflow.com ↗)

3 points · by zerojames · 3y ago · discuss

566.

KNN using a gzip-based distance outperforms BERT for OOD sentence classification(twitter.com ↗)

4 points · by zerojames · 3y ago · discuss

comment 3y ago · link · parent

https://jamesg.blog

comment 3y ago · link · parent

The IndieWeb is a nice corner of the web where you can find people with whom to chat about tech, the web, and many other things! https://indieweb.org/discuss

569.

Comparing AI-Labeled Data to Human-Labeled Data(blog.roboflow.com ↗)

2 points · by zerojames · 3y ago · discuss

1
1718192021