Doodleverse / segmentation_gym

A neural gym for training deep learning models to carry out geoscientific image segmentation. Works best with labels generated using https://github.com/Doodleverse/dash_doodler
MIT License
45 stars 11 forks source link

Seg gym Module error #131

Closed sbosse12 closed 1 year ago

sbosse12 commented 1 year ago

Hi all, I'm getting this error below when trying to run the new version of seg gym. I went through the various steps of getting the new version to run, but this is suggesting something is missing. Any tips on how to resolve this? Thanks

(gym) Z:\2021-EDR\sfm\sargassum_issue\segmentation_gym>python make_dataset.py Traceback (most recent call last): File "Z:\2021-EDR\sfm\sargassum_issue\segmentation_gym\make_dataset.py", line 29, in from skimage.io import imread ModuleNotFoundError: No module named 'skimage'

dbuscombe-usgs commented 1 year ago

huh weird... that should be already installed. can you try conda install -c conda-forge scikit-image?

sbosse12 commented 1 year ago

That didn't do it

dbuscombe-usgs commented 1 year ago

I'm stumped. If this is an old gym environment, I would say to reinstall a new one from scratch. There would be additional benefits for this. If you've already done that, please do conda list -n gym > my_conda_list.txt and upload the output here. Thanks

sbosse12 commented 1 year ago

packages in environment at C:\ProgramData\Anaconda3\envs\gym:

#

Name Version Build Channel

absl-py 1.4.0 pypi_0 pypi astunparse 1.6.3 pypi_0 pypi bzip2 1.0.8 he774522_0
ca-certificates 2023.01.10 haa95532_0
cachetools 5.3.1 pypi_0 pypi certifi 2023.5.7 pypi_0 pypi charset-normalizer 3.1.0 pypi_0 pypi doodleverse-utils 0.0.30 pypi_0 pypi flatbuffers 23.5.26 pypi_0 pypi gast 0.4.0 pypi_0 pypi google-auth 2.19.0 pypi_0 pypi google-auth-oauthlib 1.0.0 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.54.2 pypi_0 pypi h5py 3.8.0 pypi_0 pypi idna 3.4 pypi_0 pypi jax 0.4.10 pypi_0 pypi keras 2.12.0 pypi_0 pypi libclang 16.0.0 pypi_0 pypi libffi 3.4.4 hd77b12b_0
markdown 3.4.3 pypi_0 pypi markupsafe 2.1.2 pypi_0 pypi ml-dtypes 0.1.0 pypi_0 pypi numpy 1.24.3 pypi_0 pypi oauthlib 3.2.2 pypi_0 pypi openssl 1.1.1t h2bbff1b_0
opt-einsum 3.3.0 pypi_0 pypi packaging 23.1 pypi_0 pypi pip 23.0.1 py311haa95532_0
protobuf 4.23.2 pypi_0 pypi pyasn1 0.5.0 pypi_0 pypi pyasn1-modules 0.3.0 pypi_0 pypi python 3.11.3 h966fe2a_0
requests 2.31.0 pypi_0 pypi requests-oauthlib 1.3.1 pypi_0 pypi rsa 4.9 pypi_0 pypi scipy 1.10.1 pypi_0 pypi setuptools 67.8.0 py311haa95532_0
six 1.16.0 pypi_0 pypi sqlite 3.41.2 h2bbff1b_0
tensorboard 2.12.3 pypi_0 pypi tensorboard-data-server 0.7.0 pypi_0 pypi tensorflow 2.12.0 pypi_0 pypi tensorflow-estimator 2.12.0 pypi_0 pypi tensorflow-intel 2.12.0 pypi_0 pypi tensorflow-io-gcs-filesystem 0.31.0 pypi_0 pypi termcolor 2.3.0 pypi_0 pypi tk 8.6.12 h2bbff1b_0
typing-extensions 4.6.2 pypi_0 pypi tzdata 2023c h04d1e81_0
urllib3 1.26.16 pypi_0 pypi vc 14.2 h21ff451_1
versioneer 0.28 pypi_0 pypi vs2015_runtime 14.27.29016 h5e58377_2
werkzeug 2.3.4 pypi_0 pypi wheel 0.38.4 py311haa95532_0
wrapt 1.14.1 pypi_0 pypi xz 5.4.2 h8cc25b3_0
zlib 1.2.13 h8cc25b3_0

dbuscombe-usgs commented 1 year ago

if you did conda install -c conda-forge scikit-image in an activated gym env I would have expected something like

scikit-image 0.20.0 py311h6a678d5_0

to show up .... hmmm... it looks like you'll have to try one of these options in an activated gym env https://scikit-image.org/docs/stable/install.html for reference, here's mine dan_gym_env.txt

dbuscombe-usgs commented 1 year ago

In fact I can see a lot of missing dependencies ... please outline the method you used to install the env?

sbosse12 commented 1 year ago

I had followed the windows list for updating to the new gym on Git Hub. I think the problem was since I already had a gym environment previous version it didn't update. Going to remove the environment and try again.

sbosse12 commented 1 year ago

Hi Dan, that worked! Thanks for the help