Category : model

I am working on binary image classification of big number of 3 channeled 512*512 images. I use VGG16 for feature extraction for a generator built from imagedatagenerator. While training the feature extraction model on colab, the RAM usage increases until it crashes the session before it finished training. I tried changing batch size, taking 1 ..

Read more

I’m using Django. I created 3 models: Category, Feature, Question. class Category(models.Model): category_name = models.CharField(max_length=300) category_order = IntegerRangeField(default=0, min_value=0) category_visible = models.BooleanField(default=True) def __str__(self): return self.category_name class Meta(object): ordering = [‘category_order’] class Feature(models.Model): category = models.ForeignKey(Category, on_delete=models.CASCADE) feature_name = models.CharField(max_length=300) feature_code = models.CharField(max_length=50, unique=True) feature_predictable = models.BooleanField(default=False) def __str__(self): return self.feature_name class Question(models.Model): feature = ..

Read more

I would like to print the dates stored in my models.py. However, it seems like Django couldn’t access them. Here you can have a look at the relevant pieces of my code: views.py from django.db.models.fields import DateTimeField from django.http.response import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from django.utils import timezone from datetime ..

Read more