Giter VIP home page Giter VIP logo

sstk's Introduction

SSTK: SmartScenes ToolKit

The (S)STK provides:

  1. Web-based framework for viewing models and scenes.
  2. Various web-based annotation interfaces for annotating models and scenes
  3. Batch processing component for doing analysis on scenes and offscreen rendering (see ssc/README.md)
  4. Server-side rendering

Getting Started

  1. The SSTK can be used on Linux, MacOS and Windows systems.

    Prerequisites for Ubuntu: sudo apt-get install build-essential libxi-dev libglu1-mesa-dev libglew-dev libvips

    Prerequisites for MacOS: Please install Xcode

    For some older version of node (v10.x.x) and on some platforms, node-gyp may require python 2.7 so if you get an error with node-gyp, make sure the python in your path is python 2.7.

  2. Install node.js v14.16.0. Using the Node Version Manager (nvm) is the easiest way to install node.js on most systems.

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
    source ~/.bashrc
    nvm install v14.16.0
    

    If you use zsh instead of bash, replace source ~/.bashrc with source ~/.zshrc. Confirm above works using node -v at the terminal.

  3. Build the STK library. Enter the root directory of the repo (${STK})

    cd ${STK} 
    ./build.sh
    

    This will build the STK library that is needed by the server and command line scripts.

    Note 1: We are using an older version of node with pinned packages that may have vulnerabilities. So you may get a warning indicating that there are vulnerabilities.

    DO NOT run npm audit fix - that will upgrade some of the packages and cause the code to break.

    Note 2: if node-gyp gl build issue is encountered due to missing angle submodule, this is due to a bug (npm/cli#2774). To resolve this, downgrade to an older npm through npm install -g npm@'^6.4.11' prior to running build.

  4. Running the server (see server/README.md for details

    cd server
    ./run.sh
    

    Visit http://localhost:8010 in your browser (Chrome is recommended)!

  5. Running command line scripts

    See ssc/README.md.

Assets

To use the STK, you will need to get yourself some assets. There are several open-source datasets that you can use with the STK. Many of these datasets require agreeing to a license and terms of use,

  1. 3D Models
  • ShapeNet is a large dataset of 3D models.
  1. Synthetic Scenes
  1. Reconstructions

The STK has been developed to be able to easily view and annotate 3D assets. Specifically, parts of ShapeNet, SUNCG, ScanNet, and Matterport3D were all developed using the STK.

Entry Points

  • model-viewer : Model viewing interface
  • model-categorizer.html : Model categorization interface
  • scene-viewer.html : Scene Viewer

Development flow

If you are developing and changing the STK, the following will monitor changes to the client / server code.

  1. In the /client folder, run this command:
NODE_ENV=dev npm run build
  1. In the /server folder, run this command:
npm run watch

You can also specify the remote instance to use for various webservices (such as solr search) by specifying

STK_REMOTE_HOST=https://<remote-server-name>/scene-toolkit  npm run watch

Advanced Build Instructions

Different builds of client STK

To build different builds of the client STK library

  • cd client
  • Type npm install to install client dependencies
  • Run npm run build to package the stk source files
    • Use NODE_ENV=dev npm run build to build source maps and have webpack watch for changes.
    • Use NODE_ENV=prod npm run build to optimize (including minify) the JS assets.

For convenience a build.sh script is provided that will run the two steps above. You will need to repeat the build step every time the client source files are changed or use NODE_ENV=dev npm run build to watch and rebuild as you develop!

Build the documentation

  • cd client from the repository root
  • run npm run jsdoc
  • Open the generated jsdoc/index.html page with a browser

Running the server

Once you have built the client library, to start the server do the following from the root repository directory:

cd server
npm install                 
npm start          # or use "npm watch" to run the server using nodemon and automatically restart the server on changes

The server/run.sh script is provided that will run the above steps together.

See server/README.md for details, including how to deploy a new instance.

Development Workflow

For routine local development, here are the usual steps:

  • Start webpack build process in watch mode by calling NODE_ENV=dev npm run build inside the client/ directory. If new dependencies have been introduced, you may get an unresolved module error and will need to run npm install first. With watch mode, you won't have to manually run npm run build when you change the client code (it will monitor changes in the client directory and rebuilt automatically).
  • In a separate terminal, start the server process by calling npm run watch inside the server/ directory. Again, if new server code dependencies have been introduced, you may need an npm install call to resolve them first. Running the server in watch mode will monitor changes in the server directory and restart the server automatically.
  • Go to a browser window and pull up localhost:8010/index.html or any other entry point (such as scene-viewer.html).
  • If you just need a one-time build of the toolkit, copy out the client/build/STK.bundle.js (after npm run build) to the target directory.

Versioning conventions:

  • The master branch contains latest mainstream (with potential bug fixes over latest release)
  • The dev branch contains large (potentially breaking) changes
  • The v0.5.x branch (and similar future versioned branches) contain the latest release of that form Versioning workflow: develop on master for small bug fixes or on dev for large changes. When ready to release branch, make sure to update appropriate v0.5.x or similar latest release branch, and also tag with exact version number (e.g., v0.5.3).

Annotation Assets and Database

The annotation tools use a MySQL database for storing annotations and an Apache solr index for indexing assets.

SQL DDL scripts for creating data tables are in scripts/db. See MySQL installation instructions for installing your own instance of MySQL and run the provided DDL scripts in scripts/db to create the annotation tables.

See wiki for how to prepare your assets for annotation. Once you have setup a MySQL server, you should edit config.annDb in server/config/index.js to point to your MySQL instance.

Access remote servers using reverse proxying and SSH tunneling

The server uses reverse proxying to access various other resources and web services. Edit server/app/routes/proxy-rules.js to add your own proxy rules for accessing your own resources.

If you run your own solr instance locally, you should set the environment variable USE_LOCAL=1. This can be done by manually or by copying the env.example.sh to env.sh and modifying it as necessary. It will be used in the provided build.sh and run.sh.

For storing annotations, you will need to setup your own MySQL server. Once you have setup a MySQL server, you should edit config.annDb in server/config/index.js to point to your MySQL instance.

If your MySQL server is limited to access by localhost only, you can use ssh tunneling to forward 3306 from a remote machine to localhost through SSH connection:

ssh -L 3306:localhost:3306 -L <host> -N

Building the documentation

  • cd client from the repository root
  • run npm run jsdoc
  • Open the generated jsdoc/index.html page with a browser

Changelog

Refer to CHANGELOG.md for a record of notable changes.

sstk's People

Contributors

angelxuanchang avatar msavva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sstk's Issues

Issue loading Matterport3D dataset with sstk

Hi, thanks for building and releasing this awesome project!

I am trying to use sstk to load Matterport3D dataset. I followed the instruction and when I entered url: http://localhost:8010/scans/segment-annotator-single?modelId=mprd.id, I got the error saying:

Cannot GET /matterport/data/public_extracted/v1/scans/xxxx/matterport_mesh/xxxx/xxxx.merged.glb.

When I removed the field from matterport3d.json which links to xxxx.merged.glb file, I got the following error:

Cannot read property 'dropMissingSegments' of undefined. Which seems to be caused by a missing field of matterport3d.json.

What would be the proper way to hook sstk up with matterport3d assets? Thanks for the help!

Progress bar hangs when executing ./build.sh

When executing lerna bootstrap --hoist script in package.json from main directory, progress bar hangs on \ install dependencies: info hoist Finished pruning hoiste. Has anybody got solution to this issue? I am new to NodeJS.

error running nyuv2 sample

Hello,

I followed the instructions listed under the issue ("No server/static/data/nyuv2/nyuv2.scans.txt #3"), i.e.,

  • Build the sstk dev branch using the build.sh script,
  • Download the NYUv2 example data by running the getexamples.sh script,
  • Run the server module using the run.sh script in server,
  • Navigate to http://localhost:8010/scans/nyuv2.

I followed these steps but that led to the following error. Could you help?
Thanks.

(base) /mnt/t4/data/scannet/sstk-dev/server$ ./run.sh

[email protected] install /mnt/t4/data/scannet/sstk-dev/server/node_modules/phantomjs-prebuilt
node install.js

PhantomJS not found on PATH
Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Verified checksum of previously downloaded file
Extracting tar contents (via spawned process)
Removing /mnt/t4/data/scannet/sstk-dev/server/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1591935561140/phantomjs-2.1.1-linux-x86_64 -> /mnt/t4/data/scannet/sstk-dev/server/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /mnt/t4/data/scannet/sstk-dev/server/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
added 456 packages from 895 contributors and audited 458 packages in 8.36s
found 51 vulnerabilities (10 low, 5 moderate, 34 high, 2 critical)
run npm audit fix to fix them, or npm audit for details

[email protected] start /mnt/t4/data/scannet/sstk-dev/server
node app/

STK running on localhost:9010
Reverse proxy running on localhost:8010
*** Done booting server. Access through localhost:8010 ***
2020-06-12T04:20:22.248Z - error: [SQLQuerier] Error querying database message=connect ECONNREFUSED 127.0.0.1:3306, stack=Error: connect ECONNREFUSED 127.0.0.1:3306
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
--------------------
at Protocol._enqueue (/mnt/t4/data/scannet/sstk-dev/server/node_modules/mysql/lib/protocol/Protocol.js:144:48)
at Protocol.handshake (/mnt/t4/data/scannet/sstk-dev/server/node_modules/mysql/lib/protocol/Protocol.js:51:23)
at PoolConnection.connect (/mnt/t4/data/scannet/sstk-dev/server/node_modules/mysql/lib/Connection.js:118:18)
at Pool.getConnection (/mnt/t4/data/scannet/sstk-dev/server/node_modules/mysql/lib/Pool.js:48:16)
at SQLAnnotationDb.SQLQuerier.execute (/mnt/t4/data/scannet/sstk-dev/server/lib/sql-querier.js:30:13)
at SQLAnnotationDb.SQLQuerier.queryDb (/mnt/t4/data/scannet/sstk-dev/server/lib/sql-querier.js:57:8)
at SQLAnnotationDb.SQLQuerier.__queryColumnNames (/mnt/t4/data/scannet/sstk-dev/server/lib/sql-querier.js:168:8)
at SQLAnnotationDb.SQLQuerier.queryColumnNames (/mnt/t4/data/scannet/sstk-dev/server/lib/sql-querier.js:178:10)
at SQLAnnotationDb.queryAnnotations (/mnt/t4/data/scannet/sstk-dev/server/app/sqlAnnotationDb.js:325:10)
at /mnt/t4/data/scannet/sstk-dev/server/proj/scannet/index.js:146:11, errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=3306, fatal=true
2020-06-12T04:20:22.258Z - error: [SQLQuerier] Error querying database message=connect ECONNREFUSED 127.0.0.1:3306, stack=Error: connect ECONNREFUSED 127.0.0.1:3306
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
--------------------
at Protocol._enqueue (/mnt/t4/data/scannet/sstk-dev/server/node_modules/mysql/lib/protocol/Protocol.js:144:48)
at Protocol.handshake (/mnt/t4/data/scannet/sstk-dev/server/node_modules/mysql/lib/protocol/Protocol.js:51:23)
at PoolConnection.connect (/mnt/t4/data/scannet/sstk-dev/server/node_modules/mysql/lib/Connection.js:118:18)
at Pool.getConnection (/mnt/t4/data/scannet/sstk-dev/server/node_modules/mysql/lib/Pool.js:48:16)
at SQLAnnotationDb.SQLQuerier.execute (/mnt/t4/data/scannet/sstk-dev/server/lib/sql-querier.js:30:13)
at SQLAnnotationDb.SQLQuerier.queryDb (/mnt/t4/data/scannet/sstk-dev/server/lib/sql-querier.js:57:8)
at SQLAnnotationDb.SQLQuerier.__queryColumnNames (/mnt/t4/data/scannet/sstk-dev/server/lib/sql-querier.js:168:8)
at SQLAnnotationDb.SQLQuerier.queryColumnNames (/mnt/t4/data/scannet/sstk-dev/server/lib/sql-querier.js:178:10)
at SQLAnnotationDb.queryAnnotations (/mnt/t4/data/scannet/sstk-dev/server/app/sqlAnnotationDb.js:325:10)
at SegmentAnnotatorServer.listAnnotations (/mnt/t4/data/scannet/sstk-dev/server/proj/scannet/segmentAnnotatorServer.js:351:13), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=3306, fatal=true

Error: Database access denied

OS: Ubuntu 16.04
nodejs version: v10.21.0
npm version: 6.14.4
MySQL version: 14.14 Distrib 5.7.30
SSTK: head -> dev

Hi,

I'm trying to setup SSTK server on my pc. However, I'm running into this error:

(node:13358) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
error: Error querying database code=ER_ACCESS_DENIED_ERROR, errno=1045, sqlMessage=Access denied for user 'DBUSERNAME'@'localhost' (using password: YES), sqlState=28000, fatal=true, name=SQLQuerier

Could anyone help?

Can't build npm on mac

building with ./build.sh fails on mac:

2609 verbose stack Error: command failed
2609 verbose stack     at ChildProcess.<anonymous> (/Users/philippk/.nvm/versions/node/v16.5.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
2609 verbose stack     at ChildProcess.emit (node:events:394:28)
2609 verbose stack     at maybeClose (node:internal/child_process:1067:16)
2609 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
2610 verbose pkgid [email protected]
2611 verbose cwd /Users/philippk/Dropbox/se_projects/July21_Hackweek/FloorPlanner/sstk
2612 verbose Darwin 20.5.0
2613 verbose argv "/Users/philippk/.nvm/versions/node/v16.5.0/bin/node" "/Users/philippk/.nvm/versions/node/v16.5.0/bin/npm" "install"
2614 verbose node v16.5.0
2615 verbose npm  v7.19.1
2616 error code 1
2617 error path /Users/philippk/Dropbox/se_projects/July21_Hackweek/FloorPlanner/sstk
2618 error command failed
2619 error command sh -c node getdata.js && npm run bootstrap
2620 verbose exit 1

Would be awesome to have dockerized version...

I cannot access to my assets at http://localhost:8010/resources/assets/

First, Thanks for your great work.
I have my own .ply file. And I want to annotate it using sstk.
I builded & ran server according to https://github.com/smartscenes/sstk/blob/dev/README.md 'Getting started'.
I can access http://localhost:8010 in my chrome brower.
Then, for registering my own asset, I put my assets under 'server/static/assets/myhome'.(myhome is my asset name)
(refering https://github.com/smartscenes/sstk/wiki/Preparing-assets-for-annotation)

server/static/assets/myhome/0001/0001.ply
server/static/assets/myhome/0001/0001.segs.json
server/static/assets/myhome/0001/0001.png

But I cannot access to my assets at http://localhost:8010/resources/assets/
image
I want to know if there are problems in my way.
Thank you.

NYUV2 sample does not display in browser

http://localhost:8010/scans/segment-annotator-single
When running the above annotator, the nyuv2 sample (nyuv2.bedroom_0114)
) No data is displayed.
What I did was sh build.sh, sh getexamples.sh, sh run.sh. The server creates the database "test" with mysql (ver5.7.36), and the table is created by executing stk / scripts / db / create_annotation_tables.sql.
scansToAnnotate: in defalut.config.yml has been changed to'../../../../static/data/nyuv2/nyuv2.example.csv'.
config.annDb of stk / server / config / index.js has been changed to the specified name created by mysql.
After executing sh run.sh, when segmentAnnotatorServer is opened in chrome, bedroom_0114 is not displayed as shown in the image below.
Please let me know if there are any missing parts in the settings.
Screenshot from 2022-03-02 09-28-25

computer specification of during annotation?

When I perform 3d point cloud annotation, I get stuttering due to a lot of computation, so could I know the computer specifications such as cpu or graphic card used to perform annotation?

failure in exporting an annotated .ply

open the link http://localhost:8010/scans/segment-annotator-single?condition=manual&userId=username&taskMode=new&modelId=my_data.bunny
image

after annotating the .ply, I failed in exporting the annotated .ply as the instructions say in https://github.com/smartscenes/sstk/wiki/Semantic-Segmentation-Labeler
image

PS. I copied the example nyuv2.json and changed something.
My complete my_data.json is as follows.

{
    "source": "my_data",
    "assetType": "scan",
    "rootPath": "${baseUrl}/data/my_data/my_asset",
    "screenShotPath": "${rootPath}/${id}/${id}.png",
    "hasThumbnail": false,
    "assetFields": ["segment-annotations-manual", "scan-model-alignments"],    
    "formats": [
      { "format": "ply",
        "path": "${rootPath}/${id}/${id}.ply",
        "defaultUp": [ 0, 0, 1 ], "defaultFront": [ -1, 0, 0], "defaultUnit": 1,
        "materialSidedness": "Front",
        "useVertexColors": true,
        "computeNormals": true
      }
    ],
    "surfaces": {
      "format": "segmentGroups",  
      "file":  "${rootPath}/${id}/${id}.segs.json"
    },
    "segment-annotations-manual": {
      "format": "segmentGroups",
      "files": {
        "annIds": "${baseUrl}/scans/segment-annotator-single?condition=manual&userId=username&taskMode=new&modelId=${fullId}",
        "segmentGroups": "${baseUrl}/scans/segment-annotations/aggregated?annId=${annId}",
        "segments": "${rootPath}/${id}/${id}.segs.json",
        "annotatedAssetIds": "${baseUrl}/scans/segment-annotations/list?$columns=itemId&format=json&condition[$in]=manual"
      }
    },
    "scan-model-alignments": {
      "files": {
        "annIds": "${baseUrl}/annotations/list?itemId=${fullId}&$columns=id,workerId,data&format=json&type=scan-model-align&condition[$in]=manual",
        "annotatedAssetIds": "${baseUrl}/annotations/list?$columns=itemId&format=json&type=scan-model-align&condition[$in]=manual"
      }
    }
  }

use ssc/export-annotated-plys.js

NODE_BASE_URL=http://localhost:8010 ./export-annotated-ply.js --id bunny  --source my_data --ann_type raw -n 1 

Errors are here:

Configuration { fileCache: { size: 50 },
  imageCache: { size: 200 },
  imageQueue: { concurrency: 4 },
  base_url: 'http://localhost:8010',
  assets_url: 'file:///home/cbc/DL/sstk-master/ssc/../server/static' }
register ../server/static/data/my_data/my_data.json
Registered asset group: my_data
Got 2 assets
segmentsType is segment-annotations-raw
Proccessing bunny
skip_existing is false
Error processing id bunny No segment info for bunny, segmentsType segment-annotations-raw
DONE
Loaded LightSpecs for 202 models

I just wanna use this tool and really don't know about how to code with nodejs, having no solution, so hope for your suggestions.
Best wishes.
BC Chen

Camera Params

I'm using minos to simulate a 3D environment using the Matterport Dataset, which in-turn uses SSTK. Would like to know where the camera params for the simulation are defined.

Having trouble finding the steps to get sstk running with suncg data

In the wiki it says the SUNCG data is supported but there is a TODO stating that the instructions regarding where to put the SUNCG assets will be provided. However this has not been updated since then. Has anyone figured out how to load SUNCG assets into the sstk? When I open a scene json, I receive 404s on all of the included assets.

Missing Wiki folder

I am trying to access wiki folder but it is missing. To prepare asset for annotation. could you please provide.

No display on sceneviewer for SUNCG...server not finding dataset location?

Hey there,

I am just trying to start off by viewing the SUNCG data, notably the scenes and their voxel labels...but nothing is coming up. Am I supposed to modify some json file with the path to the dataset, or maybe put the dataset in a specific location? I didn't see anything in the README or Wiki about that.

Cheers,

Jon

Model Viewer not working

Hello,

I installed node.js for windows independentely:

>node -v
v14.15.5

Then I run

cd stk
  ./build.sh
  cd server
  ./run.sh

and openned http://localhost:8010/model-viewer

But buttons are not working. "Instructions" does nothing and "Models" allows me to select a file but then nothing occurs.

What is going wrong?

*Extra question: Would this tool allow me to load ShapeNet models (.obj), see anotations and change its colours? (ie. I want to load all car's models and make the front right-hand door always red)

Windows build instructions

Hello,

What are the instructions for building and running the server on a windows machine? The build.sh script does not seem to work either on Windows 7 or Windows 10. I have tried with various Unix shells but could not successfully build it. I always get the following error on npm install stage:

.> [email protected] preinstall c:\Users\ausumezbas\Documents\ONR_3DModeling\ScanNet\sstk
.> ./getdata.sh

'.' is not recognized as an internal or external command, operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: ./getdata.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ausumezbas\AppData\Roaming\npm-cache_logs\2018-05-15T15_34_35_420Z-debug.log

Thanks!

build fails

I follow the readme and there come several errors.
When I first run ./build.sh, it tells me that cannot find shelljs, but I find the shelljs is in the node_modules,
When I run ./build.sh again, it says that the

lerna info version 2.11.0
lerna info Bootstrapping 4 packages
lerna info lifecycle preinstall
lerna info Installing external dependencies
lerna info hoist Installing hoisted dependencies into root
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: npm install
lerna ERR! npm WARN deprecated [email protected]: This module is no longer maintained, try this instead:
lerna ERR! npm WARN deprecated   npm i nyc
lerna ERR! npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.

Is there any solutions?

localhost:8010/resources/assets/ is not accessible

I try to follow wiki to do semantic labeling of Scannet data.
However, I am very confused of it.
Generally, the following questions:

  1. localhost:8010/resources/assets/ is not accessible
  2. the examples, e.g. nyuv2.json is missing.
    Could you please update the wiki?
    Or could you please give clear examples?
    Thank you.

No server/static/data/scannet/nyuv2.json

The wiki asks to check out server/static/data/scannet/nyuv2.json and server/static/data/scannet/nyuv2.csv for an example. I couldn't find these files in the repo. Can these be added or some other example files to follow the instructions on the wiki?

lack of editor.selectize.css and editor.selectize.js in datatables

I follow the following steps:

git clone https://github.com/smartscenes/sstk/
cd sstk
git checkout dev

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
source ~/.bashrc
nvm install v10.13.0
npm install
./build.sh
cd client
npm install
./build.sh
cp -r $path_to_datatables.editor$ js/vendor/
cd ../
./getexamples.sh
cd server
./run.sh
navigate to: http://localhost:8010/scans/nyuv2

click the image: the interface works fine.

However,

when I click “Anns(0)”: in the page:

http://localhost:8010/scans/segment-annotations/list?itemId=nyuv2.bedroom_0114

There is an error that
"The resource from “http://localhost:8010/client/js/vendor/datatables.editor/css/editor.selectize.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)."
and
The resource from “http://localhost:8010/client/js/vendor/datatables.editor/js/editor.selectize.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

However, there is no editor.selectize.css and editor.selectize.js in datatables package. I use datatables version 1.9.4

Besides, I think datatables package and the above 2 files are necessary to export the semantic segmentation annotations, because I found that the export code needs the information of the above link where the error occurs (in nyuv2.json file). Is that correct?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.