Skip to content
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

Instructions to install #17

Open
rockerBOO opened this issue Dec 9, 2023 · 0 comments
Open

Instructions to install #17

rockerBOO opened this issue Dec 9, 2023 · 0 comments

Comments

@rockerBOO
Copy link

rockerBOO commented Dec 9, 2023

Requires the pickle file from the maintainers: vfn_rl.pkl

Then the version requires older versions of libraries. This is how I installed it to get it working.

python -m venv venv
source venv/bin/active # linux venv activate
call venv/bin/activate.bat # windows venv activate

This project was written for tensorflow 1.x

Last version of python supported: 3.7. I suggest using pvenv at this time to install a previous version for this library.

pyenv install 3.7
pyenv local 3.7

Example to install tensorflow 1.15 (latest version of the 1.x tensorflow)

pip install tensorflow==1.15.5

Latest scikit-image supported on 3.7

pip install scikit-image=0.19.3

A2RL.py requires the following change for the image to save. Fixes this related issue typeerror-cannot-handle-this-data-type-1-1-3-f4

In A2LR.py change the following:

    io.imsave(args.save_path, im[ymin:ymax, xmin:xmax])

to

    io.imsave(args.save_path, (im[ymin:ymax, xmin:xmax] * 255).astype(np.uint8))

There are a lot of deprecation messages but should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant