Giter VIP home page Giter VIP logo

neuralgym's People

Contributors

jiahuiyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

neuralgym's Issues

tensorflow 2.0

When I run the code with tensorflow 2.0, it shows

AttributeError: module tensorflow has no attribute contrib

and I find the bug is about tensorflow 2.0, so I wonder if the repo will be updated to follow the version of tensorflow.

load matrices or csv files

Hi,

As per my understanding, neuralgym.data.DataFromFNames is able to read only image files. Is there a way to read matrices or csv files?
if not then could you also suggest a way to do it in tensorflow?

TIA

'tensorflow._api.v2.image' has no attribute 'resize_bilinear'

File "/usr/local/lib/python3.6/dist-packages/neuralgym/ops/layers.py", line 115, in
func=tf.image.resize_bilinear, name='resize'):
AttributeError: module 'tensorflow._api.v2.image' has no attribute 'resize_bilinear'

It concerns are placed here:

114    def resize(x, scale=2, to_shape=None, align_corners=True, dynamic=False,
115              func=tf.image.resize_bilinear, name='resize'):

I tried Tensorflow 2.0 , 2.1 and 2.4.1

Is the problem only mine or will an update according to the link below help?

https://www.tensorflow.org/api_docs/python/tf/compat/v1/image/resize_bilinear

Requirements

Hi,

Thanks for providing the package. I have a question about the requirements. I am trying to train the generative inpainting code [https://github.com/JiahuiYu/generative_inpainting] which is using neuralgym package. In the start of the training procedure [after assigning the GPUs and even generating the graphs], I am getting a few errors related to the version of cuDNN and CUDA library that I am using. However, previously I didn't have any issue in running the test codes of the generative inpainting model.

Ok, long story short, previously I had:
cuDNN v7.1.4
CUDA 9.0
Nvidia Driver 384.130

After the training error, it suggests me to upgrade to cuDNN v.7.2.x, now, with this new driver I am getting:
CUDNN_STATUS_NOT_INITIALIZED

and again, it suggests I need to upgrade my driver. So, I upgrade to Nvidia driver 390.87, but now, it has issues to catch all of the GPUs and saying not enough gpus, well, which I have enough gpu.

My question is that, is there any safe, and tested combination of Tensorflow, Nvidia driver version, CUDA, and cuDNN library version that works well with neuralgym. I really apperitiate even if you can share your versions.

-Many Thanks, Shek

i want to read 16 bit file

hello,

i want to input a image with 16bit.

In data_from_fnames.py , i changed cv2.imread(..) commnet to cv2.imread(..,-1) to read 16 bit.

but it cause index error

please tell me the solution

No variables to train issue

I am getting this error for tensorflow. I am unable to figure out the reason. I have passed the variables to var_list which are not empty either.

epoch, step, pse setting

Hi Jiahui,

Thanks for your toolkit, it's really helpful !

In my world, an epoch means running through the training dataset once.
So I'm not sure why you set an epoch as TRAIN_SPE steps ignoring the size of training dataset.

see progress_logger

Requirement file is empty

The requirements file appears to be an empty file. As a result, none of the dependencies get installed. Since most package managers will by default select dependencies that are incompatible (i.e. Tensorflow2), this makes getting this repo (as well as all downstream repos that need it) working a bunch of trial-and-error guesswork.

error in running training code for generative image inpainting training code

2023-06-18 07:23:12.649587: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-06-18 07:23:12.652543: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-06-18 07:23:12.652586: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
File "/content/drive/MyDrive/geninpaint_code1/train.py", line 5, in
import neuralgym as ng
File "/usr/local/lib/python3.10/dist-packages/neuralgym/init.py", line 27, in
from . import callbacks
File "/usr/local/lib/python3.10/dist-packages/neuralgym/callbacks/init.py", line 3, in
from .hyper_param_scheduler import HyperParamScheduler
File "/usr/local/lib/python3.10/dist-packages/neuralgym/callbacks/hyper_param_scheduler.py", line 6, in
from ..ops.summary_ops import scalar_summary
File "/usr/local/lib/python3.10/dist-packages/neuralgym/ops/init.py", line 4, in
from . import layers
File "/usr/local/lib/python3.10/dist-packages/neuralgym/ops/layers.py", line 93, in
activation_fn=None, w_init=tf.contrib.layers.xavier_initializer_conv2d(),
AttributeError: module 'tensorflow' has no attribute 'contrib'

problem about np.get_gpus()

hi jiahui,i'am using your inpainting test model. when the code comes to this np.get_gpus(1) line, an weird error happen.
42c09b862b5bacffad36b09f79e1b69

i was wandering whether my environment was wrong: i'm using anaconda2 with py3.5 +cuda9.0+cudnn7.1
my GPU is 1050Ti.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.