-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What will be the value of n in:::: train_images = np.zeros((int(len(files)/n), n, 227, 227)) #1
Comments
@sanjayroka05 did you get what to put the value of n? |
No sir did you have any idea regarding the value of n?
…On Thu, Jan 7, 2021 at 2:10 AM AbhishekNanda7429 ***@***.***> wrote:
@sanjayroka05 <https://github.com/sanjayroka05> did you get what to put
the value of n?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEJP63IHNZGT7HFCXGQJ74LSYTDFNANCNFSM4UNE2A5Q>
.
|
@sanjayroka05 no. i am also trying to find out the value of n |
facing the same issue |
Dear Sanjay and Abhishek, Run the below code separately and remove those lines 230-245 from project_code.py files = sorted(glob.glob(UCSD_FOLDER+'/UCSDped1/Train//')) It works for me. hope may helps to you also. please help me anyone, if you know this. |
Respected Sir thanks for the code. But what will be the value of "n" here ?
2.1 Training Phase:
files = sorted(glob.glob(UCSD_FOLDER+'/UCSDped1/Train//'))
train_images = np.zeros((int(len(files)/n), n, 227, 227))
i = 0
idx = 0
for filename in range(0, len(files)):
im = Image.open(files[filename])
im = im.resize((n,n))
a[idx,i,:,:] = np.array(im, dtype=np.float32)/255.0
i = i + 1
if i >= n:
idx = idx + 1
i = 0
np.save(UCSD_FOLDER + '/stacked_cae.npy',train_images)
After correctly executing above code I got error:.......................................................................
NameError Traceback (most recent call last)
in ()
1 files = sorted(glob.glob(UCSD_FOLDER+'/UCSDped1/Train//'))
----> 2 train_images = np.zeros((int(len(files)/n), n, 227, 227))
3 i = 0
4 idx = 0
5 for filename in range(0, len(files)):
NameError: name 'n' is not defined
The text was updated successfully, but these errors were encountered: