Abtin Djavadifar
Abtin Djavadifar
> What version of Keras do you have installed? Is it the same as the version required by the version of Segmentation Models you currently have installed? Yes, it's the...
> same here > > ``` > File "/home/nvidia/pellame-g4f/lam/backend/lambackend/services/analysis_svc.py", line 6, in > import segmentation_models as sm > File "/home/nvidia/virtualenvs/venv_lam/lib/python3.6/site-packages/segmentation_models/__init__.py", line 98, in > set_framework(_framework) > File "/home/nvidia/virtualenvs/venv_lam/lib/python3.6/site-packages/segmentation_models/__init__.py", line 68,...
> Hi all this is the correct requirements to make it working! working after multiple trial and errors. > !pip install keras==2.3.1 > !pip install tensorflow==2.1.0 > !pip install keras_applications==1.0.8...
> import segmentation_models as sm > from segmentation_models.metrics import iou_score > from segmentation_models import Unet > > import tensorflow as tf > tf.keras.backend.set_image_data_format('channels_last') > > model = Unet('resnet34', encoder_weights='imagenet', classes=40,...