Giter Club home page Giter Club logo

cartoonify's Introduction

Hi there ๐Ÿ‘‹

My name is Ahmed, I'm a Freelance Machine Learning Engineer. I like building things, writing technical blog posts or making videos about programming.

You can follow me on:

Ahmed's github stats

Top Langs


cartoonify's People

Contributors

ahmedbesbes avatar fanbyprinciple 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  avatar  avatar  avatar  avatar

cartoonify's Issues

Api error

After following everything described in the tutorial , i finally got a url after deploying sls model.
when i pasted that url in notebooks an executed the code i kept getting this error, any help is much appreciated , i'm very close to completing this project i need help with this error.

KeyError: 'output'

KeyError Traceback (most recent call last)
in
----> 1 image = response.json()["output"]
2
3 image = image[image.find(",")+1:]
4 dec = base64.b64decode(image + "===")
5
KeyError: 'output'

Backend Issue

After following everything described in the tutorial , i finally got a url after deploying sls model.
when i pasted that url in notebooks an executed the code i kept getting this error, any help is much appreciated , i'm very close to completing this project i need help with this error.

KeyError: 'output'
KeyError Traceback (most recent call last)
in
----> 1 image = response.json()["output"]
2
3 image = image[image.find(",")+1:]
4 dec = base64.b64decode(image + "===")
5
KeyError: 'output'

TypeError: Cannot convert undefined or null to object at Function.entries (<anonymous>)

TypeError: Cannot convert undefined or null to object

  at Function.entries (<anonymous>)

  at getConfigsByWarmer (C:\Users\ryan\OneDrive\Desktop\Cantoonify_Model\cartoonify\node_modules\serverless-plugin-warmup\src\config.js:170:34)

  at WarmUp.configPlugin (C:\Users\ryan\OneDrive\Desktop\Cantoonify_Model\cartoonify\node_modules\serverless-plugin-warmup\src\index.js:82:10)

  at C:\Users\ryan\AppData\Roaming\npm\node_modules\serverless\lib\classes\PluginManager.js:501:55

  at tryCatcher (C:\Users\ryan\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\util.js:16:23)

  at Object.gotValue (C:\Users\ryan\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\reduce.js:168:18)

  at Object.gotAccum (C:\Users\ryan\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\reduce.js:155:25).

RUMTIME ERROR

"The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions"

where could I specified runtime nodejs .? I can't file nodejs runtime on serverless.yml.

Aws permission issue

Lambda function fails when trying to load models from S3 with following output

[ERROR] ClientError: An error occurred (AccessDenied) when calling the GetObject operation: Access Denied
Traceback (most recent call last):
  File "/var/lang/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/var/lang/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/var/task/src/handler.py", line 55, in <module>
    models = load_models(s3, bucket)
  File "/var/task/src/handler.py", line 39, in load_models
    response = s3.get_object(Bucket=bucket, Key=f"models/{style}_net_G_float.pth")
  File "/var/runtime/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/var/runtime/botocore/client.py", line 676, in _make_api_call
    raise error_class(parsed_response, operation_name)
[ERROR] ClientError: An error occurred (AccessDenied) when calling the GetObject operation: Access Denied Traceback (most recent call last):   File "/var/lang/lib/python3.7/imp.py", line 234, in load_module     return load_source(name, filename, file)   File "/var/lang/lib/python3.7/imp.py", line 171, in load_source     module = _load(spec)   File "<frozen importlib._bootstrap>", line 696, in _load   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked   File "<frozen importlib._bootstrap_external>", line 728, in exec_module   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed   File "/var/task/src/handler.py", line 55, in <module>     models = load_models(s3, bucket)   File "/var/task/src/handler.py", line 39, in load_models     response = s3.get_object(Bucket=bucket, Key=f"models/{style}_net_G_float.pth")   File "/var/runtime/botocore/client.py", line 357, in _api_call     return self._make_api_call(operation_name, kwargs)   File "/var/runtime/botocore/client.py", line 676, in _make_api_call     raise error_class(parsed_response, operation_name) 

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.