Skip to content
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

Merged
merged 2 commits into from
Feb 25, 2020
Merged

updates #12

merged 2 commits into from
Feb 25, 2020

Conversation

j3nsykes
Copy link
Contributor

JSON data structure updates

JSON data structure updates
Copy link
Contributor

@orgicus orgicus left a 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);
Copy link
Contributor

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++) {
Copy link
Contributor

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

@@ -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");
Copy link
Contributor

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
Copy link
Contributor

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)

@@ -107,5 +107,5 @@ void runwayDataEvent(JSONObject runwayData){
// point the sketch data to the Runway incoming data
Copy link
Contributor

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 🙌

@j3nsykes
Copy link
Contributor Author

No problem, I'll get these changes made!

small changes made
@j3nsykes
Copy link
Contributor Author

Changes made. :)

@orgicus orgicus merged commit ea06a34 into runwayml:master Feb 25, 2020
@orgicus orgicus mentioned this pull request Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants