-
Notifications
You must be signed in to change notification settings - Fork 5
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
any way to reduce size of model by removing Image database #11
Comments
Thanks for your interest! Unfortunately as of now there is no out of the
box way to get rid of images, but removing should be straightforward. I
suggest deploy a local system and start removing the "unnecessary parts".
…On Wed, Sep 5, 2018, 1:55 PM PC09 ***@***.***> wrote:
I need to just use the API endpoints and not the GUI where images are also
loaded. For Eg-
Endpoint: /predictSense
Example request
curl -H "Content-Type: application/json"
-X POST
-d '{"context":"Java is an island.","word":"Java", "model": "simwords"}'
$YOUR_API_SERVER/predictWordSense
I saw that the imgdata/data stores data . Is there a way to remove this
135GB data and still have the API working ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABY6vkA7vDUMEBcnzxESeKXUzdkTQyNbks5uX7u2gaJpZM4WawCZ>
.
|
Okay. I executed a few commands to check the contents of imgdata database. Command- Output- When I use database wsp_default , to see the tables in it - Schema | Name | Type | Owner | Size | information_schema | sql_features | table | postgres | 96 kB | If possible, is there a way to get tables which store images? |
As far as I know, no information about images is stored in the database. @fmarten , please correct me if I am wrong. |
Oh, so in that case, imgdata/ which stores 18GB data that is the only information where images is stored? . My aim is to remove the image and its related data to cut down on the size of the complete package. Can you please let me know where all image related information is stored, so that I can try removing them and check whether the API still works by giving text output? |
I think you can delete the images - the api anyways sends to the user only paths to them not binaries.
… On 6 Sep 2018, at 15:52, PC09 ***@***.***> wrote:
Oh, so in that case, imgdata/ which stores 18GB data that is the only information where images is stored? . My aim is to remove the image and its related data to cut down on the size of the complete package. Can you please let me know where all image related information is stored, so that I can try removing them and check whether the API still works by giving text output?
TIA
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#11 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABY6vnF6oLVESfJ0U3xCVqUZAy5N-9xxks5uYSiUgaJpZM4WawCZ>.
|
Thanks for your quick reply!. If the database has not stored any image data, then how the size of wsp_default database is coming up as 134GB. What all is stored in the db? wsp_default | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | TIA |
I need to just use the API endpoints and not the GUI where images are also loaded. For Eg-
Endpoint: /predictSense
Example request
curl -H "Content-Type: application/json"
-X POST
-d '{"context":"Java is an island.","word":"Java", "model": "simwords"}'
$YOUR_API_SERVER/predictWordSense
I saw that the imgdata/data stores data . Is there a way to remove this 135GB data and still have the API working ?
The text was updated successfully, but these errors were encountered: