Giter Club home page Giter Club logo

docmed's Introduction

Hi there, I'm Jhabar Singh ๐Ÿ‘‹

I'm an Aspiring Software Developer!!

  • ๐Ÿ”ญ I am currently working on : DSALGO VISUALIZER!
  • ๐ŸŒฑ Iโ€™m currently learning Kubernetes ๐Ÿ“š
  • ๐Ÿฅ… 2021 Goals: Contribute more to Open Source projects
  • ๐Ÿ“™ Education: Pursuing BE in Computer Science And Engineering



Projects


Languages and Tools:

HTML5 CSS3 Sass JavaScript React React Native Vue Django SQL MySQL MongoDB Git GitHub Terminal Docker

Connect with me:

jhabarsingh jhabarsingh | Twitter jhabarsingh | LinkedIn jhabarsingh | Instagram jhabarsingh | Instagram




docmed's People

Contributors

jhabarsingh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

docmed's Issues

Getting an error `can't pickle weak ref objects`

script.py:29: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
  return np.array(data)
Traceback (most recent call last):
  File "script.py", line 109, in <module>
    pickle.dump(model, binary_file)
TypeError: can't pickle weakref objects
(env)

I tried to pickle model object in CODE

Getting Error While Uploading the Image from the frontend.

CODE

@csrf_exempt
def covid_xray_prediction(request, *args, **kwargs):
	"""
	Covid Detectoin From Xray Report
	"""
	if request.method == 'POST' and request.FILES['file']:
		image = request.FILES['file']
		nparr = numpy.fromstring(image, numpy.uint8)
		img = cv2.imdecode(nparr, cv2.IMREAD_COLOR)
		hasCovid = classify_xray(img)
		print(hasCovid)
		if hasCovid == 'noncovid':
			return render(request, "machine_learning/covid_xray_prediction.html", {
				'data': 'true'
			})
		image = Image.open(image).convert('RGB')
		data = predict_from_xray(image)
		return redirect("main:covid_xray_result", data)
	return render(request, "machine_learning/covid_xray_prediction.html", {
		'data': 'false'
	})

ERROR

a bytes-like object is required, not 'InMemoryUploadedFile'

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.