Skip to content

Commit e834c77

Browse files
shiffmanjoeyklee
authored andcommitted
SketchRNN creation function should be lowercase (#325)
This is related to the discussion in #297.
1 parent 5e36ae2 commit e834c77

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/SketchRNN/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class SketchRNN {
8585
callback = cb;
8686
}
8787

88-
const strokes = seedStrokes.map((s) => {
88+
const strokes = seedStrokes.map(s => {
8989
const up = s.pen === 'up' ? 1 : 0;
9090
const down = s.pen === 'down' ? 1 : 0;
9191
const end = s.pen === 'end' ? 1 : 0;
@@ -102,6 +102,6 @@ class SketchRNN {
102102
}
103103
}
104104

105-
const SketchRNNGenerator = (model, callback, large = true) => new SketchRNN(model, callback, large);
105+
const sketchRNN = (model, callback, large = true) => new SketchRNN(model, callback, large);
106106

107-
export default SketchRNNGenerator;
107+
export default sketchRNN;

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import * as imageUtils from './utils/imageUtilities';
1515
import styleTransfer from './StyleTransfer/';
1616
import charRNN from './CharRNN/';
1717
import pix2pix from './Pix2pix/';
18-
import SketchRNN from './SketchRNN';
18+
import sketchRNN from './SketchRNN';
1919
import preloadRegister from './utils/p5PreloadHelper';
2020
import { version } from '../package.json';
2121

@@ -26,7 +26,7 @@ const withPreload = {
2626
pitchDetection,
2727
pix2pix,
2828
poseNet,
29-
SketchRNN,
29+
sketchRNN,
3030
styleTransfer,
3131
word2vec,
3232
YOLO,

0 commit comments

Comments
 (0)