23 questions
0
votes
0
answers
24
views
How to integrate 'Around' logic in Dynamic Proxy Generation and conditionally call 'Before' and 'After'?
I have a project for Dynamic Proxy Generation with DLR using the following structure:
ProxyGenerator.cs
using System.Dynamic;
using System.Linq.Expressions;
using System.Runtime.InteropServices....
0
votes
0
answers
43
views
Inconsistent inception scores for DCGAN with same data and noise
I've been working on training a DCGAN on the CIFAR-10 dataset, and I'm evaluating the quality of generated images using the inception score. However, I've noticed that the Inception Scores vary ...
0
votes
0
answers
18
views
input sequence error in python code loading weights of textgenrnn
import numpy as np
import h5py
from keras.models import Sequential
from keras.layers import LSTM, Dense, Input
from keras.callbacks import ModelCheckpoint
# Load weights from HDF5 file
def ...
0
votes
0
answers
78
views
Changing BPM of an MP3 File in Tone.js Using a Slider
I'm working on a university project that involves manipulating audio files using the Tone.js library. I'm a beginner in both music and Tone.js library, so I'm hoping for some guidance on how to ...
0
votes
1
answer
353
views
Is there a way to generate a bigquery query on the fly or Dynamically, based on an list of criteria for the where condition?
I'm Trying to generate a query in big query dynamically based on different conditions in the "Where" condition of the query.
so for instance if I receive a list of columns and their ...
0
votes
1
answer
592
views
ValueError: You have to specify pixel_values
Is it possible to generate an image using the CLIP model without giving a reference image? I tried to follow the documentation and came up with this:
import torch
from transformers import ...
0
votes
1
answer
221
views
stabilityai/stable-cascade takes 7+ hours to generate an image
I am using this model: https://huggingface.co/stabilityai/stable-cascade
from diffusers import StableCascadeCombinedPipeline
print("LOADING MODEL")
pipe = StableCascadeCombinedPipeline....
0
votes
1
answer
76
views
I am designing Generative Adversarial network (GAN) for denovo antibody sequence generation
I am currently working on GAN for antibody design.
The problem is, generator accuracy is not improving while discriminator seems to perform well. The results are attached. How to improve it?
I have ...
0
votes
0
answers
108
views
How can I make GCC Assert a Compile Time Error when an array of constant structs has a single uninitialized element?
I want to generate asserts at compile time, checking whether each element within a struct is initialized or not. I was wondering how I could generate a for loop of such static assert statements at ...
0
votes
1
answer
74
views
JavaScript Counter Variable Fluctuate Between Two Values
I'm trying to fluctuate the variable "z" by 0.1 between the two ranges of 0 and 2 continuously. When it hits the max of 2, I want the variable "z" to decrement. And when it hits ...
0
votes
2
answers
96
views
How to write CPP template functions that is recursive on argument array length
Say I want to write a function arrfill<N> that fills an array of length N. Below is the template implementation I tried.
template<typename T>
bool arrfill(T arr[0], T v){;}
template<...
0
votes
2
answers
3k
views
Templated member variables in C++
Often when writing templated code, I find myself needing to store an instance of the template type in a member variable. For example, I might need to cache a value to be used later on. I would like to ...
1
vote
1
answer
1k
views
Javascript P5, drawing a grid on a canvas
I'm carrying out a P5 assignment for college and struggling to understand some code I found online. I've included a screenshot of the output of the code and the actual code below. I understand the ...
0
votes
2
answers
150
views
Gen: How to combine multiple generative function traces in a higher-order generative function?
I'm going through the "Introduction to Modeling in Gen" Notebook at https://github.com/probcomp/gen-quickstart
Section 5 (Calling other generative functions) asks to "Construct a data set for which ...
0
votes
0
answers
300
views
How to start a generative portrait in p5.js
I need help with a code I'm working on for a project.
What I need it to do is show the users the picture one by one and memorize the time spent on each. At the end it should open the webcam and ...