cnn-registration icon indicating copy to clipboard operation
cnn-registration copied to clipboard

requirements versions

Open Borda opened this issue 4 years ago • 4 comments

Hello, I have so problem with running the demo even after porting to py3... Could you add package version to requirements.txt to be able to run the demo, Thx

Borda avatar May 13 '20 14:05 Borda

@yzhq97 any update here? :]

Borda avatar Aug 31 '20 09:08 Borda

I also ran into issues with versions. The following changes made it run on my machine:

To adapt tf2 to tf1: Change the import tf in VGG16.py and Registration.py to Source: https://github.com/datamllab/rlcard/issues/96

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

To adapt to numpy version: Add these lines at the beginning of VGG16.py Source: https://stackoverflow.com/questions/55890813/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-for-imdb-loa/56062555

# save np.load
np_load_old = np.load

# modify the default parameters of np.load
np.load = lambda *a,**k: np_load_old(*a, allow_pickle=True, **k)

To adapt to python2: See issue by captainst #15

blutjens avatar Sep 10 '20 00:09 blutjens

My machine has:

numpy==1.18.5
scipy==1.4.1
opencv-python-headless==4.4.0.42
tensorflow==2.3.0
tensorflow-estimator==2.3.0
lap==0.4.0

blutjens avatar Sep 10 '20 00:09 blutjens

请问这个环境可以运行成功吗?为什么我下载的init函数是空的?能打扰您一点时间可以把这个发到我的邮箱吗?[email protected] 我将万分感谢

2970765122 avatar May 25 '23 12:05 2970765122