Categories
Development

Selenium hangs on driver.get()

I am using Python 3.7.6, Chrome 80.0.3987.122, chromedriver 80.0.3987.106 and Selenium 4.0.0a3 at Linux Mint 19.3 and remote server Ubuntu 18.04.4 LTS. While on my local Mint everything works completely fine I cant run the app on remote Ubuntu At a certain point in my app, I run the driver.get() and the driver seems to […]

Categories
Development

Should I use onboard video to free up my GPU for tensorflow?

I’m running into a lot of memory allocation problems whilst attempting to train a network. I have a GTX 1070 and I’m using conda to set up the environment. Currently my GPU is running my monitor so I’m wondering if using onboard graphics might help with my issues? Additionally, the error logs I was getting […]

Categories
Development

Default MaxPoolingOp only supports NHWC on device type CPU

I tried to run a prediction on a SegNet model, but when the predict function its call I received an error. I tried also to run the prediction with the with tf.device(‘/cpu:0’):, but I received the same error if __name__ == ‘__main__’: # path to the model model = tf.keras.models.load_model(‘segnet_weightsONNXbackToKeras3.h5′) model.compile(loss=’categorical_crossentropy’, optimizer=’RMSprop’, metrics=[‘accuracy’]) model.summary() input_shape […]

Categories
Development

Invalid argument: boxes and scores must have same batch size (by CombinedNonMaxSuppression)

I am doing an tf.image.combined_non_max_suppression on image batch. It passed graph mode (i.e. model construction) but got the following runtime error on model.fit_generator. I ensured the batch size consistent across both graph mode and runtime mode. batch_outs = batch_function(*batch_data) File “/home/chris/hdd2nd/dev/mlenv/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py”, line 1175, in train_on_batch outputs = self.train_function(ins) # pylint: disable=not-callable File “/home/chris/hdd2nd/dev/mlenv/lib/python3.6/site-packages/tensorflow/python/keras/backend.py”, line 3443, […]

Categories
Development Website

Getting data from BBB website using python and beautifulsoup

I’m using the python and beautifulsoup to get the listing from the BBB website. My code was working fine for yelp and yellow pages but after that when i start the using BBB website link i’m getting error. from bs4 import BeautifulSoup import requests import sys import csv ## Get the min and max page […]

Categories
Development Website

Getting data from BBB website using python and beautifulsoup

I’m using the python and beautifulsoup to get the listing from the BBB website. My code was working fine for yelp and yellow pages but after that when i start the using BBB website link i’m getting error. from bs4 import BeautifulSoup import requests import sys import csv ## Get the min and max page […]

Categories
Development Website

Getting data from BBB website using python and beautiful soap

I’m using the python and beautifulsoap to get the listing from the BBB website. my code was working fine for yelp and yellow page but after that when i start the using BBB website link i’m getting error not able to visualize the error. from bs4 import BeautifulSoup import requests import sys import csv ## […]

Categories
Development

Loading TensorFlow1 checkpoint in TensorFlow2 – “Function Call Stack: keras_scratch_graph”

Attempting to load a name based checkpoint of .index, .meta, .data-00000-of-00001 files in tensorflow 2.0.0 as a tf.keras.models.Model gives tensorflow.python.framework.errors_impl.FailedPreconditionError Traceback (most recent call last): File “question2.py”, line 38, in <module> meta_model = load_ckpt() # restore in keras model File “question2.py”, line 32, in load_ckpt out_mdl = tf.keras.models.Model(inputs=_m.input, outputs=out_op[0]) File “/home/dionyssos/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py”, line 146, in __init__ […]

Categories
Development

CUDNN_STATUS_ALLOC_FAILED with minimal network and data

This simple example code fails on one of my machines with tensorflow-gpu installed: import numpy as np from tensorflow.keras import layers, models, optimizers model = models.Sequential() model.add(layers.Conv1D(1, 3, input_shape=(8, 1))) optimizer = optimizers.Adam(lr=1e-6) model.compile(optimizer=optimizer, loss=’mse’) x = np.zeros((1, *model.input.shape[1:])) y = np.zeros((1, *model.output.shape[1:])) model.fit(x, y) The complete stderr output (cleaned up a bit) is: I […]