nthanhtin / DeepLab-Passport-Image

This was my attempt to save some money by using OpenCV and Semantic Image Segmentation to generate passport image
Apache License 2.0
7 stars 0 forks source link

tensorflow errors during #1

Open LeeDuncan77 opened 2 years ago

LeeDuncan77 commented 2 years ago

I had to add:

_DOWNLOAD_URL_PREFIX = 'http://download.tensorflow.org/models/'
    _MODEL_URLS = {
    'mobilenetv2_coco_voctrainaug':
        'deeplabv3_mnv2_pascal_train_aug_2018_01_29.tar.gz',
    'mobilenetv2_coco_voctrainval':
        'deeplabv3_mnv2_pascal_trainval_2018_01_29.tar.gz',
    'xception_coco_voctrainaug':
        'deeplabv3_pascal_train_aug_2018_01_04.tar.gz',
    'xception_coco_voctrainval':
        'deeplabv3_pascal_trainval_2018_01_04.tar.gz',
    }

to define those things and in deeplab.py

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

to get it to run. Worked great though. Thanks!

nthanhtin commented 2 years ago

Would you mind opening a PR?

LeeDuncan77 commented 2 years ago

I don't mind so much that I don't know how. I'll google and try.

On Sat, Jun 4, 2022 at 5:52 PM Tin Nguyen @.***> wrote:

Would you mind opening a PR?

— Reply to this email directly, view it on GitHub https://github.com/nthanhtin/DeepLab-Passport-Image/issues/1#issuecomment-1146697197, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIOMKJUS7PEEQVZTLCVUFLVNPM4LANCNFSM5X4DKW5Q . You are receiving this because you authored the thread.Message ID: @.***>