parent
							
								
									16712476a9
								
							
						
					
					
						commit
						4586404ea3
					
				|  | @ -23,7 +23,7 @@ Users of this software are expected to use this software responsibly while abidi | ||||||
| #### 3. Download Models | #### 3. Download Models | ||||||
| 
 | 
 | ||||||
|  1. [GFPGANv1.4](https://huggingface.co/hacksider/deep-live-cam/resolve/main/GFPGANv1.4.pth) |  1. [GFPGANv1.4](https://huggingface.co/hacksider/deep-live-cam/resolve/main/GFPGANv1.4.pth) | ||||||
|  2. [inswapper_128.onnx](https://huggingface.co/hacksider/deep-live-cam/resolve/main/inswapper_128.onnx) |  2. [inswapper_128_fp16.onnx](https://huggingface.co/hacksider/deep-live-cam/resolve/main/inswapper_128_fp16.onnx) | ||||||
| 
 | 
 | ||||||
| Then put those 2 files on the "**models**" folder | Then put those 2 files on the "**models**" folder | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -257,11 +257,11 @@ def webcam_preview(): | ||||||
|     global preview_label, PREVIEW |     global preview_label, PREVIEW | ||||||
| 
 | 
 | ||||||
|     cap = cv2.VideoCapture(0)  # Use index for the webcam (adjust the index accordingly if necessary)     |     cap = cv2.VideoCapture(0)  # Use index for the webcam (adjust the index accordingly if necessary)     | ||||||
|     cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)  # Set the width of the resolution |     cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)  # Set the width of the resolution | ||||||
|     cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)  # Set the height of the resolution |     cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 720)  # Set the height of the resolution | ||||||
|     cap.set(cv2.CAP_PROP_FPS, 60)  # Set the frame rate of the webcam |     cap.set(cv2.CAP_PROP_FPS, 60)  # Set the frame rate of the webcam | ||||||
|     PREVIEW_MAX_WIDTH = 640 |     PREVIEW_MAX_WIDTH = 1280 | ||||||
|     PREVIEW_MAX_HEIGHT = 480 |     PREVIEW_MAX_HEIGHT = 720 | ||||||
| 
 | 
 | ||||||
|     preview_label.configure(image=None)  # Reset the preview image before startup |     preview_label.configure(image=None)  # Reset the preview image before startup | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue