𝐃𝐨𝐰𝐧𝐥𝐨𝐚𝐝 𝐭𝐡𝐞 𝐬𝐜𝐫𝐢𝐩𝐭 𝐚𝐧𝐝 𝐧𝐨𝐭𝐞𝐛𝐨𝐨𝐤 𝐜𝐨𝐝𝐞 𝐟𝐫𝐨𝐦 👉 bit.ly/5mbColabScript (more instructions in the video description on how to use it). If you get a File-Not-Found Error, remember that the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point (often due to incorrect Blender version number or file name), it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is and suggest you accordingly.
Thank you very much on behalf of my laptop too !There are very few Blender gurus whose videos aren't annoyingly loud , their videos are not actually about only hidden trading and " sign up ! " hunting . There are very, very few Blender gurus who come with valuable , clear content. You are like that. Thank You !
@@5MinutesBlender My pleasure ! Thanks for your shared knowledge , now I can render in good quality and quickly with a laptop away from my home.( Asus i5, 16 GB RAM, 2Gb Gpu ) Although until now this was only possible on the my home pc. (By terms of efficiency.) First i tried this method with a simple , short animation consisting of 450 frames. ( Fbx character, particle system based light sword, some reflective surfaces, HDRI background light with cycles render + 32 / denoising ) Shortly after the test start , i wached cycle of the runtime environment in disbelief: done !Then I saw the result : highly effective !I mean..Wow ! So i just want to say that you make my day , rather than vice versa. Thank you !
Glad you mentioned best practices. I've heard some ai image people having problems. All the videos I have seen on that just go, use colab, nothing else. Another thing that might need to get out is google can deny access if they are busy. They do that even to the lower tier paid. It's in the terms of service. When it happened to me, I tried again and it was no problem. BTW you make great vids!
I am glad to know that you found some differences 💝 I have been using this service and I tried to enrich the video with my experience. Thanks for your tips too 👍👍
I've been rendering before with Google Colab and I was using it with different guidance and notebooks, but the way you presented and the code you provided made it the easiest way so far. Great tutorial, thank you!
Thank you man, it's absolutely works! and thanks for making this vids as short as possible, and the clear instruction :D Keep It UP man! Wishing you luck :P
Really cool! If your render is getting canceled on google colab ("c^"), that's probably because you're using too much memory, so I recommend to check the box "Use compact BVH" to lower the memory footprint (it will slow down the render a bit though). Of course, this solution is not the best for big projects, but for small ones/still images it works pretty nice.
Worked even with linked assets, you just upload the blend files or the folder with the blend files of the assets to the drive. By the way I had to do some changes to the code, basically removin every space ("My Drive = MyDrive" and "Image Sequence = Image_Sequence") And for animation I used "-s 0 -e 10 -a"
You made my day bro! 😊💝💝 Indeed I try to send a reply to everyone. I believe that it's my core responsibility to address questions that people might have after watching our tutorials. I'm surprised and extremely pleased to know that our effort did not go unnoticed! Thank you so much 😊💝💝
Please ensure that you have created the folders as shown in this tutorial, and then check the version number of the Blender file you are using. The Blender version is always changing, so the current version is different from what we used in this tutorial. You need to change this number in the script, and change it everywhere it is mentioned. All other things remain the same except the version number.
It creates the frames initially in a similar folder within colab. Once this step is over (i.e. all frames are rendered), it will copy them to your drive folder. If you want to check it in the mean time, expand the file explorer on colab and check the folder called image sequence under content. You can even manually download them while the rendering is on. We purposefully did not direct the render result to the drive folder in order to make it faster and to avoid any accidental removal of the frames by another parallel process.
Thanks for the tutorial, works excelente, i am rendering with collab an animation of 198 frames, i arrive to 68 and after colab asked me to pay, what are the time for use again?
The clock usually resets in a day or two, and you can again use it for free. Please ensure not to hit their time limit ever since hitting this limit several times can make colab less available for your account permanently. There is no specific limit because it depends on the network use and many other factors. I have seen if I choose the right time of the day it is safe to run colab for 40-45 minutes at a stretch, for 2 such runs in a single day spaced by a few hours. But this can change dynamically from day to day.
To me, it is not useful, because this Linux version hasn't Animation Nodes installed. In fact, I don't see anything about a blender version with plugins installed. So, how can you use this with plugins?
If you mean add-ons, you can install them using the script. So in the colab notebook, use some commands like bpy.ops.preferences.addon_install(filepath=...) to install your add-on, then enable it using bpy.ops.preferences.addon_enable(module=...) and then render your scene.
@@fullyleaded As you might know, there is a huge issue with rendering in Blender with Animation Nodes. If you make extensive use of Animation Nodes, like switching the shaders by using those nodes, and you render this in the usual way, like with Ctrl F12, Blender _crashes immediately!_ Thanks to Chris P and his UA-cam channel, there is a solution. You must not render directly, but render by using a Python script in the Scripting editor. You can find the code if you go to the video of Chris P, ua-cam.com/video/ydAmFR2wN9w/v-deo.html I not only render in Blender but also make animations in the Unity game engine. There I render with the Recorder asset, which renders _much faster!_ However, this has another problem. If you decide to use Unity now, you can no longer install this Recorder asset, because it has been decommissioned. Only those who have used it in the past are allowed to use it. Moreover, the latest version of Unity wherein this Recorder works is Unity 2021.3f if I remember well. I also have made a midi program with its own renderer. However, its rendering happened on the CPU, and the graphics were based on the Windows API, which made it really unstable. So, I have made only a few videos with that. And, lastly, I have made a midi animation with Wolfram's Mathematica, which also has a renderer. However, the graphical capabilities for making midi animations were too restrictive. A few days ago I bought K-Cycles for Blender, but I haven't made an animation yet with that plugin. So, I don't know whether this will have stability issues. Oh yes. Before I forget. I also used Camtasia when I made animations with Synthesia. But that was way too primitive.
i am getting this error, how to fix it? Blender 4.0.2 (hash 9be62e85b727 built 2023-12-05 08:48:50) Traceback (most recent call last): File "/content/blender-4.0.2-linux-x64/4.0/scripts/startup/bl_operators/userpref.py", line 659, in execute if os.path.samefile(pyfile_dir, addon_path): File "/content/blender-4.0.2-linux-x64/4.0/python/lib/python3.10/genericpath.py", line 100, in samefile s1 = os.stat(f1) FileNotFoundError: [Errno 2] No such file or directory: 'content/drive/MyDrive/Colab-Render' Error: Python: Traceback (most recent call last): File "/content/blender-4.0.2-linux-x64/4.0/scripts/startup/bl_operators/userpref.py", line 659, in execute if os.path.samefile(pyfile_dir, addon_path): File "/content/blender-4.0.2-linux-x64/4.0/python/lib/python3.10/genericpath.py", line 100, in samefile s1 = os.stat(f1) FileNotFoundError: [Errno 2] No such file or directory: 'content/drive/MyDrive/Colab-Render' Location: /content/blender-4.0.2-linux-x64/4.0/scripts/modules/bpy/ops.py:109 Traceback (most recent call last): File "/content/drive/MyDrive/Colab-Render/Addon_Enable1", line 3, in bpy.ops.preferences.addon_install(filepath='content/drive/MyDrive/Colab-Render/botaniq_full-6.4.0.zip') File "/content/blender-4.0.2-linux-x64/4.0/scripts/modules/bpy/ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) RuntimeError: Error: Python: Traceback (most recent call last): File "/content/blender-4.0.2-linux-x64/4.0/scripts/startup/bl_operators/userpref.py", line 659, in execute if os.path.samefile(pyfile_dir, addon_path): File "/content/blender-4.0.2-linux-x64/4.0/python/lib/python3.10/genericpath.py", line 100, in samefile s1 = os.stat(f1) FileNotFoundError: [Errno 2] No such file or directory: 'content/drive/MyDrive/Colab-Render' Location: /content/blender-4.0.2-linux-x64/4.0/scripts/modules/bpy/ops.py:109
A big thumbs up for creating such an esay cloud rendering video! i've propably watched all the video on youtube abount cloud rendering none of those worked out for me but man this worked on a first try its so simple and esay compared to other videos that ive watched. Thanks a lot. Just curious to know the frame render limitations if there are any can i do like 500 frames with less render samples.
Thanks for the appreciation and I'm glad that it worked 😊 Yes, you can use a lower sample number like 64 or even 50 unless you have very fine texture etc. But do these experiments first on your machine and ensure the quality you need. Then render a couple of frames on colab and check the time it needed for the actual render. Now render a series keeping the overall time within one hour. Don't go beyond that in one stretch, to remain in the good book of Google.
@@5MinutesBlender ill surely keep these thing on mind once again thankyou very muchhhhh I dont have a word to discribe how thankfull i am!. Looking forward for more cool videos.
Hi, often the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point, it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is and suggest you accordingly.
We used png for image files or image sequence files. You can easily convert that image sequence into a video. This is the industry norm i.e. first render into image files and later combine them into a video mp4 file in any video editor. However, you can also render directly a video file as well if you wish (but this is not recommended as the image sequence has several advantages).
@@_Chipp In your blend file you need to set the output file format as ffmpeg instead of PNG or something else. Then either don't use any output format in the colab notebook code (search for PNG in that code) or replace it with FFMPEG (the notebook code overrides your blend file settings, better to set it as FFMPEG in the blend file and just omit this parameter in the notebook code).
Glad it helped! 😊 I am not the first one to use this service, someone told me about it, I shared it with you adding my own experience, and you'll also pass on the knowledge to someone else... the knowledge chain will grow like that ❤️
Similarly, you can create a StableDiffusion instance and run on the colab servers, if your computer is a potato. I used the paid GPUs for a bit, it was only $9/month
I see this error Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True). xz: (stdin): File format not recognized tar: Child returned status 1 tar: Error is not recoverable: exiting now /bin/bash: line 1: ./blender-3.6.13-linux-x64/blender: No such file or directory
It seems that the system is not able to recognize the tar.xz file. Can you please check if the tar.xz file is correctly downloaded & then uploaded? If there is a broken download it can happen. I am not able to guess any other reason. The last error is a consequence of this first error only.
Hi! I was already 100frames in, and my runtime has ended. I want to save the frames ive already done. I go to the file tap on the left and click contents and the inage sequence, but there is no option or checkbox to download the frames ive done. how can i save them??
Sorry for the late response. Unfortunately, once the runtime disconnects the local data is completely wiped out, so there is no way to get back already rendered images. So what I do instead is (although I seldom encountered disconnection) I do it in a batch of 50 and keep saving the set. That way in the worst case I will only lose the last 50 files, everything else is saved. You can even do it in a batch of 25, or you can modify the script to save each frame into Google drive, so no frame is lost even in case of an abrupt disconnection.
it s normal that is superslow the render in colab i have a simple i3 and it put 2 hour for a frame and google colab put 5 hours for a frame... it s normal?
No, it is not normal. It should not take even 2 hrs. I guess your render settings are probably incorrect or you forgot to enable GPU. Colab is usually quite fast, but based on the network traffic sometimes it can be slow. However, Colab free plan does not allow you to run on GPU for 5 hrs, so when you say that it took 5 hrs to render a frame, I think you are not using GPU.
I know you said that you changed it, but I will still insist you check if you have selected GPU in the render device under render properties. This same file has to be then saved and uploaded to Google Drive. Google Drive and Google Colab takes some time to sync up. So if you replace your file and immediately run Google Colab, it may actually use the older file. These are few things I suggest you to first check.
Thanks, but I have a problem. Since the files are copied to the drive only after full rendering is done, my files get lost if the session is stopped by a network interruption or some other problem. Is there a way to copy it to the drive after about each 15 frames or so? I also accessed the Image Sequence folder from the content/drive while rendering, but I need to download each frame individually, which is tiring when there are lots of them.
There are two solutions. We can change the output file location in the script to Google drive, in that case the output will be saved directly in drive instead of colab. So if there is a disconnection, you have the already rendered frames intact. But this needs a constant data transfer between colab and drive which slows down the process. Our ultimate aim is to save time. So the other option is to break down the rendering into multiple parts. I usually render 50 frames or sometimes 25 frames at a stretch. It takes 15-20 minutes. Then I go for the next set. I never experienced a disconnection with such a small set, and never lost anything. It also acts as a reminder for me not to overuse colab (to avoid a ban). I usually render only 75 frames in a day and I never ever experienced any ban etc. I do have multiple machines and multiple accounts, but it is a risky bet if you are not cautious enough - so I don't recommend it to others 🙂
Thank you very much for your contribution; it is of great value to us since we don't have very powerful computers! I have a question: can I use this same code with Google's paid GPUs? They have a package that offers 100 computation units, but I would like to know how many frames or projects I can create with those 100 units that Google Colab offers in the pro package.
Glad you liked this tutorial 😊 Yes, you can use this same script with the paid GPUs, no difference in the script. But before you go for the paid options, I suggest you try it with the free GPUs and be comfortable. Google imposes some restrictions even for the paid GPUs (when the uses are highly loaded). After several uses you'll get a fair idea about how long it takes to render some scene (it is not a constant value, it depends a lot on your scene, materials, textures and also the network load).
There is no easy way to do that since we are using the command line input to run Blender, and Eevee is not supported through the command line mode, it always defaults to Cycles. Some people invented a clever way to fake a display within the command line mode and cheat Blender to run Eevee. So I won't say that it is impossible, but within the Colab environment it is going to be almost useless because you'll need to do the entire setup every time you connect, and secondly the speed advantage is also reduced when we use a fake display. It is more useful on a personal computer.
Please send me the complete output. Often the error code you see at the end is not the correct one. If a previous step failed for some reason, it will raise more errors in the subsequent steps. We need to solve that original error to get rid of the rests. You can send me the output to 5minblender@gmail.com and continue this discussion there.
I did it but the folder only has random frames and not all of them, what could be the cause? (I ended the process before all my frames were rendered btw, but a lot of frames that were rendered are missing)
If you terminated the program premature, the result is not guaranteed. But I would like mention one thing here.... when you browse a folder on Google Drive that has a lot of files, it shows only some of them at random. I mean you may not find all the files in the list until it completes fetching all the file details. But the files are probably there. Just try to download the whole output folder as a zip file and then check on your machine if something is missing. I have been into this problem and in my case all files were intact although they were not showing up.
Umm, probably you tried to accidentally open that file instead of upload because it won't give this error when you try to upload. Upload means simply copying that file from your machine to your Google drive. The other possibility is, you may have an antivirus that is trying to read through every file you upload or download. If that is the case, disable that program during this upload.
Please check if there is an error prior to this. This error is thrown when the script copies the rendered frames to your drive folder, which happens once the render is complete. But if the render fails for any reason, it fails in the copy step as well and then this error is shown. We need to see why the render did not work (often a file name mismatch remains the root cause).
@@5MinutesBlender I get the same error message Mounted at /content/drive tar: /content/drive/My Drive/Colab-Render/blender-4.0.2-linux-x64.tar.xz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now /bin/bash: line 1: ./blender-4.0.2-linux-x64/blender: No such file or directory --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) in () 14 #Step-5: Copy output files from colab to drive 15 import shutil ---> 16 shutil.copytree("/content/Image Sequence", "/content/drive/My Drive/Colab-Render/Image Sequence", dirs_exist_ok=True) /usr/lib/python3.10/shutil.py in copytree(src, dst, symlinks, ignore, copy_function, ignore_dangling_symlinks, dirs_exist_ok) 555 """ 556 sys.audit("shutil.copytree", src, dst) --> 557 with os.scandir(src) as itr: 558 entries = list(itr) 559 return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks, FileNotFoundError: [Errno 2] No such file or directory: '/content/Image Sequence'
And on the side it explains the error The code you provided is failing because the folder /content/Image Sequence does not exist. This is likely because you did not complete Step-4 of the process, which involves rendering the animation on Colab. To fix this error, you can either re-run Step-4 or manually create the /content/Image Sequence folder. Once the folder exists, you can re-run the code and it should complete successfully.
I just removed code in step 3 "#Step-3: Remove existing folder on colab, if any" and i created folder manually with Image Sequence inside "content" folder use file explorer on colab
I just removed code in step 3 "#Step-3: Remove existing folder on colab, if any" and i created folder manually with Image Sequence inside "content" folder use file explorer on colab. and it's works for me
Yes, with a pro subscription you'll get access to more powerful GPUs (the free GPU T4 is lowest in the rank), so it will render faster. However, please note that the server load is also important. If many pro users are trying to render at the same time, the response time may get affected (but it is still expected to be far better than the free tire).
We need to create a folder in Google drive called Image Sequence. Also, if there are multiple errors, look at the first error (which can cause further errors that are unrelated) - don't just go by the last error in the list.
@@Orochi_Hunxho_Bieber_Ye Can you please send the complete console output to me at 5minblender@gmail.com? I mean the entire stack trace you get on colab.
i have made a quick fire simulation in the blend file, unforturnately google colab doesnt render the fire simulation it only renders the emitter mesh lighting and the whole scene, is there any way i can render fire, water or smoke simulation using google colab? thank you
Please render it first on your local machine, maybe just a few frames say frame# 50, 100, 150, 200 etc and use Cycles for this. Then check if everything looks correct. Only then move it to colab. More than often the issues may be caught in the local rendering itself. If it renders correctly on your local machine but errs out on colab, we can investigate - but that is very rare, I have not seen any such case yet.
@@ayaangamingatoz9494 Then I am not sure what the issue could be 🤔 Please check if you have any dependency on some file (say some texture or hdri) which you forgot to upload to colab or google drive. I have not come across any other reason so far that makes any difference between colab render and local render although sometimes I have experienced a small difference in the output quality with the same settings in both the places. I think the renderer uses some optimization based on the gpu settings, but this difference is very subtle, it is no match for the level of discrepancies you have described above.
Yes, very much possible. Before upload, in your Blend file, go to the output properties and set the output file format to openexr. Then save the blend file and upload to your Google drive. Now if you render it using Google colab, you'll get openexr files in the output folder.
@@eemsa Good catch! The format identifier in the notebook will override the blender file settings. So either remove that format identifier from the notebook code or change it to EXR from PNG. Then the output will be saved in openexr format. I just checked this.
Just back from my vacation, so this late response. It seems that no render was done in your case and hence the output folder was not created. This is the lower part of the error msg. Please scroll up and check its previous msg to find out why the render was not done in the first place. The source of the error lies there. This error which you sent is just a logical consequence of the original error.
I just removed code in step 3 "#Step-3: Remove existing folder on colab, if any" and i created folder manually with Image Sequence inside "content" folder use file explorer on colab
We are using the headless mode (CLI or command line instruction) to run Blender on Colab. This mode does not support Eevee, it only works for Cycles. If you want to use Eevee, it is anyway equivalent to your own local machine. We have an advantage to use the Colab version if we are using the GPU for Cycles.
hi, the video is great, thank you. i have a problem i can't use gpu for some reason it is limiting and running very slow on cpu any idea how to fix it?
Google has some usage restrictions for GPU. As discussed toward the end of this tutorial, follow the best practices to remain in the good book of Google and you'll be able to get GPU. For the time being, stay away from Google Colab for a couple of days so that the counter resets and you get back the access to a GPU. Then use it economically so that you are not again banned.
Sorry for the late response. Often the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point, it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is
It may be caused by a missing HDRI. Are you using any HDRI lighting in your scene and did you pack the HDRI file along with your blend file before upload? Otherwise colab won't be able to find your HDRI and some important lighting will be missing.
I am facing an error my all directories are right but facing error in 4th step /bin/bash: line 1: ./blender-4.0.2-linux-x64/blender: No such file or directory --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) How to solve it
The error in this 4th step is due to some other error in its previous step. Don't look at the last line, check from the start of the log. We need to solve the very first error because any other error is just a consequence of the first error. Like in another case, the user did not use the correct name for the Blender installation file. So check any such error in the previous steps (or you can send your error log to us at 5minblender@gmail.com so that we can check it). Thanks!
Often the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point, it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is.
Often the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point, it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is and suggest you accordingly.
@@5MinutesBlender In my case, I fixed it by adding the folder just above "Step-4" like this: output_dir = "/content/Image Sequence" if not os.path.exists(output_dir): os.makedirs(output_dir)
Im having sam issues can you just post the code, in FULL, to save time. Thanks in advance. I tried to understand your comments but it's to convoluted for me to understand what you mean by 'you made a new folder'...
Hello! My scene has a group of people, and their clothes have fabric simulation. These clothes and their animation were created in Marvelous Designer, which generates an Alembic file. This file is imported into Blender, and the mesh has a Mesh Sequence Cache modifier. When rendering the animation, the characters are rendered normally, but the clothes do not have the animation loaded and remain static and completely out of place. Is it possible to render with these clothes???
Hi, since you are using an add-on, first you need to also install that add-on while installing blender on colab. However, based on the add-on design it may or may not work because we are working completely in a headless mode here (i.e. through command line input). Some add-ons may need you to be in UI mode. For example, we have developed a 3D data visualizer add-on (it is a paid add-on) that works with colab, it is designed that way. Please check the comment trail we exchanged with another viewer who had a similar requirement. It contains more details on how to install an add-on on colab and some related issues in that respect. You can follow the same and try your luck.
@@dustonclubs3867 I can make a tutorial, but the problem is, colab runs on command line input, it does not have any UI. So any add-on that we install on colab won't be very helpful. We can only use those add-ons that come without any UI or menu, instead they have CLI mode. I am not aware of such add-ons, if you know please share. We can then create a tutorial on how to install the add-on on colab.
I have the PRO version and they denied me access, it says it is due to "inappropriate activity" I only use it for rendering, not for mining, I tried with several accounts and the same problem, any solution?
Some possible reasons I can think of: 1) You have used GPU backend without actually utilizing GPU for a prolonged time (running idle sessions or running tasks that do not utilize GPU) 2) You have VPN on the same machine where you have used Colab which signaled a parallel login from geographically separate places 3) Someone tried to get access to your account multiple times. I hope the ban will be lifted automatically, but since you are PRO subscriber, you have all rights to contact the support and ask for an explanation.
Hello sir, i have a question, can the rendered frames outputs in video format???? because it would cost too much internet data , for example if i render my animation in 30fps then one minute video will be 1800 frames and if i render them each will be 2.5 mb average and it will be around 4.5GB just to download pngs :/
Yes it is possible. You need to select the ffmpeg option in the output format in your blend file, then save it and upload to drive. It will create a video output in the same location where you get the frames, it will directly create the video instead of the frames. You need to ensure that the internet connection is stable, and you cannot use it for a long animation since Google Colab will timeout and the progress will be lost. Suitable only for small a duration.
@@5MinutesBlender do I have to change in colab note too , it's written PNG in it so I'm wondering what to write there in place of PNG?? and yes I'll not do long animation just in parts but I want it in video format , video format size would be less like under 50mb and thank u sir ☺️
No you can safely ignore it. Don't enter anything in colab notebook (remove "-f png" this entire part), it will pick up the format from your blend file.
Thanks for the video and detailed explanation but I am getting stuck at a point- I am using a video .mov file in blender of 10sec long and my animation is also 10 sec long both with 30fps. Everything alright on pc. When i render on pc it comes out alright but not on colab. I also put that video in asset folder in same directory on drive. I also packed resources everything else comes out alright except that video. Help me in correcting it, it will be great help.
So let me understand it better. When you render on colab, what happens? Does the video show a mismatch in fps? Or does it render as black? What is the problem you see?
@@5MinutesBlender Hi thanks for the reply, When i used it on collab it showed only purple screen instead of the frame for the video same thing for multiple frames(no change). reference: drive.google.com/file/d/1ZT62qa7GeGob48rSUsjjB0y2OSR3C85i/view?usp=drive_link But it showed me correctly if i render it on my pc and supposed to be like this. reference: drive.google.com/file/d/1B7G7rGQh8T_Qdt8CKtQ8vKwsPulSHo0M/view?usp=drive_link Please look into the reason if there is any and help me to resolve it. It will be a great help!!!
It usually happens if your texture or HDRI file is missing. The purple color is indicative of a missing texture (either for the materials or for the world background). Please double check if you packed all your textures into the blend file (and saved it) before uploading to Google drive. It can also happen for some other reasons, like you may have Fluid simulation in your scene and the baked data is not uploaded to drive.
@@5MinutesBlender It worked!!! Hi I packed resources 4-5 times and saved again and then render and got the expected result. I must not have packed correctly. Thanks alot....! Request: Can you please make another video on how to render on google colab using resource files without packing resources. Sometimes if anyone use multiple some files for bigger projects, with packing blend file may become alot bigger in size... Hope you will make video on that... looking forward to that..!!!😊
@@NishaDevi-mf4sh Glad to know that it worked! 😊 Yes, packing is not mandatory, like I just rendered a fluid simulation a few days back in which case the fluid's baked data was uploaded to Google drive as a completely separate file (in fact as a separate folder, having several sub-folders, each sub-folder then contains thousands of files in it..... so a large file system). It rendered correctly. The key here is to use the correct "relative" file path everywhere. Then it does not matter whether you are rendering from your machine or on Google colab, it will use that relative path and get the textures or any such external file correctly. We talked about packing in this tutorial because that is simple to do, most reliable and it keeps everything clean. For large files, you can keep the files separate, just use relative file paths for those files.
It depends on your use case. If you render a lot, you can compare their price with several online render farms who do just this rendering for a price. Going for pro account in colab may not be beneficial if rendering is your only use case.
@@onezein Extremely sorry I missed this. I suggest you render one frame on your machine to ensure that everything works fine on your machine before you upload it to colab or google drive. Sometimes we accidentally hide the light in render or there maybe some other issues. Once it works fine on your machine, use the same setup on colab. If this does not resolve the issue, you can send your blend file to 5minblender@gmail.com so that we can verify it and suggest something.
Hmm. Never ran into this issue. Googling revolves that it may be related to a VRAM issue or an unstable beta version. Maybe you can use an older version of Blender like 3.6 or even 3.4 and check if that gives any better result.
@@5MinutesBlender I tested another project with the latest version of Blender, and it worked. I think there might be an issue with my project. I tried following your suggestion to use an older version, but it didn't work; it showed the same error.
@@trishoutofficial Oh Ok, I see. Yes, it could then your project file related, maybe it is too big for the available resources, or maybe some other issues. I am happy to see that the code at least worked for another project 👍
Yes, absolutely. You only need to prepare your blend file accordingly (set the output file type as exr). It will generate the exr output in the output location set by you.
Yes of course, but you need to first bake the simulation. We are preparing another tutorial on how to bake fluid simulations on Google colab. With that, you can bake and then render. It will be published soon on this channel.
Hi, im getting this error code at the end. "FileNotFoundError: [Errno 2] No such file or directory: '/content/Image Sequence'" I dont know why i think my file paths are ok.
Hi, it seems that no render was done in your case and hence the output folder called Image Sequence was not created. This is the lower part of the error msg. Please scroll up and check its previous msg to find out why the render was not done in the first place. The source of the error lies there. This error which you sent is just a logical consequence of the original error which we need to solve first.
Thank you for the fast response i will check that message again when able. Far as i remember the error happens when it tries to move the finished render to the folder. @@5MinutesBlender
@@rumblingtracks On colab, you can open a file explorer (something like windows explorer but it is on colab), you can browse and view the files or even upload/download files directly from colab. So if you think the render finished successfully and it threw an error only at the last step while moving it to your drive, kindly open the file explorer and check if it actually created the image sequence folder or not. If not, you should check where it kept those render outputs. It's possible that you made a typo somewhere. Anyway, please let me know what you find out when you get time. All the best!
Hello! Just tried again and its working now. Turned out i actually made a typo. Sems yesterday was too tired to find my error. Thank you for you help and fast response. This will help me allot :)@@5MinutesBlender
No problem. You can have any operating system on your machine, Google colab runs on Linux, so you need to use the Linux version in colab. You can prepare your blend file on windows as usual, and upload it to your Google drive. It will work smoothly on colab since Blender is a platform independent software.
Yes definitely. In the output settings, select the output file format as OpenEXR. Needless to say, you have to make this change before you upload your blend file to colab or your drive.
No, you need to keep the machine up, and the internet should be connected. Otherwise it will timeout since colab constantly checks if you are online. It is actually made for interactive work, we are using it for a batch processing 😂
You can, but use them very cautiously. I do use multiple accounts & I never got flagged. But it is risky, you need to time your jobs such that the system is never overused from your IP. The thumbrule is not to ever consume the entire bandwidth they provide to each account. Secondly, monitor the resource performance. If you think the network is busy (usually happens during peak hours in the day time), leave your job for a better time.
Yes, very much. It works with any version of Blender. You need to use the correct tar file name and the correct blender version in the notebook code (for any specific version you download). Everything else remains the same.
Please check if it is actually using Colab GPU or not. It renders slow when it is not utilizing Colab GPU for any reason or if you have unknowingly used a very high sample value.
@@koza4825 I checked it today and did not find any issues. What error do you see? As we cautioned in the tutorial, if you overuse it, Google will restrict your access. Leave it for a couple of days and you should get back the access I hope as the counter resets.
No it's not just for an image file. In the world of animation, a video is always treated as a collection of images, it is called an image sequence. The industry standard is to deal everything as an image sequence instead of a video. A video is only produced at the very end of the production process, rendering is never done as a video, it is almost always done as an image sequence. So here we have discussed how to generate that image sequence on colab. Later you'll just convert that image sequence into your final video either within Blender or in any other video editing software. That is the norm in use.
i used botaniq in the project, but in the render it's not there as i would have to install it in the colab blender too, can u tell me what changes i have to make in that code and where do i have to add the new code lines? " If you mean add-ons, you can install them using the script. So in the colab notebook, use some commands like bpy.ops.preferences.addon_install(filepath=...) to install your add-on, then enable it using bpy.ops.preferences.addon_enable(module=...) and then render your scene. "
Add these commands after Blender is installed on colab i.e. after Step 2. Within the commands the only thing you'll need to change is the filepath for the add-on you're installing (upload botaniq add-on zip file to your google drive and mention that path after the filepath= part within quotes, and mention the module name or the add-on name after the module= part within quotes, the module name can be found on your system where botaniq is installed, from Edit Preferences Add-on screen). But this add-on may need additional modules in Blender. Usually a professional add-on will auto-install them when required. If not, you need to install them before this step in the same way.
@@5MinutesBlender im having this error: File "", line 7 bpy.ops.preferences.addon_install(filepath="C:\Users\llh\Desktop\poliigon-addon-blender.zip") ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
@@5MinutesBlender im having this error: File "", line 7 bpy.ops.preferences.addon_install(filepath="C:\Users\llh\Desktop\poliigon-addon-blender.zip") ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
𝐃𝐨𝐰𝐧𝐥𝐨𝐚𝐝 𝐭𝐡𝐞 𝐬𝐜𝐫𝐢𝐩𝐭 𝐚𝐧𝐝 𝐧𝐨𝐭𝐞𝐛𝐨𝐨𝐤 𝐜𝐨𝐝𝐞 𝐟𝐫𝐨𝐦 👉 bit.ly/5mbColabScript (more instructions in the video description on how to use it). If you get a File-Not-Found Error, remember that the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point (often due to incorrect Blender version number or file name), it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is and suggest you accordingly.
I did it and it worked, thanks
@@scmusicacademy1341 Awesome! Cheers!!
Thank you very much on behalf of my laptop too !There are very few Blender gurus whose videos aren't annoyingly loud , their videos are not actually about only hidden trading and " sign up ! " hunting . There are very, very few Blender gurus who come with valuable , clear content. You are like that. Thank You !
Thank you so much for the appreciation, you made my day 😊💝💝
@@5MinutesBlender My pleasure ! Thanks for your shared knowledge , now I can render in good quality and quickly with a laptop away from my home.( Asus i5, 16 GB RAM, 2Gb Gpu ) Although until now this was only possible on the my home pc.
(By terms of efficiency.)
First i tried this method with a simple , short animation consisting of 450 frames. ( Fbx character, particle system based light sword, some reflective surfaces, HDRI background light with cycles render + 32 / denoising ) Shortly after the test start , i wached cycle of the runtime environment in disbelief: done !Then I saw the result : highly effective !I mean..Wow !
So i just want to say that you make my day , rather than vice versa.
Thank you !
@@TheAlbinobatmanWow, that sounds great 😃😃 I'm feeling happy for you 😊
Glad you mentioned best practices. I've heard some ai image people having problems. All the videos I have seen on that just go, use colab, nothing else. Another thing that might need to get out is google can deny access if they are busy. They do that even to the lower tier paid. It's in the terms of service. When it happened to me, I tried again and it was no problem. BTW you make great vids!
I am glad to know that you found some differences 💝 I have been using this service and I tried to enrich the video with my experience. Thanks for your tips too 👍👍
I've been rendering before with Google Colab and I was using it with different guidance and notebooks, but the way you presented and the code you provided made it the easiest way so far.
Great tutorial, thank you!
Glad you found it helpful! Cheers!! 💝💝
mine always gives an error, can you help me?
@@willtube2 you need to pay...
Thank you man, it's absolutely works!
and thanks for making this vids as short as possible, and the clear instruction :D
Keep It UP man! Wishing you luck :P
Thank you for your nice words 😊💝💝
Really cool! If your render is getting canceled on google colab ("c^"), that's probably because you're using too much memory, so I recommend to check the box "Use compact BVH" to lower the memory footprint (it will slow down the render a bit though). Of course, this solution is not the best for big projects, but for small ones/still images it works pretty nice.
Thank you so much for sharing this helpful suggestion 👍👍
Worked even with linked assets, you just upload the blend files or the folder with the blend files of the assets to the drive.
By the way I had to do some changes to the code, basically removin every space ("My Drive = MyDrive" and "Image Sequence = Image_Sequence")
And for animation I used "-s 0 -e 10 -a"
Glad it helped 👍 And thanks for sharing some tips too! 👍
@@5MinutesBlender Thank you for your video, is awesome!!!
your comment saved my sanity broo
Really packed precious value in 5 minute.😊 Even replied each comment with best answers😊 will try it definitely...
Thank you so much 😊 I wish you success while trying this method 👍
The sweet spot! Tyvm
Thanks. It works for me
Glad to know that! 😊💝💝
men, you're a legend, you're legit replying every comment, what kind of a human been are you?
You made my day bro! 😊💝💝 Indeed I try to send a reply to everyone. I believe that it's my core responsibility to address questions that people might have after watching our tutorials. I'm surprised and extremely pleased to know that our effort did not go unnoticed! Thank you so much 😊💝💝
Thank you so much! Now I have no excuse to learn animation
Great 😊 Glad I could help!💝💝
Bro is it working properly?
Yes, it works as always, there is no change. You need to follow the instructions accurately. Please let us know if you still find any issues.
It's keep saying File or Directory not found content/Image Sequence
Please ensure that you have created the folders as shown in this tutorial, and then check the version number of the Blender file you are using. The Blender version is always changing, so the current version is different from what we used in this tutorial. You need to change this number in the script, and change it everywhere it is mentioned. All other things remain the same except the version number.
it has started rendering frames but when i am going in image sequence folder, it shows that the folder is empty
It creates the frames initially in a similar folder within colab. Once this step is over (i.e. all frames are rendered), it will copy them to your drive folder. If you want to check it in the mean time, expand the file explorer on colab and check the folder called image sequence under content. You can even manually download them while the rendering is on. We purposefully did not direct the render result to the drive folder in order to make it faster and to avoid any accidental removal of the frames by another parallel process.
@@5MinutesBlenderUnderstandable
Thanks for the tutorial, works excelente, i am rendering with collab an animation of 198 frames, i arrive to 68 and after colab asked me to pay, what are the time for use again?
The clock usually resets in a day or two, and you can again use it for free. Please ensure not to hit their time limit ever since hitting this limit several times can make colab less available for your account permanently. There is no specific limit because it depends on the network use and many other factors. I have seen if I choose the right time of the day it is safe to run colab for 40-45 minutes at a stretch, for 2 such runs in a single day spaced by a few hours. But this can change dynamically from day to day.
To me, it is not useful, because this Linux version hasn't Animation Nodes installed. In fact, I don't see anything about a blender version with plugins installed.
So, how can you use this with plugins?
If you mean add-ons, you can install them using the script. So in the colab notebook, use some commands like bpy.ops.preferences.addon_install(filepath=...) to install your add-on, then enable it using bpy.ops.preferences.addon_enable(module=...) and then render your scene.
@@5MinutesBlender Thanks! _NOW_ this video is useful!
What plugins do you use for rendering?
@@fullyleaded As you might know, there is a huge issue with rendering in Blender with Animation Nodes. If you make extensive use of Animation Nodes, like switching the shaders by using those nodes, and you render this in the usual way, like with Ctrl F12, Blender _crashes immediately!_
Thanks to Chris P and his UA-cam channel, there is a solution.
You must not render directly, but render by using a Python script in the Scripting editor.
You can find the code if you go to the video of Chris P,
ua-cam.com/video/ydAmFR2wN9w/v-deo.html
I not only render in Blender but also make animations in the Unity game engine. There I render with the Recorder asset, which renders _much faster!_
However, this has another problem. If you decide to use Unity now, you can no longer install this Recorder asset, because it has been decommissioned. Only those who have used it in the past are allowed to use it. Moreover, the latest version of Unity wherein this Recorder works is Unity 2021.3f if I remember well.
I also have made a midi program with its own renderer. However, its rendering happened on the CPU, and the graphics were based on the Windows API, which made it really unstable. So, I have made only a few videos with that.
And, lastly, I have made a midi animation with Wolfram's Mathematica, which also has a renderer. However, the graphical capabilities for making midi animations were too restrictive.
A few days ago I bought K-Cycles for Blender, but I haven't made an animation yet with that plugin. So, I don't know whether this will have stability issues.
Oh yes. Before I forget. I also used Camtasia when I made animations with Synthesia. But that was way too primitive.
i am getting this error, how to fix it?
Blender 4.0.2 (hash 9be62e85b727 built 2023-12-05 08:48:50)
Traceback (most recent call last):
File "/content/blender-4.0.2-linux-x64/4.0/scripts/startup/bl_operators/userpref.py", line 659, in execute
if os.path.samefile(pyfile_dir, addon_path):
File "/content/blender-4.0.2-linux-x64/4.0/python/lib/python3.10/genericpath.py", line 100, in samefile
s1 = os.stat(f1)
FileNotFoundError: [Errno 2] No such file or directory: 'content/drive/MyDrive/Colab-Render'
Error: Python: Traceback (most recent call last):
File "/content/blender-4.0.2-linux-x64/4.0/scripts/startup/bl_operators/userpref.py", line 659, in execute
if os.path.samefile(pyfile_dir, addon_path):
File "/content/blender-4.0.2-linux-x64/4.0/python/lib/python3.10/genericpath.py", line 100, in samefile
s1 = os.stat(f1)
FileNotFoundError: [Errno 2] No such file or directory: 'content/drive/MyDrive/Colab-Render'
Location: /content/blender-4.0.2-linux-x64/4.0/scripts/modules/bpy/ops.py:109
Traceback (most recent call last):
File "/content/drive/MyDrive/Colab-Render/Addon_Enable1", line 3, in
bpy.ops.preferences.addon_install(filepath='content/drive/MyDrive/Colab-Render/botaniq_full-6.4.0.zip')
File "/content/blender-4.0.2-linux-x64/4.0/scripts/modules/bpy/ops.py", line 109, in __call__
ret = _op_call(self.idname_py(), kw)
RuntimeError: Error: Python: Traceback (most recent call last):
File "/content/blender-4.0.2-linux-x64/4.0/scripts/startup/bl_operators/userpref.py", line 659, in execute
if os.path.samefile(pyfile_dir, addon_path):
File "/content/blender-4.0.2-linux-x64/4.0/python/lib/python3.10/genericpath.py", line 100, in samefile
s1 = os.stat(f1)
FileNotFoundError: [Errno 2] No such file or directory: 'content/drive/MyDrive/Colab-Render'
Location: /content/blender-4.0.2-linux-x64/4.0/scripts/modules/bpy/ops.py:109
A big thumbs up for creating such an esay cloud rendering video! i've propably watched all the video on youtube abount cloud rendering none of those worked out for me but man this worked on a first try its so simple and esay compared to other videos that ive watched. Thanks a lot. Just curious to know the frame render limitations if there are any can i do like 500 frames with less render samples.
Thanks for the appreciation and I'm glad that it worked 😊 Yes, you can use a lower sample number like 64 or even 50 unless you have very fine texture etc. But do these experiments first on your machine and ensure the quality you need. Then render a couple of frames on colab and check the time it needed for the actual render. Now render a series keeping the overall time within one hour. Don't go beyond that in one stretch, to remain in the good book of Google.
@@5MinutesBlender ill surely keep these thing on mind once again thankyou very muchhhhh I dont have a word to discribe how thankfull i am!. Looking forward for more cool videos.
thank you!!
Most welcome 💝💝
It always tells me: No such file or directory: '/content/ImageSequence', whats the problem??
Hi, often the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point, it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is and suggest you accordingly.
thanks so much man, I though it was impossible!! you are awesome
Glad it helped! Cheers! 😊💝💝
I have a queestion. Can we do physics simulations in blender with colab too? Because it helps to be baked.
Yes absolutely! Please check this tutorial for physics baking on colab 👉 ua-cam.com/video/kkogGO1ZjPc/v-deo.html
Is the render output as shown in the video always as mp3 files(images) or can it be used to render animations?
We used png for image files or image sequence files. You can easily convert that image sequence into a video. This is the industry norm i.e. first render into image files and later combine them into a video mp4 file in any video editor. However, you can also render directly a video file as well if you wish (but this is not recommended as the image sequence has several advantages).
@@5MinutesBlender how can i render it as a video file directly?
@@_Chipp In your blend file you need to set the output file format as ffmpeg instead of PNG or something else. Then either don't use any output format in the colab notebook code (search for PNG in that code) or replace it with FFMPEG (the notebook code overrides your blend file settings, better to set it as FFMPEG in the blend file and just omit this parameter in the notebook code).
@@5MinutesBlender thank you very much!
Thank you for sharing this service. This is amazing.
Just wondering how you came about that this service exists.
Glad it helped! 😊 I am not the first one to use this service, someone told me about it, I shared it with you adding my own experience, and you'll also pass on the knowledge to someone else... the knowledge chain will grow like that ❤️
Similarly, you can create a StableDiffusion instance and run on the colab servers, if your computer is a potato. I used the paid GPUs for a bit, it was only $9/month
@@justinarchiquette7591 Yes, I did some AI stuff too on colab, it's pretty amazing actually 😊 We are living in our dreams 😂
I see this error
Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True).
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
/bin/bash: line 1: ./blender-3.6.13-linux-x64/blender: No such file or directory
It seems that the system is not able to recognize the tar.xz file. Can you please check if the tar.xz file is correctly downloaded & then uploaded? If there is a broken download it can happen. I am not able to guess any other reason. The last error is a consequence of this first error only.
Hi! I was already 100frames in, and my runtime has ended. I want to save the frames ive already done. I go to the file tap on the left and click contents and the inage sequence, but there is no option or checkbox to download the frames ive done. how can i save them??
Sorry for the late response. Unfortunately, once the runtime disconnects the local data is completely wiped out, so there is no way to get back already rendered images. So what I do instead is (although I seldom encountered disconnection) I do it in a batch of 50 and keep saving the set. That way in the worst case I will only lose the last 50 files, everything else is saved. You can even do it in a batch of 25, or you can modify the script to save each frame into Google drive, so no frame is lost even in case of an abrupt disconnection.
it s normal that is superslow the render in colab i have a simple i3 and it put 2 hour for a frame and google colab put 5 hours for a frame... it s normal?
No, it is not normal. It should not take even 2 hrs. I guess your render settings are probably incorrect or you forgot to enable GPU. Colab is usually quite fast, but based on the network traffic sometimes it can be slow. However, Colab free plan does not allow you to run on GPU for 5 hrs, so when you say that it took 5 hrs to render a frame, I think you are not using GPU.
it says that gpu is not being used even after i selected gpu in runtime and also in render device.pls help
I know you said that you changed it, but I will still insist you check if you have selected GPU in the render device under render properties. This same file has to be then saved and uploaded to Google Drive. Google Drive and Google Colab takes some time to sync up. So if you replace your file and immediately run Google Colab, it may actually use the older file. These are few things I suggest you to first check.
Thanks, but I have a problem. Since the files are copied to the drive only after full rendering is done, my files get lost if the session is stopped by a network interruption or some other problem. Is there a way to copy it to the drive after about each 15 frames or so? I also accessed the Image Sequence folder from the content/drive while rendering, but I need to download each frame individually, which is tiring when there are lots of them.
There are two solutions. We can change the output file location in the script to Google drive, in that case the output will be saved directly in drive instead of colab. So if there is a disconnection, you have the already rendered frames intact. But this needs a constant data transfer between colab and drive which slows down the process. Our ultimate aim is to save time. So the other option is to break down the rendering into multiple parts. I usually render 50 frames or sometimes 25 frames at a stretch. It takes 15-20 minutes. Then I go for the next set. I never experienced a disconnection with such a small set, and never lost anything. It also acts as a reminder for me not to overuse colab (to avoid a ban). I usually render only 75 frames in a day and I never ever experienced any ban etc. I do have multiple machines and multiple accounts, but it is a risky bet if you are not cautious enough - so I don't recommend it to others 🙂
@@5MinutesBlender Thanks for the reply. I will go with breaking the rendering into multiple parts to stay in good books. And great content btw.
WowThank you so much
Glad you liked this tutorial! 😊💝💝
so it renders 10 frame cycles render in 35 seconds? that's insane
No, each frame in 35 seconds or so. That is also quite fast if you take into account the beauty of cycles output.
@@5MinutesBlender Does it support the Optix kernel? The T4 gpu has RT cores that could be utilised.
@@locinolacolino1302 Honestly, I have no idea. Never used that, but I think it should work.
Thank you very much for your contribution; it is of great value to us since we don't have very powerful computers!
I have a question: can I use this same code with Google's paid GPUs? They have a package that offers 100 computation units, but I would like to know how many frames or projects I can create with those 100 units that Google Colab offers in the pro package.
Glad you liked this tutorial 😊 Yes, you can use this same script with the paid GPUs, no difference in the script. But before you go for the paid options, I suggest you try it with the free GPUs and be comfortable. Google imposes some restrictions even for the paid GPUs (when the uses are highly loaded). After several uses you'll get a fair idea about how long it takes to render some scene (it is not a constant value, it depends a lot on your scene, materials, textures and also the network load).
Can we do renders on Eevee? Do we need to change something in the script or some other step?
There is no easy way to do that since we are using the command line input to run Blender, and Eevee is not supported through the command line mode, it always defaults to Cycles. Some people invented a clever way to fake a display within the command line mode and cheat Blender to run Eevee. So I won't say that it is impossible, but within the Colab environment it is going to be almost useless because you'll need to do the entire setup every time you connect, and secondly the speed advantage is also reduced when we use a fake display. It is more useful on a personal computer.
do i need to extract the linux download? or do i just paste the zip file?
No, do not extract it. Use it as it is.
it says no such file or directory for step 5. i renamed all things correctly
Please send me the complete output. Often the error code you see at the end is not the correct one. If a previous step failed for some reason, it will raise more errors in the subsequent steps. We need to solve that original error to get rid of the rests. You can send me the output to 5minblender@gmail.com and continue this discussion there.
I did it but the folder only has random frames and not all of them, what could be the cause?
(I ended the process before all my frames were rendered btw, but a lot of frames that were rendered are missing)
If you terminated the program premature, the result is not guaranteed. But I would like mention one thing here.... when you browse a folder on Google Drive that has a lot of files, it shows only some of them at random. I mean you may not find all the files in the list until it completes fetching all the file details. But the files are probably there. Just try to download the whole output folder as a zip file and then check on your machine if something is missing. I have been into this problem and in my case all files were intact although they were not showing up.
@@5MinutesBlender thanks
When I tried to upload the Linux file, it says unreadable
Umm, probably you tried to accidentally open that file instead of upload because it won't give this error when you try to upload. Upload means simply copying that file from your machine to your Google drive. The other possibility is, you may have an antivirus that is trying to read through every file you upload or download. If that is the case, disable that program during this upload.
Not working. Followed step by step --
FileNotFoundError: [Errno 2] No such file or directory: '/content/Image Sequence'
Please check if there is an error prior to this. This error is thrown when the script copies the rendered frames to your drive folder, which happens once the render is complete. But if the render fails for any reason, it fails in the copy step as well and then this error is shown. We need to see why the render did not work (often a file name mismatch remains the root cause).
@@5MinutesBlender I get the same error message
Mounted at /content/drive
tar: /content/drive/My Drive/Colab-Render/blender-4.0.2-linux-x64.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
/bin/bash: line 1: ./blender-4.0.2-linux-x64/blender: No such file or directory
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
in ()
14 #Step-5: Copy output files from colab to drive
15 import shutil
---> 16 shutil.copytree("/content/Image Sequence", "/content/drive/My Drive/Colab-Render/Image Sequence", dirs_exist_ok=True)
/usr/lib/python3.10/shutil.py in copytree(src, dst, symlinks, ignore, copy_function, ignore_dangling_symlinks, dirs_exist_ok)
555 """
556 sys.audit("shutil.copytree", src, dst)
--> 557 with os.scandir(src) as itr:
558 entries = list(itr)
559 return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
FileNotFoundError: [Errno 2] No such file or directory: '/content/Image Sequence'
And on the side it explains the error
The code you provided is failing because the folder /content/Image Sequence does not exist. This is likely because you did not complete Step-4 of the process, which involves rendering the animation on Colab.
To fix this error, you can either re-run Step-4 or manually create the /content/Image Sequence folder. Once the folder exists, you can re-run the code and it should complete successfully.
I just removed code in step 3 "#Step-3: Remove existing folder on colab, if any" and i created folder manually with Image Sequence inside "content" folder use file explorer on colab
I just removed code in step 3 "#Step-3: Remove existing folder on colab, if any" and i created folder manually with Image Sequence inside "content" folder use file explorer on colab. and it's works for me
Excelent , tks
Glad it helped! 😊❤️❤
If I bought google colab pro Increase speed render
Yes, with a pro subscription you'll get access to more powerful GPUs (the free GPU T4 is lowest in the rank), so it will render faster. However, please note that the server load is also important. If many pro users are trying to render at the same time, the response time may get affected (but it is still expected to be far better than the free tire).
How to render blender ffmpeg vedio in google colab.?
Same process, just change the output file format to ffmpeg before you save and upload the blend file to your Google drive.
pls help me it shows this i did everything right but still
FileNotFoundError: [Errno 2] No such file or directory: '/content/Image Sequence'
We need to create a folder in Google drive called Image Sequence. Also, if there are multiple errors, look at the first error (which can cause further errors that are unrelated) - don't just go by the last error in the list.
@@5MinutesBlender i've created this folder and also getting the same error
@@Orochi_Hunxho_Bieber_Ye Can you please send the complete console output to me at 5minblender@gmail.com? I mean the entire stack trace you get on colab.
@@5MinutesBlender if theres any solution, please share that cuz i have the same problem
Thank you brother ❤
Glad it helped! 😊❤️❤
i have made a quick fire simulation in the blend file, unforturnately google colab doesnt render the fire simulation it only renders the emitter mesh lighting and the whole scene, is there any way i can render fire, water or smoke simulation using google colab? thank you
Please render it first on your local machine, maybe just a few frames say frame# 50, 100, 150, 200 etc and use Cycles for this. Then check if everything looks correct. Only then move it to colab. More than often the issues may be caught in the local rendering itself. If it renders correctly on your local machine but errs out on colab, we can investigate - but that is very rare, I have not seen any such case yet.
@@5MinutesBlender it renders perfectly on my local machine in cycles but it doesnt render on colab.
@@ayaangamingatoz9494 Then I am not sure what the issue could be 🤔 Please check if you have any dependency on some file (say some texture or hdri) which you forgot to upload to colab or google drive. I have not come across any other reason so far that makes any difference between colab render and local render although sometimes I have experienced a small difference in the output quality with the same settings in both the places. I think the renderer uses some optimization based on the gpu settings, but this difference is very subtle, it is no match for the level of discrepancies you have described above.
Is it possible to render the animation in openexr file? If so, can you tell me how to do?
Yes, very much possible. Before upload, in your Blend file, go to the output properties and set the output file format to openexr. Then save the blend file and upload to your Google drive. Now if you render it using Google colab, you'll get openexr files in the output folder.
Thank you for the reply. Even if in notebook code it's written as PNG, you say it would be rendered as openexr when I adjust output in blender file?
@@eemsa Good catch! The format identifier in the notebook will override the blender file settings. So either remove that format identifier from the notebook code or change it to EXR from PNG. Then the output will be saved in openexr format. I just checked this.
It's showing error when I run the script, could you please help?
It says :
FileNotFoundError Traceback (most recent call last)
in ()
14 #Step-5: Copy output files from colab to drive
15 import shutil
---> 16 shutil.copytree("/content/Image sequence", "/content/drive/My Drive/Colab-Render/Image sequence", dirs_exist_ok=True)
/usr/lib/python3.10/shutil.py in copytree(src, dst, symlinks, ignore, copy_function, ignore_dangling_symlinks, dirs_exist_ok)
555 """
556 sys.audit("shutil.copytree", src, dst)
--> 557 with os.scandir(src) as itr:
558 entries = list(itr)
559 return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
FileNotFoundError: [Errno 2] No such file or directory: '/content/Image sequence'
Just back from my vacation, so this late response. It seems that no render was done in your case and hence the output folder was not created. This is the lower part of the error msg. Please scroll up and check its previous msg to find out why the render was not done in the first place. The source of the error lies there. This error which you sent is just a logical consequence of the original error.
I just removed code in step 3 "#Step-3: Remove existing folder on colab, if any" and i created folder manually with Image Sequence inside "content" folder use file explorer on colab
Does it still work with render layers?
It works as good as your pc/laptop while rendering, it only lacks a UI.
does it work with eevee?
We are using the headless mode (CLI or command line instruction) to run Blender on Colab. This mode does not support Eevee, it only works for Cycles. If you want to use Eevee, it is anyway equivalent to your own local machine. We have an advantage to use the Colab version if we are using the GPU for Cycles.
hi, the video is great, thank you. i have a problem i can't use gpu for some reason it is limiting and running very slow on cpu any idea how to fix it?
Google has some usage restrictions for GPU. As discussed toward the end of this tutorial, follow the best practices to remain in the good book of Google and you'll be able to get GPU. For the time being, stay away from Google Colab for a couple of days so that the counter resets and you get back the access to a GPU. Then use it economically so that you are not again banned.
@@5MinutesBlender thanks
FileNotFoundError: [Errno 2] No such file or directory: '/content/Image Sequence' Getting this error even i have folder in drive too with same name
Sorry for the late response. Often the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point, it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is
@@5MinutesBlender sure i will share it with you thanks mate
Look for my answer above
for some reason i have bad lighting/shading, when i render just from blender, everything is ok
who solve same problem?
It may be caused by a missing HDRI. Are you using any HDRI lighting in your scene and did you pack the HDRI file along with your blend file before upload? Otherwise colab won't be able to find your HDRI and some important lighting will be missing.
I am facing an error my all directories are right but facing error in 4th step
/bin/bash: line 1: ./blender-4.0.2-linux-x64/blender: No such file or directory
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
How to solve it
The error in this 4th step is due to some other error in its previous step. Don't look at the last line, check from the start of the log. We need to solve the very first error because any other error is just a consequence of the first error. Like in another case, the user did not use the correct name for the Blender installation file. So check any such error in the previous steps (or you can send your error log to us at 5minblender@gmail.com so that we can check it). Thanks!
MessageError: Error: credential propagation was unsuccessful
This seems to be some glitch related to Google authentication. Please try again, or use another account if possible.
I HAVE A PROBLEM WITH THE CODE (IT HAS AN ERROR). MY BLENDER PROJECT FILE IS NOT FOUND. HOW DO I SOLVE THAT
Often the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point, it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is.
I got this error , FileNotFoundError: [Errno 2] No such file or directory: '/content/image seq' , How do i fix it?
Often the actual error may be different from what you see. Since there are multiple lines of code, if there is an error at some point, it will result in more errors afterwards. Only the first error matters, rests will be solved if the first error is solved. Please send me the complete log of your notebook output (send to 5minblender@gmail.com) so that I can verify what the actual error is and suggest you accordingly.
@@5MinutesBlender In my case, I fixed it by adding the folder just above "Step-4" like this:
output_dir = "/content/Image Sequence"
if not os.path.exists(output_dir):
os.makedirs(output_dir)
Forgot to mention that for this to work you must add the following to the top of the script:
import shutil
import os # Import the os module
@@mossdee Yes, we can make those checks, it helps 👍
Im having sam issues can you just post the code, in FULL, to save time. Thanks in advance. I tried to understand your comments but it's to convoluted for me to understand what you mean by 'you made a new folder'...
Hello! My scene has a group of people, and their clothes have fabric simulation. These clothes and their animation were created in Marvelous Designer, which generates an Alembic file. This file is imported into Blender, and the mesh has a Mesh Sequence Cache modifier. When rendering the animation, the characters are rendered normally, but the clothes do not have the animation loaded and remain static and completely out of place. Is it possible to render with these clothes???
Hi, since you are using an add-on, first you need to also install that add-on while installing blender on colab. However, based on the add-on design it may or may not work because we are working completely in a headless mode here (i.e. through command line input). Some add-ons may need you to be in UI mode. For example, we have developed a 3D data visualizer add-on (it is a paid add-on) that works with colab, it is designed that way. Please check the comment trail we exchanged with another viewer who had a similar requirement. It contains more details on how to install an add-on on colab and some related issues in that respect. You can follow the same and try your luck.
Why not bake simulation and then put it on render..
@@rajendrameena150 Yep, this can be also tried. Nice suggestion 👍
Can u please make a tutorial on this with how to add add-ons in Google colob
@@dustonclubs3867 I can make a tutorial, but the problem is, colab runs on command line input, it does not have any UI. So any add-on that we install on colab won't be very helpful. We can only use those add-ons that come without any UI or menu, instead they have CLI mode. I am not aware of such add-ons, if you know please share. We can then create a tutorial on how to install the add-on on colab.
I have the PRO version and they denied me access, it says it is due to "inappropriate activity" I only use it for rendering, not for mining, I tried with several accounts and the same problem, any solution?
Some possible reasons I can think of: 1) You have used GPU backend without actually utilizing GPU for a prolonged time (running idle sessions or running tasks that do not utilize GPU) 2) You have VPN on the same machine where you have used Colab which signaled a parallel login from geographically separate places 3) Someone tried to get access to your account multiple times. I hope the ban will be lifted automatically, but since you are PRO subscriber, you have all rights to contact the support and ask for an explanation.
Hello sir, i have a question, can the rendered frames outputs in video format???? because it would cost too much internet data , for example if i render my animation in 30fps then one minute video will be 1800 frames and if i render them each will be 2.5 mb average and it will be around 4.5GB just to download pngs :/
Yes it is possible. You need to select the ffmpeg option in the output format in your blend file, then save it and upload to drive. It will create a video output in the same location where you get the frames, it will directly create the video instead of the frames. You need to ensure that the internet connection is stable, and you cannot use it for a long animation since Google Colab will timeout and the progress will be lost. Suitable only for small a duration.
@@5MinutesBlender do I have to change in colab note too , it's written PNG in it so I'm wondering what to write there in place of PNG?? and yes I'll not do long animation just in parts but I want it in video format , video format size would be less like under 50mb and thank u sir ☺️
No you can safely ignore it. Don't enter anything in colab notebook (remove "-f png" this entire part), it will pick up the format from your blend file.
@@5MinutesBlender ok thanks sir, I will try to now
Thanks for the video and detailed explanation but I am getting stuck at a point- I am using a video .mov file in blender of 10sec long and my animation is also 10 sec long both with 30fps. Everything alright on pc. When i render on pc it comes out alright but not on colab. I also put that video in asset folder in same directory on drive. I also packed resources everything else comes out alright except that video.
Help me in correcting it, it will be great help.
So let me understand it better. When you render on colab, what happens? Does the video show a mismatch in fps? Or does it render as black? What is the problem you see?
@@5MinutesBlender Hi thanks for the reply,
When i used it on collab it showed only purple screen instead of the frame for the video same thing for multiple frames(no change).
reference: drive.google.com/file/d/1ZT62qa7GeGob48rSUsjjB0y2OSR3C85i/view?usp=drive_link
But it showed me correctly if i render it on my pc and supposed to be like this.
reference: drive.google.com/file/d/1B7G7rGQh8T_Qdt8CKtQ8vKwsPulSHo0M/view?usp=drive_link
Please look into the reason if there is any and help me to resolve it. It will be a great help!!!
It usually happens if your texture or HDRI file is missing. The purple color is indicative of a missing texture (either for the materials or for the world background). Please double check if you packed all your textures into the blend file (and saved it) before uploading to Google drive. It can also happen for some other reasons, like you may have Fluid simulation in your scene and the baked data is not uploaded to drive.
@@5MinutesBlender It worked!!!
Hi I packed resources 4-5 times and saved again and then render and got the expected result. I must not have packed correctly. Thanks alot....!
Request: Can you please make another video on how to render on google colab using resource files without packing resources. Sometimes if anyone use multiple some files for bigger projects, with packing blend file may become alot bigger in size...
Hope you will make video on that... looking forward to that..!!!😊
@@NishaDevi-mf4sh Glad to know that it worked! 😊 Yes, packing is not mandatory, like I just rendered a fluid simulation a few days back in which case the fluid's baked data was uploaded to Google drive as a completely separate file (in fact as a separate folder, having several sub-folders, each sub-folder then contains thousands of files in it..... so a large file system). It rendered correctly. The key here is to use the correct "relative" file path everywhere. Then it does not matter whether you are rendering from your machine or on Google colab, it will use that relative path and get the textures or any such external file correctly. We talked about packing in this tutorial because that is simple to do, most reliable and it keeps everything clean. For large files, you can keep the files separate, just use relative file paths for those files.
Is it worth to purchase google colab pro for the blender rendering purpose?
It depends on your use case. If you render a lot, you can compare their price with several online render farms who do just this rendering for a price. Going for pro account in colab may not be beneficial if rendering is your only use case.
Light sources are not rendered. The whole scene is dark. What to do????????
Are you using HDRI light? If so, you need to pack the HDRI file with your blend file, otherwise it won't get any light.
No, I use simple light like plane, point and spot@@5MinutesBlender
@@onezein Extremely sorry I missed this. I suggest you render one frame on your machine to ensure that everything works fine on your machine before you upload it to colab or google drive. Sometimes we accidentally hide the light in render or there maybe some other issues. Once it works fine on your machine, use the same setup on colab. If this does not resolve the issue, you can send your blend file to 5minblender@gmail.com so that we can verify it and suggest something.
it didnt render the texture
Please check if you packed all the texture files before you uploaded blend file to your Google drive.
I followed all the steps you did, but I always get the following error:
Failed to create OptiX denoiser
Hmm. Never ran into this issue. Googling revolves that it may be related to a VRAM issue or an unstable beta version. Maybe you can use an older version of Blender like 3.6 or even 3.4 and check if that gives any better result.
@@5MinutesBlender I tested another project with the latest version of Blender, and it worked. I think there might be an issue with my project. I tried following your suggestion to use an older version, but it didn't work; it showed the same error.
@@trishoutofficial Oh Ok, I see. Yes, it could then your project file related, maybe it is too big for the available resources, or maybe some other issues. I am happy to see that the code at least worked for another project 👍
is it possible to render exr file from google colab ?
Yes, absolutely. You only need to prepare your blend file accordingly (set the output file type as exr). It will generate the exr output in the output location set by you.
@@5MinutesBlender Ok... but did't worked for me I try'd it
Hey sorry for the late response. So does it work on your pc and the exact same file does not work on colab?
Can it render fluid simulations?
Yes of course, but you need to first bake the simulation. We are preparing another tutorial on how to bake fluid simulations on Google colab. With that, you can bake and then render. It will be published soon on this channel.
@@5MinutesBlender okay. Thanks
nice
.
Thank you 💝💝
Hi, im getting this error code at the end. "FileNotFoundError: [Errno 2] No such file or directory: '/content/Image Sequence'" I dont know why i think my file paths are ok.
Hi, it seems that no render was done in your case and hence the output folder called Image Sequence was not created. This is the lower part of the error msg. Please scroll up and check its previous msg to find out why the render was not done in the first place. The source of the error lies there. This error which you sent is just a logical consequence of the original error which we need to solve first.
Thank you for the fast response i will check that message again when able. Far as i remember the error happens when it tries to move the finished render to the folder. @@5MinutesBlender
@@rumblingtracks On colab, you can open a file explorer (something like windows explorer but it is on colab), you can browse and view the files or even upload/download files directly from colab. So if you think the render finished successfully and it threw an error only at the last step while moving it to your drive, kindly open the file explorer and check if it actually created the image sequence folder or not. If not, you should check where it kept those render outputs. It's possible that you made a typo somewhere. Anyway, please let me know what you find out when you get time. All the best!
Hello! Just tried again and its working now. Turned out i actually made a typo. Sems yesterday was too tired to find my error. Thank you for you help and fast response. This will help me allot :)@@5MinutesBlender
@@rumblingtracks Glad to know that you have successfully resolved the issue. Cheers!!
😮 but what if I have windows instead of linux
No problem. You can have any operating system on your machine, Google colab runs on Linux, so you need to use the Linux version in colab. You can prepare your blend file on windows as usual, and upload it to your Google drive. It will work smoothly on colab since Blender is a platform independent software.
Thank you so much!!!! I love you Bro~
Glad it helped! 😊❤️❤️
can we render exr images ?
Yes definitely. In the output settings, select the output file format as OpenEXR. Needless to say, you have to make this change before you upload your blend file to colab or your drive.
anyway i got PNG's, maybe need to change script? there is "PNG" in step four @@5MinutesBlender
Can i close the window? will it still keep rendering?
No, you need to keep the machine up, and the internet should be connected. Otherwise it will timeout since colab constantly checks if you are online. It is actually made for interactive work, we are using it for a batch processing 😂
@@5MinutesBlender ah ok also I ran out of free units on my account can I connect multiple accounts to render faster?
You can, but use them very cautiously. I do use multiple accounts & I never got flagged. But it is risky, you need to time your jobs such that the system is never overused from your IP. The thumbrule is not to ever consume the entire bandwidth they provide to each account. Secondly, monitor the resource performance. If you think the network is busy (usually happens during peak hours in the day time), leave your job for a better time.
@@5MinutesBlender ohok thank you
does this still work with blender 4.1 ?
Yes, very much. It works with any version of Blender. You need to use the correct tar file name and the correct blender version in the notebook code (for any specific version you download). Everything else remains the same.
@@5MinutesBlender thank you, I did it and it still work
@@user-yb8dh5bh8l Good to know that it is working!
animation?
Yes you can render any animation using this method.
@@5MinutesBlender blender 4.1?
@@fulan0537 Yep, works for 4.1 as well.
very slow rendering
Please check if it is actually using Colab GPU or not. It renders slow when it is not utilizing Colab GPU for any reason or if you have unknowingly used a very high sample value.
Now it's not working without colab pro((((@@5MinutesBlender
@@koza4825 I checked it today and did not find any issues. What error do you see? As we cautioned in the tutorial, if you overuse it, Google will restrict your access. Leave it for a couple of days and you should get back the access I hope as the counter resets.
Send me an email with the error, can you please help?
I have responded to all email queries, did you send an email?
sooooo bad you wasted my time, its only images not video animation
No it's not just for an image file. In the world of animation, a video is always treated as a collection of images, it is called an image sequence. The industry standard is to deal everything as an image sequence instead of a video. A video is only produced at the very end of the production process, rendering is never done as a video, it is almost always done as an image sequence. So here we have discussed how to generate that image sequence on colab. Later you'll just convert that image sequence into your final video either within Blender or in any other video editing software. That is the norm in use.
@@5MinutesBlender ok thnx but its not working.. showing error
What is the error? Please send me the error screenshot at 5minblender@gmail.com so that I can check it.
i used botaniq in the project, but in the render it's not there as i would have to install it in the colab blender too, can u tell me what changes i have to make in that code and where do i have to add the new code lines?
" If you mean add-ons, you can install them using the script. So in the colab notebook, use some commands like bpy.ops.preferences.addon_install(filepath=...) to install your add-on, then enable it using bpy.ops.preferences.addon_enable(module=...) and then render your scene. "
Add these commands after Blender is installed on colab i.e. after Step 2. Within the commands the only thing you'll need to change is the filepath for the add-on you're installing (upload botaniq add-on zip file to your google drive and mention that path after the filepath= part within quotes, and mention the module name or the add-on name after the module= part within quotes, the module name can be found on your system where botaniq is installed, from Edit Preferences Add-on screen). But this add-on may need additional modules in Blender. Usually a professional add-on will auto-install them when required. If not, you need to install them before this step in the same way.
@@5MinutesBlender can u help me
@@5MinutesBlender im having this error:
File "", line 7
bpy.ops.preferences.addon_install(filepath="C:\Users\llh\Desktop\poliigon-addon-blender.zip")
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
@@itleenYes, tell me bro.
@@5MinutesBlender im having this error:
File "", line 7
bpy.ops.preferences.addon_install(filepath="C:\Users\llh\Desktop\poliigon-addon-blender.zip")
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape