Categories
Development Linux Ubuntu

resume do-release-upgrade after screen terminated

I was just viewing a diff of configs changed by me and the maintainer’s version when I did something wrong with my keyboard because following error occured: Configuration file ‘/etc/bind/named.conf.options’ ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to […]

Categories
Development

ValueError: The model is not configured to compute accuracy. You should pass `metrics=[“accuracy”]` to the `model.compile()` method

I am very new in Deep Learning: I am doing a deep learning course on Udemy. once I execute my code, it says: ValueError: The model is not configured to compute accuracy. You should pass metrics=[“accuracy”] to the model.compile() method. I tried to change ‘accuracy’ into ‘acc’, It gives me no more error, but the […]

Categories
Development

Error occur when I’m trying to execute train.py

When I execute python train.py –logtostderr –train_dir=training/ –pipeline_config_path=training/faster_rcnn_inception_v2_pets.config I got this error: WARNING:tensorflow: The TensorFlow contrib module will not be included in TensorFlow 2.0. For more information, please see: * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md * https://github.com/tensorflow/addons * https://github.com/tensorflow/io (for I/O related ops) If you depend on functionality not listed there, please file an issue. WARNING:tensorflow:From train.py:55: The name […]

Categories
Development

What may be the problem with this cudaGetDevice() failed. Status: cudaGetErrorString symbol not found

I’ve been having this issue for quite some time now and I can’t find a solution, I’ve tried so many things that I’ve lost track, but after some research it seems that it might have something to do with my processor (too old perhaps?), I started with machine learning for a proyect just this year […]

Categories
Development

Fix spotdl error FileNotFoundError: [Errno 2] No such file or directory: ‘/Users/kyrillhuet/Desktop/song.mp3’

I am currently making a script to easily download songs with spotdl. Here is my work so far. Kind of messy, but it’s my first time programming. echo “EASY SPOTDL” echo “———————————-” echo “” echo “Copy your song link and paste it into here:” read link echo “?: OK! Preparing to download $link” echo”” echo […]

Categories
Development Plugins

Unable to parse .nt file with rdflib

My my_data.nt file looks like this: <bob> <name> “Robert” . <bob> <knows> <amy> . I am using this code to parse it: from rdflib import Graph g = Graph() g.parse(“my_data.nt”, format=”nt”) for ele in g: print(ele) I am getting this error: Traceback (most recent call last): File “/Users/x/MyVirtualEnvs/new_python3_env/lib/python3.7/site-packages/rdflib/plugins/parsers/ntriples.py”, line 140, in parse self.parseline() File “/Users/x/MyVirtualEnvs/new_python3_env/lib/python3.7/site-packages/rdflib/plugins/parsers/ntriples.py”, […]

Categories
Development

Responses not working with Python 3.6.3 but is fine with 2.7.8

I’ve imported responses in a Python application. It runs without any issue in Python 2.7.8 but I get an error with 3.6.3. This is the error: Traceback (most recent call last): File “/var/workspace/me/j/framework/test_running/jetengine.py”, line 938, in run self.run_test(test, stat, test_obj) File “/var/workspace/me/j/framework/test_running/jetengine.py”, line 507, in run_test self.test_run(test_obj) File “/var/workspace/me/j/framework/test_running/jetengine.py”, line 422, in test_run time_out_target(test_obj.start, test_obj.timeout) […]

Categories
Development

UnboundLocalError: local variable ‘labels’ referenced before assignment white training for object detection using torch and yolov3

I’m training on custom objects for object detection by using yolo-v3 and PyTorch . labeling and every other task completed. while run the train command I’m getting the following error (base) C:\Users\murali\Desktop\yolov3>python train.py –data coco.data –cfg cfg/yolov3.cfg Namespace(accumulate=2, adam=False, arc=’defaultpw’, batch_size=32, bucket=”, cache_images=False, cfg=’cfg/yolov3.cfg’, data=’coco.data’, device=”, epochs=273, evolve=False, img_size=416, img_weights=False, multi_scale=False, name=”, nosave=False, notest=False, prebias=False, […]