-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updates #12
updates #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Jen,
Thank you for the update: this looks great !
The are only a few nitpicking minor changes required.
Hope that's ok with you.
I'll review again once I spot your new commit addressing these.
Yaaaay!
@@ -53,7 +53,7 @@ void setup() { | |||
// disable automatic polling: request data manually when a new frame is ready | |||
runway.setAutoUpdate(false); | |||
// setup camera | |||
camera = new Capture(this,640,480); | |||
camera = new Capture(this, 640, 480); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the spaces are great: makes the code easier to read
float y = box.getFloat(1); | ||
float w = box.getFloat(2); | ||
float h = box.getFloat(3); | ||
for (int i = 0; i < data.size(); i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON update in the DenseCap example is great
examples/HTTP/GPT2/GPT2_012.pde
Outdated
@@ -107,5 +107,5 @@ void runwayDataEvent(JSONObject runwayData){ | |||
// point the sketch data to the Runway incoming data | |||
data = runwayData; | |||
//get the value of the "text" key | |||
text_output = data.getString("text"); | |||
text_output = data.getString("generated_text"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON update in the GPT example is great
text(className + " score: " + String.format("%.2f",score),x,y); | ||
text(label + " score: " + String.format("%.2f", val), x, y); | ||
|
||
//console logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these console logs still needed ?
(if not, please remove)
examples/HTTP/GPT2/GPT2_012.pde
Outdated
@@ -107,5 +107,5 @@ void runwayDataEvent(JSONObject runwayData){ | |||
// point the sketch data to the Runway incoming data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last remarks:
- please remove the .DS_Store file (I should've added that to a .gitignore, my bad)
- have the sketches changed names ? (e.g. GPT2.pde -> GPT2_012.pde / DenseCap.pde -> DenseCap_012.pde ?) if so, can they be renamed without the _012 suffix ?
Thank you so much for the contribution and apologies for the late reponse.
I will have another look after you commit the changes and merge 🙌
No problem, I'll get these changes made! |
small changes made
Changes made. :) |
JSON data structure updates